joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457f20
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
cmp word [ecx], 0
je 0x45801e
test dl, dl
jne 0x457f4c
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x45801e
mov al, 1
add esp, 0x230
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457f70
sub ecx, edx
sar ecx, 1
je 0x457f90
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x457f90
xor eax, eax
mov word [esp + ecx*2 + 0x22], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45801e
test al, 0x10
je 0x45801e
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457fb0
sub ecx, edx
mov dword [esp + 0xc], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
add esp, 0x230
ret
xor al, al
add esp, 0x230
ret
Function at 0x458620
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
push ebx
push ebp
push esi
push edi
push ecx
mov byte [esp + 0x1b], dl
mov ebp, ecx
push 0
push 1
xor edx, edx
call fcn.004814b0
add esp, 0xc
test eax, eax
je 0x4586c2
mov ecx, ebp
call fcn.00481e30
mov ebx, eax
test ebx, ebx
je 0x4586c4
cmp byte [esp + 0x17], 0
jne 0x4586c4
push ebx
push 0
push 0x101000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45869b
push esi
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, ebx
jne 0x458684
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x45873d
cmp edi, 0x102
je 0x4586b5
cmp byte [esp + 0x24c], 0
jne 0x4586c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x4586c4
test bl, 3
jne 0x4586c4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret
xor ebx, ebx
push 0
push 2
mov dword [esp + 0x20], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
je 0x458736
test ebx, ebx
je 0x458700
cmp ebx, dword [esp + 0x20]
je 0x45874a
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.0049c7ee
add esp, 8
test eax, eax
je 0x458718
add eax, 2
jmp 0x45871c
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x458768
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x4586f6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x17], 0
cmovne ebx, dword [esp + 0x30]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x17], 0
mov eax, dword [esp + 0x20]
cmovne eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret
Function at 0x46fed0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
cmp dword [0x4e37f0], 0
push ebx
push ebp
push esi
mov ebp, ecx
je 0x46ff16
cmp dword [0x4e7ca4], 0
jne 0x46ff16
mov ebx, dword [esp + 0x34]
xor ecx, ecx
mov edx, dword [ebx + 0x28]
test edx, edx
jle 0x46ff16
mov esi, dword [esp + 0x38]
mov eax, dword [ebx + 0x20]
add eax, 0xa
mov esi, dword [esi + 8]
cmp dword [eax - 6], esi
jne 0x46ff0e
cmp byte [eax], 1
je 0x46ff21
inc ecx
add eax, 0xc
cmp ecx, edx
jl 0x46ff04
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
mov eax, dword [0x4e7cbc]
cmp eax, dword [0x4e37f4]
jge 0x46ff16
mov esi, dword [0x4e37f8]
cmp dword [esi + 0x3c], 0
jg 0x46ff16
inc eax
add esi, 0xa0
mov dword [0x4e7cbc], eax
mov eax, dword [0x4e7ca8]
mov dword [0x4e37f8], esi
test eax, eax
je 0x46ff5a
add eax, 0x58
jmp 0x46ff5c
xor eax, eax
test esi, esi
je 0x46ff65
lea ecx, [esi + 0x58]
jmp 0x46ff67
xor ecx, ecx
movups xmm0, xmmword [eax]
push 0x58
push 0
movups xmmword [ecx], xmm0
push esi
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
mov eax, dword [eax + 0x40]
mov dword [ecx + 0x40], eax
call fcn.0049d610
add esp, 0xc
mov byte [esi + 0x53], 1
mov ecx, 0x4e8f30
mov dword [esi + 0x3c], 0
push 0
call fcn.004396e0
mov al, byte [esi + 0x96]
test al, al
jne 0x46ffbf
mov byte [esi + 0x96], al
cmp dword [0x4e9618], 0
je 0x46ffd1
cmp dword [0x4e9614], 0
jne 0x46ffd5
test al, al
je 0x470007
mov dword [esi + 0x5c], 0x10
mov byte [esi + 0x53], 0
test al, al
jne 0x470007
cmp dword [0x4e9618], 0
jge 0x46fff6
mov dword [esi + 0x44], 0xffffffff
jmp 0x470007
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x48], eax
mov eax, dword [0x4e9618]
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4e961c], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
push dword [esp + 0x3c]
mov eax, ebx
mov dword [esp + 0x1c], 5
mov dword [esp + 0x14], eax
lea ecx, [ebx + 0x20]
mov eax, dword [esp + 0x3c]
push ebp
push 1
mov dword [esp + 0x2c], eax
push dword [eax + 8]
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 1
push 2
push eax
mov dword [esp + 0x3c], 0
call fcn.00479e10
mov ecx, dword [ebp]
mov esi, eax
push ebp
call dword [ecx + 8]
call fcn.00404430
cmp esi, 7
pop esi
pop ebp
sete al
pop ebx
add esp, 0x24
ret 0xc
Function at 0x471670
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], edi
nop
movzx eax, word [esi]
cmp eax, 0x20
je 0x47168d
cmp eax, 9
jne 0x471692
add esi, 2
jmp 0x471680
test ax, ax
je 0x4717fc
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x4716b6
mov word [edi + 2], ax
mov al, 1
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edi], 1
push ecx
mov byte [esp + 0x1b], bl
call fcn.0049c891
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x471787
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x4716f4
nop dword [eax + eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x4716ed
cmp eax, 9
jne 0x4716f4
sub edi, 2
cmp edi, esi
ja 0x4716e0
sub edi, esi
sar edi, 1
inc edi
push edi
push str.Ctrl
push esi
call fcn.0049ee82
add esp, 0xc
test eax, eax
jne 0x471711
or bl, 1
jmp 0x471743
push edi
push 0x4d2154
push esi
call fcn.0049ee82
add esp, 0xc
test eax, eax
jne 0x471729
or bl, 4
jmp 0x471743
push edi
push str.Shift
push esi
call fcn.0049ee82
add esp, 0xc
test eax, eax
jne 0x4717fc
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop word [eax + eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x47175d
cmp eax, 9
jne 0x471762
add esi, 2
jmp 0x471750
test ax, ax
je 0x4717fc
lea eax, [esi + 2]
push 0x2b
push eax
call fcn.0049c891
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4716d4
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
jne 0x4717b7
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
movzx eax, word [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.0041cc20
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x4717cf
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041caf0
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x4717de
or byte [edi], 8
test bl, 4
je 0x4717e6
or byte [edi], 0x10
test bl, 0x10
je 0x4717ee
or byte [edi], 4
pop edi
pop esi
test ax, ax
pop ebp
setne al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x472050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b653d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi + 4], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x4e7c60
mov dword [esi + 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.UserMenu.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xff000000
mov edi, dword [0x4e8e44]
test edi, edi
je 0x4720ee
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4720fb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], edi
cmp dword [0x4e95cc], 0
jne 0x47210f
mov dword [0x4e95cc], esi
jmp 0x472117
mov eax, dword [0x4e95d0]
mov dword [eax + 0x20], esi
inc dword [0x4e95d4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword [0x4e95d0], esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x47d3b0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
mov dword [ebp - 4], edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47d485
push 0
push 0
push ebx
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x47d485
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47d400
sub esi, ecx
sar esi, 1
lea edi, [esi + 4]
lea eax, [edi + edi]
call fcn.004b53e0
mov ebx, esp
push dword [ebp - 4]
push str.__s_
push edi
push ebx
call fcn.004816a0
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
add esp, 0x10
lea esi, [esi*2 + 6]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47d450
cmp dword [ebp - 0xc], esi
je 0x47d469
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
sbb eax, eax
and eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
sbb eax, eax
and eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47dd20
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push 0
push edi
call ebx
cmp eax, 0x103
je 0x47ddd7
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4e37f8]
mov eax, dword [eax + 0x84]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x47dde4
mov ecx, dword [esp + 0x14]
call fcn.0047dd20
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x47dde4
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x47dde4
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebx
cmp eax, 0x103
jne 0x47dd61
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret

Function at 0x482c60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004b5610
push esi
push edi
push 0x7fff
lea eax, [esp + 0xc]
mov edi, edx
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x482cb5
lea ecx, [esi + 1]
cmp ecx, 0x7fff
ja 0x482cb5
lea ecx, [esi*2 + 2]
push ecx
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0049c940
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 0x482cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
or eax, 1
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x482d89
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x208
push eax
push edi
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x482d89
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x482d89
shr ecx, 1
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
cmp word [edi + eax*2], si
jne 0x482d6f
test eax, eax
je 0x482d8e
mov esi, eax
mov edx, eax
mov ecx, eax
nop word [eax + eax]
cmp word [edi + ecx*2 - 2], 0
mov eax, edx
jne 0x482d8e
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x1c], eax
mov esi, eax
mov edx, eax
test ecx, ecx
jne 0x482d50
pop edi
pop esi
pop ecx
ret
mov dword [esp + 0x1c], ecx
cmp ecx, 0x104
jae 0x482d89
xor eax, eax
mov word [edi + ecx*2], ax
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ecx
ret
xor eax, eax
mov word [edi], ax
pop edi
pop esi
pop ecx
ret
Function at 0x484b00
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.00406d50
test eax, eax
jne 0x484b7b
mov eax, dword [0x4e37f8]
cmp dword [eax + 0x34], 0
jne 0x484b59
cmp dword [0x4e95ac], 0
jne 0x484b59
cmp byte [0x4e8ec6], 0
jne 0x484b59
push 0
push 0
push 0x4cdea8
push 9
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4e8f30
call fcn.0040d430
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 9
push 0
push 0x4cdea8
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4e8f30
call fcn.0040c250
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x484c02
nop
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x484c02
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x484c02
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x484c02
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 0x484cfb
test edi, edi
je 0x484bec
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x484c51
push edi
push ebx
push eax
call fcn.0049c940
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 0x484b90
cmp dword [0x4e9678], 0
je 0x484c44
cmp dword [0x4e9668], 0
je 0x484c2a
push dword [0x4e9660]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e9668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e9678], 0
mov dword [0x4e9660], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4e9678], 0
je 0x484c9a
cmp dword [0x4e9668], 0
je 0x484c80
push dword [0x4e9660]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e9668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e9678], 0
mov dword [0x4e9660], 0
mov eax, dword [0x4e37f8]
cmp dword [eax + 0x34], 0
jne 0x484cd9
cmp dword [0x4e95ac], 0
jne 0x484cd9
cmp byte [0x4e8ec6], 0
jne 0x484cd9
push 0
push 0
push 0x4cdea8
push 9
push str.An_internal_function_call_failed.
mov ecx, 0x4e8f30
call fcn.0040d430
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 9
push 0
push 0x4cdea8
push str.An_internal_function_call_failed.
mov ecx, 0x4e8f30
call fcn.0040c250
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4e9678], 0
je 0x484d3d
cmp dword [0x4e9668], 0
je 0x484d23
push dword [0x4e9660]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e9668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e9678], 0
mov dword [0x4e9660], 0
push dword [0x4e8dfc]
mov ecx, 0x4e8f30
push 0
push 0
push 0
push str.Out_of_memory.
call fcn.0040c800
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485d00
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x485d6b
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 0x485d78
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x485d78
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x485d78
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x485d78
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 0x485dd1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, 1
mov dword [esp + 0x18], eax
mov ecx, 0x8000012f
call fcn.004015e0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x485dd1
add edi, dword [esp + 0x18]
nop
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x485dd1
mov edx, 1
mov ecx, 0x8000012f
call fcn.004015e0
push esi
call ebp
test eax, eax
jne 0x485db0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x487fe0
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6840
push eax
mov eax, 0x10474
mov dword fs:[0], esp
call fcn.004b5610
push esi
mov esi, ecx
push edi
mov byte [esi], 0
cmp dword [0x4e8e98], esi
je 0x488021
mov dword [0x4e8e98], esi
mov dword [0x4e8ea0], 0
cmp dword [0x4e8e9c], 0
jne 0x488041
mov ecx, 0x7d0
call fcn.0047e400
test eax, eax
je 0x48820c
mov dword [0x4e8e9c], eax
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 4
push edi
call ebx
test eax, eax
je 0x48806b
nop dword [eax]
push 4
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x488060
mov eax, dword [0x4e37f8]
mov ecx, esi
add eax, 0x58
push eax
push edi
call fcn.00488220
pop ebx
test eax, eax
je 0x48808b
xor ecx, ecx
mov dword [0x4e8ea0], ecx
jmp 0x488091
mov ecx, dword [0x4e8ea0]
mov dword [ebp - 0x10480], 0
mov dword [ebp - 0x10478], 0
mov dword [ebp - 0x10474], 0
mov dword [ebp - 0x10464], 0x4cdea8
mov dword [ebp - 0x10440], 0
mov dword [ebp - 0x1043c], 0
mov dword [ebp - 0x10438], 0
mov dword [ebp - 0x10420], 0
mov dword [ebp - 0x1041c], 0
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x488103
mov byte [ebp - 0x10443], 0
test ecx, ecx
je 0x48810a
mov byte [ebp - 0x10443], 1
mov eax, dword [0x4e8e9c]
mov dword [ebp - 0x10434], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x1042c], eax
lea eax, [ebp - 0x10480]
push eax
push 0x488330
mov dword [ebp - 0x10430], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x1043c]
test eax, eax
je 0x48819d
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
xor dl, dl
mov ecx, eax
call fcn.004859a0
mov ecx, dword [0x4e8ea0]
xor eax, eax
mov edx, dword [ebp - 0x1043c]
mov esi, dword [0x4e8e9c]
test ecx, ecx
jle 0x488172
cmp dword [esi + eax*4], edx
je 0x488184
inc eax
cmp eax, ecx
jl 0x488168
cmp ecx, 0x1f4
jge 0x488184
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4e8ea0], ecx
mov eax, dword [0x4e37f8]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x4881ec
mov edx, 1
call fcn.004015e0
jmp 0x4881ec
mov eax, dword [0x4e8ea0]
test eax, eax
je 0x4881d6
cmp eax, 1
mov dword [0x4e8ea0], 0
setg al
test al, al
je 0x4881ec
mov eax, dword [0x4e8e9c]
mov ecx, esi
push 0
mov dword [0x4e8ea0], 1
mov dword [eax], edi
call fcn.00487fe0
jmp 0x4881ec
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
xor dl, dl
mov ecx, eax
call fcn.004859a0
push dword [ebp - 0x10478]
call fcn.0049ee02
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0040dba0
int3
Function at 0x49bd59
Capabilities:
Parse pe header

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

Function at 0x4ada3f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4ada8a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004adbda
test al, al
jne 0x4ada84
sub edx, 2
cmp edx, edi
jne 0x4ada6a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4adaac
lea eax, [edi + 2]
cmp edx, eax
je 0x4adaac
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ad98b
add esp, 0x10
jmp 0x4adba6
push esi
lea ecx, [ebp - 0x255]
call fcn.004adbda
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4adaef
push dword [ebp - 0x25c]
jmp 0x4ada9c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4adb2c
cmp word [ebp - 0x226], 0
je 0x4adb4d
cmp word [ebp - 0x226], ax
jne 0x4adb2c
cmp word [ebp - 0x224], 0
je 0x4adb4d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ad98b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4adb99
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4adb06
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4adb81
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4adba6
push 0x4ad7bb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a8ff0
add esp, 0x10
jmp 0x4adb76
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049bfb3
leave
ret

Function at 0x4ae8e0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ba80c
push 0x4ba804
push str.FlsAlloc
push 0x1f
call fcn.004ae81b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ae914
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b77ac]
call esi
jmp 0x4ae91a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4