joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464ba6
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ad21e
call fcn.004a8254
sub esp, 0x1c
mov eax, dword [0x4da2a0]
push ebx
push esi
push edi
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._x_
lea eax, [ebp - 0x14]
call fcn.00407037
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00464938
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004066fe
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov esi, dword [ebp + 8]
lea edi, [esi + 0x570]
mov dword [ebp - 0x10], edi
call fcn.00405db2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405cd2
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405cd2
add esi, 0x550
call fcn.004731c5
test eax, eax
je 0x464d35
cmp dword [esi + 8], 0x100000
jb 0x464d35
call fcn.00473274
test eax, eax
jne 0x464c68
mov ebx, esi
call fcn.004732cc
test eax, eax
je 0x464d35
push dword [edi]
mov ecx, esi
push 0
call fcn.00473027
lea eax, [ebp - 0x18]
push 0x4b95bc
push eax
mov ecx, edi
call fcn.004098e5
lea ecx, [ebp - 0x1c]
push 0x4db368
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004066fe
add esp, 0x10
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.0047426a
pop ecx
mov ecx, eax
call fcn.004742e7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405cd2
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405cd2
push dword [edi]
lea eax, [ebp - 0x28]
push eax
call fcn.004637c3
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov esi, dword [eax]
call fcn.0047426a
mov ebx, dword [eax + 0x14]
call fcn.0047426a
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
call fcn.0047426a
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
call fcn.0047426a
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0047426a
mov eax, dword [eax + 4]
push esi
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.0045a977
mov ecx, dword [ebp - 0x24]
call fcn.0045a4a2
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405cd2
call fcn.00470c82
mov ecx, edi
mov edx, eax
call fcn.00470cc4
mov ebx, dword [ebp + 8]
call fcn.00466da2
mov edi, ebx
push edi
call fcn.00466ed0
call fcn.004641de
push edi
call fcn.004649fe
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push str._res
push eax
call fcn.004098e5
pop ecx
pop ecx
mov byte [ebp - 4], 6
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x464d9c
push dword [ebp + 8]
call fcn.0040ecff
push eax
call fcn.0040607b
call fcn.0040f25d
mov ebx, eax
call fcn.0040f288
call fcn.0046217e
call fcn.004624c2
call fcn.0046264c
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405cd2
push edi
call fcn.00466933
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x465bec
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x24]
push 0xa1
mov eax, ebx
call fcn.00467da0
test eax, eax
je 0x465c12
mov eax, ebx
call fcn.00467d29
mov dword [0x4d690c], eax
xor ebp, ebp
cmp dword [0x4d690c], ebp
jne 0x465c27
push esi
call fcn.00466d0a
mov dword [0x4d690c], eax
push ebp
push 0xc
mov eax, ebx
call fcn.0042ff7d
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push ebp
push 0x32
push 0x3eb
push dword [esi + 4]
call edi
push ebp
push 0x50
push 0x3ed
push dword [esi + 4]
call edi
push ebp
push 0x1e
push 1
push dword [esi + 4]
call edi
push ebp
push 0x64
mov eax, ebx
call fcn.0042ff7d
xor edi, edi
inc edi
push edi
push 0xc8
mov eax, ebx
call fcn.0042ff7d
push edi
push 0xd
mov eax, ebx
call fcn.0042ff7d
push ebp
call fcn.004666d6
push ebp
push ebp
push esi
push 0x465bd2
push ebp
push ebp
call fcn.0047f2df
add esp, 0x18
push edi
push edi
mov dword [esi + 0x944], eax
call fcn.0045a977
push eax
call fcn.0045a3f9
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x46600b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4aa2dd
call fcn.004a8254
push ecx
push esi
call fcn.00450b19
mov eax, dword [eax]
test eax, eax
jle 0x46606a
call fcn.00450b19
mov eax, dword [eax]
test eax, eax
jle 0x466032
call fcn.004595ad
mov eax, edi
call fcn.00466eb4
test eax, eax
jne 0x4660d0
call fcn.0047426a
cmp dword [eax + 0x38], 0
jne 0x4660d0
push 5
mov ecx, edi
call fcn.00467618
cmp eax, 1
jne 0x4660d0
call fcn.00450b19
call fcn.00459523
jmp 0x4660d0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4660d0
call fcn.0047426a
cmp dword [eax + 0x38], esi
je 0x4660c5
lea eax, [ebp - 0x10]
push eax
call fcn.0040656b
pop ecx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.0040a67c
lea eax, [ebp - 0x10]
mov dword [esp], str.wmtray.exe
push eax
call fcn.00406cf7
push 1
push esi
push str._from:shortcut__product:1
push dword [ebp - 0x10]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
jmp 0x4660d0
lea eax, [edi + 0x958]
call fcn.0046feb9
xor ecx, ecx
mov eax, edi
call fcn.0042fd64
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret 4
Function at 0x46635d
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [edi]
lea esi, [ebp - 4]
call fcn.004587c2
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [edi]
push 3
pop esi
cmp dword [eax - 0xc], esi
jl 0x46641e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4663a0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 1
je 0x46641e
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.00407082
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
mov eax, dword [ebp - 4]
setne bl
add eax, 0xfffffff0
call fcn.00405cd2
test bl, bl
je 0x4663cd
push 2
pop eax
jmp 0x466421
push edi
call fcn.004662d1
test eax, eax
pop ecx
je 0x4663dc
mov eax, esi
jmp 0x466421
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.00407082
push dword [eax]
call fcn.00462c06
mov ebx, eax
mov eax, dword [ebp - 4]
neg ebx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.00405cd2
test bl, bl
je 0x46640b
push 4
jmp 0x4663ca
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x96
jle 0x46641a
push 5
jmp 0x4663ca
xor eax, eax
jmp 0x466421
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x466425
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4ab1f4
call fcn.004a8254
sub esp, 0x44c
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x452]
push esi
push eax
mov word [ebp - 0x454], si
call fcn.00478300
add esp, 0xc
lea eax, [ebp - 0x454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push 0x11
push dword [ebx + 4]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [0x4da2a0]
mov edi, 0x4da2a0
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
push 0x105
lea esi, [ebp - 0x18]
call fcn.00405bfd
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax - 8], ecx
jge 0x4664b2
push 0x80070057
call fcn.00405bc4
mov dword [eax - 0xc], ecx
mov word [eax], cx
push 0x4bfeec
lea eax, [ebp - 0x18]
push eax
call fcn.0040607b
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
call fcn.0040d91d
mov dword [ebp - 0x38], eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], 0x4bfef8
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x4665bf
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call fcn.00478300
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x4da2a0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24c]
push eax
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004587c2
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00406ca6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [ebx + 0x954]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00406ca6
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx + 0x514]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [ebp - 0x14]
call fcn.0046635d
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00405cd2
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x466933
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
mov eax, 0x4acf66
call fcn.004a8254
push ecx
push ebx
push esi
push edi
call fcn.0047426a
lea esi, [ebp - 0x10]
call fcn.00474a1f
mov ebx, dword [ebp + 8]
xor esi, esi
lea edi, [ebx + 0x53c]
mov dword [ebp - 4], esi
call fcn.00405db2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x4669b4
push esi
push 0x26
push 0x104
mov esi, edi
call fcn.00405bfd
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x46699e
push eax
call fcn.0047b48a
pop ecx
mov edx, edi
call fcn.00405bdc
test esi, esi
jne 0x4669b4
push 0x4bff70
push edi
call fcn.0040607b
push 0x4b95bc
push edi
call fcn.00406cf7
mov eax, dword [ebx + 0x954]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00406ca6
call fcn.00470c82
push eax
call fcn.00471f4b
test al, al
je 0x466a0d
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.00470c82
pop ecx
push eax
mov ecx, edi
call fcn.0047237e
mov dword [ebp - 4], 1
call fcn.00405db2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
call fcn.0046635d
neg eax
sbb eax, eax
inc eax
jne 0x466aae
xor ebx, ebx
lea eax, [ebx + 0x41]
movzx esi, ax
mov eax, dword [0x4da2a0]
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
movzx eax, si
push eax
push str._c:_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.004069b2
mov esi, dword [ebp - 0x10]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x466a8e
lea eax, [ebp - 0x10]
call fcn.00405257
mov eax, dword [ebp + 8]
push dword [eax + 0x954]
mov esi, dword [ebp - 0x10]
push esi
push str._sprogram_files_s
mov eax, edi
call fcn.00407037
add esp, 0xc
call fcn.0046635d
test eax, eax
je 0x466aa6
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
call fcn.00405cd2
inc ebx
cmp ebx, 0x1a
jne 0x466a1f
jmp 0x466aae
lea eax, [esi - 0x10]
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x466abf
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, eax
and dword [esi + 0x54c], 0
cmp dword [esp + 8], 0x61
je 0x466ad7
cmp dword [esp + 8], 0x41
jne 0x466b0b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x466b0b
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
add esi, 0x514
push dword [esi]
call edi
push 0
push 0
push 0xb7
push dword [esi]
call edi
pop edi
pop esi
ret 4
Function at 0x466b0f
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4aa2dd
call fcn.004a8254
push ecx
mov eax, dword [0x4da2a0]
push esi
push edi
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x105
lea esi, [ebp - 0x10]
call fcn.00405bfd
push 0x104
push eax
push dword [ebx + 0x514]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x466b5d
xor eax, eax
jmp 0x466b64
push esi
call fcn.0047b48a
pop ecx
lea edx, [ebp - 0x10]
call fcn.00405bdc
lea edi, [ebp - 0x10]
call fcn.0046635d
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x46783f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4aa2dd
call fcn.004a8254
push ecx
push 0
push str.wmtray_9C20A70B_E65D_4ef5_9744_A0D0B52A1BEE
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x4678a5
lea eax, [ebp - 0x10]
push eax
call fcn.0040656b
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040a67c
pop ecx
pop ecx
push str.wmtray.exe
lea eax, [ebp - 0x10]
push eax
call fcn.00406cf7
push 1
push 0
push str._from:autorun
push dword [ebp - 0x10]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x46817d
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x4db440]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x46819a
mov ebp, dword [eax + 4]
jmp 0x46819c
xor ebp, ebp
cmp ebp, esi
jne 0x4681ac
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x4681d1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x4681d1
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4681d1
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [ebx + 0x4dc], esi
push ebp
mov dword [eax], esi
call fcn.00468ca3
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x18], ecx
jne 0x4681fc
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4682eb
mov eax, dword [0x4db440]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x468213
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax + 4], ecx
mov eax, ebp
call fcn.00430827
cmp dword [ebx + 0x4d0], esi
je 0x46828a
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x14]
je 0x46826e
push 1
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x14]
je 0x46828a
push esi
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.00468e85
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x4dc], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x4682cf
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x4682cf
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x4682cf
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4db440]
cmp eax, esi
je 0x4682df
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x46a18e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x3c0]
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x46a1b9
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x3b4]
cmp eax, ebx
je 0x46a298
push eax
call fcn.00411983
mov edi, eax
cmp edi, ebx
pop ecx
je 0x46a24d
mov eax, dword [edi]
push 2
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x46a1f2
push 1
push edi
push esi
call fcn.0046973d
mov eax, dword [esi + 0x3b4]
cmp eax, dword [esi + 0x3b0]
jne 0x46a24d
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00411e6f
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x46a23c
cmp word [eax], bx
je 0x46a23c
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x46a24d
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x46a24d
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x3b4], ebx
je 0x46a298
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc

Function at 0x46a8ad
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46a8f4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x46a8ed
cmp dword [esp + 4], 0x1b
jne 0x46a8d4
push 0
push 2
jmp 0x46a8df
cmp dword [esp + 4], 0xd
jne 0x46a8ed
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x4e0], 0
ret 4
Function at 0x46c982
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4a9714
call fcn.004a8254
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4d508c]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x46c9da
call fcn.0046e067
mov esi, eax
jmp 0x46cadb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x46c9f7
call fcn.0046e067
jmp 0x46cad0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x46c9ed
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x46ca3d
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x46ca33
lea eax, [ebp - 0x424]
call fcn.0046d9bf
mov eax, 0x8007000e
jmp 0x46caf6
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0046cb35
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x46ca61
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0046cb14
jmp 0x46ca6d
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x46ca88
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x46ca99
mov esi, 0x8007000e
jmp 0x46cad2
call dword [0x4d508c]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x46c9ed
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.0046cb5a
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x46caf4
lea eax, [ebp - 0x424]
call fcn.0046d9bf
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x46d9c8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x46d9db
push 0x80004005
call fcn.00405bc4
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x46d9e2
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46da87
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x46db4e
xor eax, eax
cmp dword [ebp - 8], esi
je 0x46dad0
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x46db4e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x46db24
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0046da87
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x46db61
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], pe_nt_image_headers32
call edi
test eax, eax
je 0x46daf8
cmp dword [ebp - 8], esi
je 0x46db3e
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x46db58
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x46db6b
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x46db5a