joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486070
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 0x808]
mov esi, ecx
push eax
call fcn.0048ad00
test eax, eax
je 0x48616e
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x4860d4
push edi
call fcn.004cf8d0
add esp, 4
test eax, eax
jne 0x4860d4
push dword [esi + 0x10]
push str.SELECT_FREE_DRIVE
call fcn.00419c20
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 0xc
push edi
mov ecx, esi
call fcn.004842b0
test eax, eax
je 0x48616d
cmp dword [ebp + 0x10], 0
jne 0x48611c
cmp dword [ebp + 8], 0
jne 0x486101
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x486101
xor eax, eax
jmp 0x486106
mov eax, 1
push eax
lea eax, [ebp - 0x808]
push eax
push edi
push dword [esi + 0x10]
call fcn.004cf910
add esp, 0x10
jmp 0x486147
push 0
lea eax, [ebp - 0x808]
push eax
push dword [esi + 0x10]
call fcn.00484440
add esp, 0xc
test eax, eax
je 0x48616d
lea eax, [ebp - 0x808]
push eax
push edi
push dword [esi + 0x10]
call fcn.004d1280
add esp, 0xc
test eax, eax
je 0x48616d
cmp dword [0x55e044], 0
je 0x486166
push str.MOUNTED_VOLUMES_MOUNTED
push str.SUCCESSFULLY_MOUNTED
call fcn.004ce1b0
add esp, 8
mov ecx, esi
call fcn.004849d0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 0xc

Function at 0x486180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp esi, 0xffffffff
je 0x4861b2
push esi
call fcn.004cf8d0
add esp, 4
test eax, eax
jne 0x4861b2
push dword [edi + 0x10]
push str.SELECT_FREE_DRIVE
call fcn.00419c20
add esp, 8
pop edi
pop esi
pop ebp
ret 8
push esi
mov ecx, edi
call fcn.004842b0
test eax, eax
je 0x48621e
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
sets cl
push ecx
push dword [ebp + 8]
push esi
push dword [edi + 0x10]
call fcn.004cf910
add esp, 0x10
test eax, eax
je 0x48621e
cmp dword [0x55e044], 0
je 0x4861fd
push str.MOUNTED_VOLUMES_MOUNTED
push str.SUCCESSFULLY_MOUNTED
call fcn.004ce1b0
add esp, 8
call fcn.004cb060
neg eax
sbb eax, eax
neg eax
push eax
push 0x9c52
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
pop edi
pop esi
pop ebp
ret 8

Function at 0x4863c0
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
push dword [edi + 0x10]
mov dword [edi + 0x830], 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
push 9
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop edi
ret 8
Function at 0x487770
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd9f8
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x57f78c], 0
push esi
mov dword [ebp - 0xd9f8], ecx
jne 0x487951
mov esi, dword [ebp + 8]
cmp esi, 0x8000
je 0x487951
push ebx
lea eax, [ebp - 0xd9f0]
push edi
push eax
call fcn.00428bc0
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [ebp - 0xd9f4], eax
cmp esi, 0x8004
jne 0x487876
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 2
jne 0x487876
xor ebx, ebx
lea esi, [ebp - 0xd9ec]
mov edi, 1
nop dword [eax]
test dword [ebp - 0xd9f0], edi
je 0x487864
push 0x51abf8
push esi
call fcn.004e480a
add esp, 8
cmp eax, esi
lea eax, [esi + 8]
je 0x48780f
mov eax, esi
cmp word [eax + 2], 0x3a
jne 0x487864
movzx ecx, word [eax]
mov ax, 0x5a
cmp ax, cx
sbb eax, eax
and eax, 0x20
add eax, 0x41
sub ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0xc]
test dword [ecx + 0xc], eax
je 0x487864
test dword [ebp - 0xd9f4], eax
jne 0x487864
mov eax, dword [ebp - 0xd9f8]
push 1
push ebx
push dword [eax + 0x10]
call fcn.004cba20
push str.HOST_DEVICE_REMOVAL_DISMOUNT_WARN
push str.HOST_DEVICE_REMOVAL_DISMOUNT_WARN_TITLE
call fcn.004ce630
add esp, 0x14
inc ebx
rol edi, 1
add esi, 0x802
cmp ebx, 0x1a
jl 0x4877f0
xor ebx, ebx
lea esi, [ebp - 0xd9ec]
mov edi, 1
test dword [ebp - 0xd9f0], edi
je 0x4878fc
push 0x51abf8
push esi
mov dword [ebp - 0xd9f4], esi
call fcn.004e480a
add esp, 8
cmp eax, esi
jne 0x4878ae
lea eax, [esi + 8]
mov dword [ebp - 0xd9f4], eax
jmp 0x4878b0
mov eax, esi
push eax
call fcn.00429b60
add esp, 4
test eax, eax
je 0x4878fc
push 0
lea eax, [ebp - 0x818]
push eax
mov eax, dword [ebp - 0xd9f4]
push eax
call fcn.0042a7a0
add esp, 0xc
test eax, eax
jne 0x4878fc
mov eax, dword [ebp - 0xd9f8]
push 1
push ebx
push dword [eax + 0x10]
call fcn.004cba20
push str.HOST_DEVICE_REMOVAL_DISMOUNT_WARN
push str.HOST_DEVICE_REMOVAL_DISMOUNT_WARN_TITLE
call fcn.004ce630
add esp, 0x14
inc ebx
rol edi, 1
add esi, 0x802
cmp ebx, 0x1a
jl 0x487883
push 0
call fcn.004a41a0
push 0
call fcn.0049e9f0
mov ecx, dword [ebp - 0xd9f8]
add esp, 8
call fcn.0048a410
mov ecx, dword [ebp - 0xd9f8]
push 1
push 0xffffffffffffffff
call fcn.0048a7a0
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 8
Function at 0x488b50
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x10
mov esi, ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x488b69
call fcn.004cb060
test eax, eax
je 0x488b6e
mov eax, 1
push eax
push 0xffffffffffffffff
push dword [esi + 0x10]
call fcn.004cf9e0
add esp, 0xc
test eax, eax
je 0x488bbc
cmp dword [0x55e044], 0
je 0x488b9b
push str.MOUNTED_VOLUMES_MOUNTED
push str.SUCCESSFULLY_MOUNTED
call fcn.004ce1b0
add esp, 8
call fcn.004cb060
neg eax
sbb eax, eax
neg eax
push eax
push 0x9c52
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
pop esi
ret

Function at 0x489620
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x10]
call fcn.00493180
add esp, 4
cmp eax, 1
jne 0x489647
cmp dword [0x57f7a8], 0
push dword [esi + 0x10]
je 0x489649
call fcn.004ce3a0
add esp, 4
pop esi
ret
call fcn.004ce5a0
add esp, 4
cmp dword [esi + 0x830], 0
je 0x489647
mov ecx, esi
pop esi
jmp fcn.00484a00

Function at 0x489670
Capabilities:
Get disk information

Disassembly:
push edi
mov edi, ecx
call fcn.00421850
push 7
call fcn.0041c0f0
add esp, 4
test eax, eax
je 0x48968f
call fcn.0041c1d0
test eax, eax
jne 0x4896c9
push esi
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov esi, eax
mov ecx, esi
not ecx
push ecx
push 0
push 0x8004
call fcn.004ca970
mov edx, dword [edi]
add esp, 0xc
mov ecx, edi
push 0x64
call dword [edx + 0xd0]
push esi
push 0
push 0x8000
call fcn.004ca970
add esp, 0xc
pop esi
mov ecx, edi
call fcn.0048a410
push 1
push 0xffffffffffffffff
mov ecx, edi
call fcn.0048a7a0
pop edi
jmp fcn.00421690

Function at 0x489ae0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push dword [0x559304]
lea eax, [ebp - 0x808]
mov esi, ecx
push eax
push str.OPEN_VOL_TITLE
push dword [esi + 0x10]
call fcn.00404000
add esp, 0x18
test eax, eax
je 0x489ba5
push 0xffffffffffffffff
mov ecx, esi
call fcn.004842b0
test eax, eax
je 0x489b91
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
lea eax, [ebp - 0x808]
sets cl
push ecx
push eax
push 0xffffffffffffffff
push dword [esi + 0x10]
call fcn.004cf910
add esp, 0x10
test eax, eax
je 0x489b91
cmp dword [0x55e044], 0
je 0x489b70
push str.MOUNTED_VOLUMES_MOUNTED
push str.SUCCESSFULLY_MOUNTED
call fcn.004ce1b0
add esp, 8
call fcn.004cb060
neg eax
sbb eax, eax
neg eax
push eax
push 0x9c52
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x489bc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
lea eax, [ebp - 0x808]
push 3
push eax
push dword [esi + 0x10]
call fcn.004943d0
add esp, 0x10
cmp eax, 1
jne 0x489c7b
push 0xffffffffffffffff
mov ecx, esi
call fcn.004842b0
test eax, eax
je 0x489c67
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
lea eax, [ebp - 0x808]
sets cl
push ecx
push eax
push 0xffffffffffffffff
push dword [esi + 0x10]
call fcn.004cf910
add esp, 0x10
test eax, eax
je 0x489c67
cmp dword [0x55e044], 0
je 0x489c46
push str.MOUNTED_VOLUMES_MOUNTED
push str.SUCCESSFULLY_MOUNTED
call fcn.004ce1b0
add esp, 8
call fcn.004cb060
neg eax
sbb eax, eax
neg eax
push eax
push 0x9c52
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret

Function at 0x489c90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
mov esi, ecx
lea eax, [ebp - 0x808]
push 3
push eax
push dword [esi + 0x10]
call fcn.004943d0
add esp, 0x10
cmp eax, 1
jne 0x489d4b
push 0xffffffffffffffff
mov ecx, esi
call fcn.004842b0
test eax, eax
je 0x489d37
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
lea eax, [ebp - 0x808]
sets cl
push ecx
push eax
push 0xffffffffffffffff
push dword [esi + 0x10]
call fcn.004cf910
add esp, 0x10
test eax, eax
je 0x489d37
cmp dword [0x55e044], 0
je 0x489d16
push str.MOUNTED_VOLUMES_MOUNTED
push str.SUCCESSFULLY_MOUNTED
call fcn.004ce1b0
add esp, 8
call fcn.004cb060
neg eax
sbb eax, eax
neg eax
push eax
push 0x9c52
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x489d60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
push dword [edi + 0x10]
call fcn.00421af0
mov esi, eax
add esp, 4
cmp esi, dword [edi + 0x10]
je 0x489e1f
call sub.SHELL32.dll_IsUserAnAdmin
test eax, eax
je 0x489d9a
push 8
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x489e1f
cmp dword [0x576494], 0
je 0x489deb
cmp dword [0x559304], 0
je 0x489deb
mov ecx, 0x576498
mov dword [ebp - 0xc], 0x4d414e56
mov dword [ebp - 4], 0x576498
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489dc2
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x10]
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0x830], 0
jne 0x489e14
push 0
push 0
push 0x80ca
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48a0a0
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x834], 0
je 0x48a111
cmp dword [0x577640], 0
jne 0x48a111
push dword [edi + 0x10]
mov dword [0x577640], 1
mov dword [edi + 0x830], 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
push 9
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x10]
push str.SYSTEM_CRASHED_ASK_REPORT
call fcn.00419930
add esp, 8
cmp eax, 6
jne 0x48a11d
call fcn.00416ae0
push dword [edi + 0x10]
test eax, eax
je 0x48a113
call fcn.004a5070
add esp, 4
pop edi
ret
call fcn.004a6b40
add esp, 4
pop edi
ret
push dword [edi + 0x10]
push str.ASK_KEEP_DETECTING_SYSTEM_CRASH
call fcn.00419930
add esp, 8
cmp eax, 7
jne 0x48a111
mov dword [0x57f7c8], 1
pop edi
jmp fcn.004cc0f0
Function at 0x48caa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], 0
nop word [eax + eax]
push esi
call ebx
test ax, ax
jns 0x48cad6
push edi
push esi
call fcn.0048be70
add esp, 8
test eax, eax
jne 0x48cae6
inc esi
cmp esi, 0xff
jbe 0x48cac0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
mov eax, 1
pop esi
pop ebx
pop ebp
ret

Function at 0x48d490
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
and ebx, 1
xor esi, esi
nop word [eax + eax]
mov al, byte [esi + 0x55bb45]
mov edi, dword [esi + 0x55bb40]
test al, al
je 0x48d524
cmp al, 0x26
je 0x48d515
cmp dword [0x5789ec], 0
jne 0x48d4d6
cmp dword [0x5789f0], 0
je 0x48d4df
xor eax, eax
test ebx, ebx
sete al
mov ebx, eax
movzx eax, byte [esi + 0x55bb44]
push eax
test ebx, ebx
je 0x48d500
call fcn.004f842a
add esp, 4
mov byte [ebp - 4], al
lea eax, [ebp - 4]
mov byte [ebp - 3], 0
push eax
jmp 0x48d51a
call fcn.004f83fa
add esp, 4
mov byte [ebp - 4], al
lea eax, [ebp - 4]
mov byte [ebp - 3], 0
push eax
jmp 0x48d51a
push 0x527d24
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esi, 8
cmp esi, 0x1b0
jb 0x48d4b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x2a3
jne 0x490831
cmp dword [ecx + 0x48], 0
je 0x490828
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x58], 5
mov eax, 1
pop ebp
ret 0xc
cmp eax, 0x2a1
jne 0x49084c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00490370
mov eax, 1
pop ebp
ret 0xc
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00424c20
Function at 0x4923c0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 1
push 0x40
push 0x40b
mov eax, dword [edi]
call dword [eax + 0x8c]
push eax
call fcn.004157b0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x49253e
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx eax, ax
push eax
lea eax, [edi + 0x830]
push str._08X
push eax
call fcn.004054c0
add esp, 0xc
push 1
push 0x51ee44
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
cmp eax, 0x409
je 0x49244d
cmp eax, 0x4090409
je 0x49244d
push dword [edi + 0x10]
push str.CANT_CHANGE_KEYB_LAYOUT_FOR_SYSENC
call fcn.00419a00
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push 2
call dword [eax + 0xf4]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
push 0
push 0xa
push 0xff
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x49248a
push dword [edi + 0x10]
push str.CANNOT_SET_TIMER
call fcn.00419a00
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push 2
call dword [eax + 0xf4]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x449
call dword [eax + 0x8c]
push eax
call fcn.00405b70
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push 0
push 0x449
call dword [eax + 0x8c]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x40b
call dword [eax + 0x8c]
push eax
call fcn.004068f0
lea eax, [edi + 0x848]
add esp, 8
cmp dword [eax], 0
je 0x4924f6
push eax
call fcn.004b9bc0
add esp, 4
mov dword [edi + 0x844], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x13c5
call dword [eax + 0x8c]
push eax
call esi
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x407
call dword [eax + 0x8c]
push eax
call esi
push 0
push dword [edi + 0x10]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov dword [edi + 0x82c], 1
mov eax, 1
pop edi
pop esi
pop ebp
ret 4
push 0xff
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_KillTimer]
push 3
lea eax, [edi + 0x830]
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test eax, eax
jne 0x49256f
push dword [edi + 0x10]
push str.CANNOT_RESTORE_KEYBOARD_LAYOUT
call fcn.00419c20
add esp, 8
mov eax, dword [edi]
mov ecx, edi
push 1
push 0x449
call dword [eax + 0x8c]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
mov eax, dword [edi]
mov ecx, edi
push 1
push 0x13c5
call dword [eax + 0x8c]
push eax
call esi
mov eax, dword [edi]
mov ecx, edi
push 1
push 0x407
call dword [eax + 0x8c]
push eax
call esi
push 1
push dword [edi + 0x10]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov dword [edi + 0x82c], 0
mov eax, 1
pop edi
pop esi
pop ebp
ret 4

Function at 0x4986e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x57c08c], 0
jne 0x498728
push 0
push 0x498730
push dword [ebp + 8]
push 0x1399
push dword [0x568608]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 1
push eax
mov dword [0x57c08c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1f4
push dword [0x57c08c]
call fcn.004aa220
add esp, 8
pop ebp
ret
Function at 0x499720
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1810
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x5298f0]
movq xmm0, qword [str._p__]
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x7f8
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push 0
push eax
movq qword [ebp - 0x100c], xmm0
call fcn.004e46b0
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.004e46b0
push 0x802
lea eax, [ebp - 0x1810]
push 0
push eax
call fcn.004e46b0
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1810]
add esp, 0x24
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4997a0
lea eax, [ebp - 0x808]
push eax
push 0x401
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x808]
push eax
call fcn.00414f30
add esp, 4
test eax, eax
jne 0x49981a
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.0041ebf0
lea ecx, [ebp - 0x808]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4997f4
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jae 0x49985b
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1810]
push esi
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x499823
lea edi, [ebp - 0x808]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x499840
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0
push 2
lea eax, [ebp - 0x808]
push 0x5298f4
push eax
call fcn.004155e0
add esp, 0x10
test eax, eax
lea eax, [ebp - 0x808]
je 0x499896
push 1
push dword [ebp + 0x10]
push ebx
push eax
call fcn.004155e0
add esp, 0x10
test eax, eax
jne 0x4998b1
lea eax, [ebp - 0x808]
push eax
call fcn.004f1f51
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x808]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x100e], ax
test ax, ax
jne 0x4998b3
lea edi, [ebp - 0x100c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4998d4
mov eax, dword [0x518bd8]
mov dword [edi], eax
call fcn.00421850
push 0
push 0
lea eax, [ebp - 0x100c]
push eax
push str.notepad
push 0x518484
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1770
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.00421690
lea eax, [ebp - 0x808]
push eax
call fcn.004f1f51
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x49a8f0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511be8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x54]
push esi
push 0x66
call fcn.00423970
mov dword [ebp - 0x54], 0x529d08
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 4], 0
nop
movzx ecx, word [eax + 0x51ee44]
lea eax, [eax + 2]
mov word [ebp + eax - 0x2e], cx
test cx, cx
jne 0x49a940
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx eax, ax
push eax
lea eax, [ebp - 0x2c]
push str._08X
push eax
call fcn.004054c0
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.00424020
cmp dword [ebp - 0x18], 0
mov edi, eax
je 0x49a9ad
push 3
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test eax, eax
jne 0x49a9ad
push esi
push str.CANNOT_RESTORE_KEYBOARD_LAYOUT
call fcn.00419c20
add esp, 8
lea ecx, [ebp - 0x54]
call fcn.00423a30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x49ff30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x400
push edi
push 0x40a
mov eax, dword [esi]
call dword [eax + 0x8c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
call fcn.0042a830
mov ecx, edi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ff62
sub ecx, edx
sar ecx, 1
jne 0x49ff91
cmp dword [ebp + 0xc], 0
jne 0x49ff89
push dword [esi + 0x10]
push str.NO_VOLUME_SELECTED
call fcn.00419c20
add esp, 8
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
push edi
call fcn.0042ad90
add esp, 4
test eax, eax
jne 0x49ffbb
cmp dword [ebp + 0xc], eax
jne 0x49ff89
push dword [esi + 0x10]
push str.INVALID_PATH
call fcn.00419c20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [esi]
mov ecx, esi
push edi
push 0x40a
call dword [eax + 0x8c]
push eax
call fcn.00418340
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
ret 8