joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467470
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor esi, esi
push ebp
mov dword [esp + 0x10], esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
add esp, 4
test edi, edi
jle 0x467519
push esi
inc edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x467519
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea esi, [edi + edi]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x467509
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x467502
mov ecx, esi
mov edi, eax
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x467502
mov dword [esp + 0x10], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x4677d0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
test eax, eax
jne 0x467804
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x4677ed
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x467804
cmp eax, 0x20
je 0x467804
mov eax, 1
pop esi
ret
mov eax, dword [0x5ccd0c]
test eax, eax
je 0x467821
push 0
push esi
call fcn.00467840
add esp, 8
neg eax
sbb eax, eax
pop esi
neg eax
inc eax
ret
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, 2
pop esi
ret

Function at 0x467a40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push 0x207
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x467ac9
cmp eax, 0x207
ja 0x467ac9
lea ecx, [esp]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp word [esp + eax*2 - 2], 0x5c
je 0x467a8a
lea edx, [esp]
push 0x4e36f4
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x214]
lea eax, [esp + 8]
push str.wininit.ini
push eax
push 0x4e37b8
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov word [edi + esi*2 - 2], 0
mov eax, 1
pop edi
pop esi
add esp, 0x208
ret
xor eax, eax
add esp, 0x208
ret
Function at 0x467ae0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x870
mov ax, word [0x4f5820]
push ebx
push ebp
mov ebp, dword [esp + 0x87c]
push edi
mov word [esp + 0x674], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x676]
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
push 0x4e51d8
push ebp
push 0x4e37b8
lea ecx, [esp + 0x680]
push 0x103
push ecx
mov dword [esp + 0x20], 1
stosw word es:[edi], ax
call ebx
add esp, 0x14
lea edx, [esp + 0x14]
lea eax, [esp + 0x674]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x467b63
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x870
ret
push esi
mov esi, dword [esp + 0x888]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [esp + 0x44]
push 0x4e51d4
push ecx
call edi
add esp, 8
test eax, eax
je 0x467c5c
lea edx, [esp + 0x44]
push 0x4e51cc
push edx
call edi
add esp, 8
test eax, eax
je 0x467c5c
test byte [esp + 0x18], 0x10
je 0x467bf3
mov ax, word [0x4f5820]
mov ecx, 0x81
mov word [esp + 0x470], ax
xor eax, eax
lea edi, [esp + 0x472]
lea edx, [esp + 0x470]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
push ecx
push ebp
push 0x4e5198
push 0x103
push edx
stosw word es:[edi], ax
call ebx
lea eax, [esp + 0x484]
push esi
push eax
call fcn.00467ae0
add esp, 0x1c
jmp 0x467c58
mov cx, word [0x4f5820]
xor eax, eax
mov word [esp + 0x268], cx
mov ecx, 0x81
lea edi, [esp + 0x26a]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
push edx
push ebp
stosw word es:[edi], ax
push 0x4e37b8
lea eax, [esp + 0x274]
push 0x103
push eax
call ebx
add esp, 0x14
test esi, esi
je 0x467c3a
cmp esi, 1
jne 0x467c5c
lea ecx, [esp + 0x268]
push 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x467b6b
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x467c88
cmp esi, 2
jne 0x467ca3
push 0x20
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x870
ret
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x870
ret

Function at 0x467cc0
Capabilities:
Get common file path
Get program files directory

Disassembly:
cmp word [0x5ccd2c], 0
jne 0x467cee
push 0
push 0x26
push 0x5ccd2c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push 0x5ccd2c
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov eax, 0x5ccd2c
ret
Function at 0x4681d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x20]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 8], ebp
je 0x4682fb
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x24]
push eax
push 0x40000
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x4682ea
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x4682ea
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4682e5
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 0x20019
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x4682ea
push eax
push eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
push ebp
lea eax, [esp + 0x40]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4682ea
push 0x20a
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 4
xor edi, edi
test eax, eax
jbe 0x4682dc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edx, dword [esp + 0x10]
push 0x105
push esi
push edi
push edx
call ebx
test eax, eax
jne 0x4682cc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push 1
push eax
push esi
push ecx
call fcn.004681d0
add esp, 0x10
jmp 0x4682d3
cmp eax, 0x103
je 0x4682dc
mov eax, dword [esp + 0x28]
inc edi
cmp edi, eax
jb 0x4682a3
push esi
call fcn.0049bb1b
add esp, 4
mov ebp, 1
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x4682fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x468470
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x54
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
push edi
mov edi, dword [esp + 0x6c]
push esi
push 1
push eax
push edi
call fcn.00467520
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
add esp, 0x10
test eax, eax
jne 0x4684aa
lea ecx, [esp + 0x10]
push ecx
call ebx
push eax
call ebp
push esi
mov esi, dword [esp + 0x78]
push 0
push esi
push edi
call fcn.00467520
add esp, 0x10
test eax, eax
jne 0x4684c5
push esi
call ebx
push eax
call ebp
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
call edi
push 0x4f5820
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov ebx, 2
test esi, esi
mov dword [esp + 0x40], 0x24
mov dword [esp + 0x44], esi
je 0x46850d
lea ecx, [esp + 0x40]
push ecx
push 4
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
mov ebx, eax
lea edx, [esp + 0x30]
push edx
push esi
call ebp
test bl, 2
jne 0x468537
mov eax, dword [0x5ccd1c]
test eax, eax
jne 0x468537
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x10]
push eax
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_SubtractRect]
test bl, 1
je 0x4685ab
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
cmp ecx, eax
je 0x468568
add eax, 2
pop edi
mov dword [esi], eax
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 8]
cmp ecx, eax
je 0x468581
add eax, 0xfffffffe
pop edi
mov dword [esi + 8], eax
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
cmp ecx, eax
je 0x46859a
add eax, 2
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0xc]
cmp ecx, eax
je 0x4685ab
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x468c20
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2b8
push esi
lea eax, [esp + 4]
xor esi, esi
push eax
push esi
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x468c99
mov edx, dword [esp + 4]
test edx, edx
je 0x468c99
push edi
mov ecx, 0xac
lea edi, [esp + 0x10]
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
push 0x4009
lea ecx, [esp + 0x10]
push 0x2b4
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, eax
pop edi
test esi, esi
je 0x468c8e
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_Duplicate]
mov esi, eax
test esi, esi
je 0x468c8e
push 0xffffffffffffffff
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
add esp, 0x2b8
ret

Function at 0x468fc0
Capabilities:
Enumerate browser history

Disassembly:
sub esp, 0x244
push esi
lea eax, [esp + 4]
push edi
push eax
xor esi, esi
push 0x4d51a8
push 3
push esi
push 0x4d5128
mov dword [esp + 0x1c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x44], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x250]
lea edx, [esp + 0x44]
push edi
push 0x4e33c0
push 0x103
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 1
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push edi
call fcn.00468e70
mov eax, dword [esp + 0x2c]
add esp, 0x20
cmp eax, esi
je 0x4690d8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0xfffff894
dec edx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], 0xffffffff
call dword [sym.imp.MSVCRT.dll_mktime]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00468f00
add esp, 0x14
call fcn.00433150
cmp eax, esi
je 0x4690f2
mov edx, dword [esp + 0x254]
lea ecx, [esp + 0x44]
push edx
push ecx
mov ecx, eax
call fcn.00435500
jmp 0x4690f2
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
call fcn.00433150
cmp eax, esi
je 0x4690f2
mov ecx, eax
call fcn.00435550
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push esi
push 0xe
push 1
call fcn.00429600
mov ecx, eax
call fcn.0042a130
pop edi
mov eax, 1
pop esi
add esp, 0x244
ret
Function at 0x469130
Capabilities:
Delete internet cache
Enumerate internet cache
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0xa000
mov dword [ebp - 0x10], esp
push 0xa000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x46919d
mov ecx, 0x2800
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push ecx
push esi
push str.cookie:
mov dword [esi], eax
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov ebx, eax
test ebx, ebx
jne 0x4691ae
push esi
call fcn.0049bb1b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
push edx
call edi
test eax, eax
jne 0x4691db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4691db
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.WININET.dll_UnlockUrlCacheEntryFileA]
mov ecx, dword [esi + 4]
push ecx
call edi
mov ecx, 0x2800
xor eax, eax
mov edi, esi
mov dword [ebp - 0x14], 0xa000
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
mov dword [esi], edx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x4691ae
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push esi
call fcn.0049bb1b
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
mov word [ebp - 0x21c], bx
mov esi, 0x69a30c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call edi
add esp, 8
test eax, eax
jne 0x469259
push ebx
lea ecx, [ebp - 0x21c]
push 0x21
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x469259
lea esi, [ebp - 0x21c]
push esi
call edi
add esp, 4
test eax, eax
jbe 0x46919d
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x422]
mov word [ebp - 0x424], bx
rep stosd dword es:[edi], eax
push 0x4f1834
push esi
push 0x4e43d8
lea edx, [ebp - 0x424]
push 0x104
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x424]
push 1
push eax
mov dword [ebp - 4], ebx
call fcn.00425c30
mov ecx, dword [ebp - 0xc]
add esp, 0x1c
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4692d0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x14000
mov dword [esp + 0x10], 0xa000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x46938c
mov ecx, 0x5000
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push esi
push 0
mov dword [esi], eax
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov ebx, eax
test ebx, ebx
jne 0x469326
push esi
call fcn.0049bb1b
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
test dword [esi + 0xc], 0x100000
jne 0x469351
mov edx, dword [esi + 4]
push edx
call ebp
test eax, eax
jne 0x469351
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WININET.dll_UnlockUrlCacheEntryFileW]
mov ecx, dword [esi + 4]
push ecx
call ebp
lea edx, [esp + 0x10]
mov ecx, 0x5000
xor eax, eax
mov edi, esi
push edx
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], 0xa000
push ebx
mov dword [esi], 0xa000
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x46932d
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push esi
call fcn.0049bb1b
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46a190
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0x41e
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov esi, eax
push 0
push 0x1042
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46a228
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 4
push ecx
push eax
push 0x104b
push esi
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
je 0x46a228
mov edx, dword [esp + 0x30]
push edx
call fcn.004685f0
mov edi, eax
add esp, 4
test edi, edi
je 0x46a210
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ebx
push 0x1008
push esi
call ebp
mov eax, dword [esp + 0x3c]
push eax
call fcn.0046a270
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x46a6c0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x6ba51c]
sub esp, 0x244
test eax, eax
je 0x46a70d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46a70d
mov eax, dword [0x6ba51c]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x46a6f9
mov ecx, dword [0x6ba51c]
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x6ba51c]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0x244
ret
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], 0
push 0x208
rep stosd dword es:[edi], eax
mov ecx, dword [0x5d00a4]
stosw word es:[edi], ax
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0x40
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], str._tp:4
mov dword [esp + 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
je 0x46a7a3
mov ecx, dword [esp + 0x38]
push 0xbb8
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x244
ret
Function at 0x46a910
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d0533
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0xc]
mov dword [esi], 0x4d48c8
mov dword [esi + 0x30], 0x4d48c4
mov dword [edi], 0x4d48fc
lea ecx, [esi + 0x289a4]
mov dword [esp + 0x18], 7
call fcn.00427d20
lea ecx, [esi + 0x25054]
mov byte [esp + 0x18], 6
call fcn.00401610
lea ecx, [esi + 0x2496c]
mov byte [esp + 0x18], 5
call fcn.00495430
lea ecx, [esi + 0x23804]
mov byte [esp + 0x18], 4
call fcn.0045d930
lea ecx, [esi + 0xbccc]
mov byte [esp + 0x18], 3
call fcn.0048edb0
lea ecx, [esi + 0x8260]
mov byte [esp + 0x18], 2
call fcn.0046fa20
lea ecx, [esi + 0x819c]
mov byte [esp + 0x18], 1
call fcn.0044fd20
mov ecx, esi
mov byte [esp + 0x18], 0
neg ecx
sbb ecx, ecx
and ecx, edi
call fcn.0047d500
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00429380
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46aed0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x46b012
lea edi, [esi + 0x2496c]
push ebx
push 0xa
mov ecx, edi
call fcn.00499070
test eax, eax
je 0x46af5b
lea ecx, [esp + 0xc]
push ebp
push ecx
push 0xa
mov ecx, edi
call fcn.00497b60
lea ebx, [esi + 0x25054]
mov ecx, ebx
call fcn.00404c80
mov ebp, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x1c]
push 0x40
sub eax, ebp
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, ebp
add ecx, eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x25058]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.00402710
pop ebp
jmp 0x46af6a
mov ecx, dword [esi + 0x25058]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x13
mov ecx, edi
call fcn.00499070
test eax, eax
je 0x46afd3
lea edx, [esp + 0xc]
mov ecx, edi
push edx
push 0x13
call fcn.00497b60
lea edi, [esi + 0x23804]
mov ecx, edi
call fcn.0045eff0
mov ebx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x18]
push 0x40
sub eax, ebx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ebx
add ecx, eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x14]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x23808]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.0045f000
jmp 0x46afe2
mov ecx, dword [esi + 0x23808]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x289a4]
call fcn.00428470
lea ecx, [esi + 0x8260]
call fcn.0048e100
mov edi, eax
pop ebx
test edi, edi
je 0x46b012
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46b012
push edi
mov ecx, esi
call fcn.0046f490
pop edi
pop esi
add esp, 0x10
ret

Function at 0x46d970
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x1048
call fcn.0049bb40
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1050]
xor eax, eax
shr ecx, 0x10
cmp ecx, 0x13
jne 0x46da23
push edi
mov ecx, 0x411
lea edi, [esp + 0xa]
mov word [esp + 8], ax
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x23804]
stosw word es:[edi], ax
call fcn.0045efd0
test eax, eax
pop edi
je 0x46d9da
cmp word [eax], 0
je 0x46d9da
push 1
push 1
lea edx, [esp + 0xc]
push 0x824
push edx
push eax
push 0xffffffffffffffff
call fcn.0045f220
mov ecx, eax
call fcn.0045f540
jmp 0x46d9f4
push 1
lea eax, [esp + 8]
push 0x824
push eax
push 0xffffffffffffffff
call fcn.0045f220
mov ecx, eax
call fcn.0045f660
cmp word [esp + 4], 0
je 0x46da1e
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
push 0
push 1
push 1
push 8
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esi + 0x819c]
call fcn.004529e0
mov eax, 1
pop esi
add esp, 0x1048
ret 4
Function at 0x46dba0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x10]
push 0x2008
push 1
push 0x9d99
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret
Function at 0x470ab0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret