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

Disassembly:
sub esp, 0x108
push ebx
mov ebx, 0x200
test ebx, eax
push ebp
push edi
je 0x40a090
or dword [esi + 0x13c], 8
test ax, 0x400
je 0x40a09d
or dword [esi + 0x13c], 1
mov edi, 0x100
test edi, eax
je 0x40a0ad
or dword [esi + 0x13c], 2
mov eax, dword [esi + 0x13c]
test al, 8
je 0x40a0c6
test ax, 0x800
je 0x40a0c6
xor eax, 8
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x13c]
test al, 1
je 0x40a0dd
test edi, eax
je 0x40a0dd
xor eax, 1
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x13c]
test al, 2
je 0x40a0f4
test ebx, eax
je 0x40a0f4
xor eax, 2
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x13c]
test al, 0x10
je 0x40a10d
test ax, 0x1000
je 0x40a10d
xor eax, 0x10
mov dword [esi + 0x13c], eax
cmp dword [esi + 0x140], 0
je 0x40a16a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x13c]
test ax, 0x800
jne 0x40a132
mov byte [esp + 0x21], 0
test edi, eax
jne 0x40a13b
mov byte [esp + 0x22], 0
test ebx, eax
jne 0x40a14f
mov ecx, dword [esi + 0x14c]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x40a15a
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40a25b
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
pop ebx
push ebx
call ebp
mov edi, 0x8000
test di, ax
jne 0x40a18c
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a1a0
test word [esi + 0x13c], 0x800
jne 0x40a1a0
push 0
mov eax, esi
call fcn.0040aa7b
push 0x12
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a1b7
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a1cb
test word [esi + 0x13c], 0x100
jne 0x40a1cb
push 0
mov eax, esi
call fcn.0040aa7b
push dword [esi + 0x14c]
call ebp
test di, ax
jne 0x40a1e9
push dword [esi + 0x14c]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a203
test word [esi + 0x13c], 0x200
jne 0x40a203
mov ebx, dword [esi + 0x14c]
push 0
mov eax, esi
call fcn.0040aa7b
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x40a21c
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a230
test word [esi + 0x13c], 0x400
jne 0x40a230
push 0
mov eax, esi
call fcn.0040aa7b
push 0x5b
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a247
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a25b
test word [esi + 0x13c], 0x1000
jne 0x40a25b
push 0
mov eax, esi
call fcn.0040aa7b
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x40a265
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebx
mov ebx, dword [esp + 0x10c]
cmp dword [ebx + 0x140], 0
je 0x40a31e
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x40a2aa
test word [ebx + 0x13c], 0x800
jne 0x40a2aa
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x40a2c0
test word [ebx + 0x13c], 0x100
jne 0x40a2c0
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x14c]
cmp byte [esp + ecx + 8], al
je 0x40a2d2
cmp byte [esp + 0x18], al
jne 0x40a2e2
test word [ebx + 0x13c], 0x200
jne 0x40a2e2
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x40a2fb
test word [ebx + 0x13c], 0x400
jne 0x40a2fb
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x40a400
test word [ebx + 0x13c], 0x1000
jne 0x40a400
or dword [esp + 4], 0x10
jmp 0x40a400
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
jne 0x40a344
push 0x11
call ebp
test si, ax
je 0x40a357
test word [ebx + 0x13c], 0x800
jne 0x40a357
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x40a369
push 0x12
call ebp
test si, ax
je 0x40a379
test word [ebx + 0x13c], 0x100
jne 0x40a379
or dword [esp + 0x10], 1
add ebx, 0x14c
push dword [ebx]
call edi
test si, ax
jne 0x40a391
push dword [ebx]
call ebp
test si, ax
je 0x40a3a8
mov eax, dword [esp + 0x118]
test word [eax + 0x13c], 0x200
jne 0x40a3a8
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x40a3bd
push ebx
call ebp
test si, ax
je 0x40a3d4
mov eax, dword [esp + 0x118]
test word [eax + 0x13c], 0x400
jne 0x40a3d4
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x40a3e6
push 0x5b
call ebp
test si, ax
je 0x40a3fd
mov eax, dword [esp + 0x118]
test word [eax + 0x13c], 0x1000
jne 0x40a3fd
or dword [esp + 0x10], 0x10
pop edi
pop esi
pop ebp
mov eax, dword [esp + 4]
pop ebx
add esp, 0x104
ret 4
Function at 0x40a526
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 8]
test bl, 0x1f
push edi
je 0x40a72c
mov eax, dword [esi + 0x140]
xor edi, edi
cmp eax, edi
je 0x40a6b1
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40a6b1
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x40a578
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x40a596
mov eax, dword [esi + 0x14c]
or byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
or byte [eax], cl
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x14], 4
je 0x40a5a8
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x40a5b7
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x40a5c6
or byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test edi, edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, 0x100
je 0x40a5fb
movzx eax, byte [esi + 0x149]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x140]
call edi
cmp dword [ebp - 0x10], 0
je 0x40a61e
movzx eax, byte [esi + 0x147]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x14c]
push ebx
push dword [esi + 0x140]
call edi
cmp dword [ebp - 0x14], 0
je 0x40a63d
movzx eax, byte [esi + 0x148]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x140]
call edi
cmp dword [ebp - 8], 0
je 0x40a65c
movzx eax, byte [esi + 0x144]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x140]
call edi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x40a723
cmp dword [ebp - 8], eax
jne 0x40a68d
test word [ebp + 8], 0x800
jne 0x40a68d
movzx eax, byte [esi + 0x145]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x40a6a7
cmp dword [ebp - 0xc], eax
je 0x40a723
movzx eax, byte [esi + 0x145]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x140]
call edi
jmp 0x40a723
test bl, 0x10
je 0x40a6c6
movzx eax, byte [esi + 0x149]
push edi
push eax
push 0x5b
call fcn.00409ebd
test bl, 2
je 0x40a6e1
movzx eax, byte [esi + 0x147]
push edi
push eax
movzx eax, byte [esi + 0x14c]
push eax
call fcn.00409ebd
test bl, 4
je 0x40a6f9
movzx eax, byte [esi + 0x148]
push edi
push eax
push 0xa1
call fcn.00409ebd
test bl, 8
je 0x40a70e
movzx eax, byte [esi + 0x144]
push edi
push eax
push 0x11
call fcn.00409ebd
test bl, 1
je 0x40a723
movzx eax, byte [esi + 0x145]
push edi
push eax
push 0x12
call fcn.00409ebd
mov edi, dword [esi + 4]
push esi
call fcn.0040b017
pop edi
pop ebx
leave
ret 4
Function at 0x40a732
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x40a946
mov eax, dword [esi + 0x140]
test eax, eax
je 0x40a8c5
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40a8c5
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
and eax, 1
mov dword [ebp - 0x10], eax
mov ebx, 0x101
je 0x40a7ae
test byte [ebp + 8], 8
jne 0x40a7ae
test word [ebp + 8], 0x800
jne 0x40a7ae
movzx eax, byte [esi + 0x145]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x40a7c5
test eax, eax
je 0x40a7cd
movzx eax, byte [esi + 0x145]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x140]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x40a7f3
movzx eax, byte [esi + 0x144]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x140]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x40a81d
movzx eax, byte [esi + 0x147]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x14c]
push ebx
push dword [esi + 0x140]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x40a843
movzx eax, byte [esi + 0x148]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x140]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x40a869
movzx eax, byte [esi + 0x149]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x140]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x40a878
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x40a892
mov eax, dword [esi + 0x14c]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x40a8a0
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x40a8ab
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x40a8b6
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40a93e
test byte [ebp + 8], 1
push 2
pop ebx
je 0x40a8de
movzx eax, byte [esi + 0x145]
push ebx
push eax
push 0x12
call fcn.00409ebd
test byte [ebp + 8], 8
je 0x40a8f4
movzx eax, byte [esi + 0x144]
push ebx
push eax
push 0x11
call fcn.00409ebd
test byte [ebp + 8], bl
je 0x40a90f
movzx eax, byte [esi + 0x147]
push ebx
push eax
movzx eax, byte [esi + 0x14c]
push eax
call fcn.00409ebd
test byte [ebp + 8], 4
je 0x40a928
movzx eax, byte [esi + 0x148]
push ebx
push eax
push 0xa1
call fcn.00409ebd
test byte [ebp + 8], 0x10
je 0x40a93e
movzx eax, byte [esi + 0x149]
push ebx
push eax
push 0x5b
call fcn.00409ebd
mov edi, dword [esi]
push esi
call fcn.0040b017
pop edi
pop ebx
leave
ret 4
Function at 0x40a971
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp dword [ebx + 0x140], 0
mov esi, eax
je 0x40aa44
cmp edi, 0x14
je 0x40aa44
cmp edi, 0x90
je 0x40aa44
cmp edi, 0x91
je 0x40aa44
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + edi - 0x104], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
xor edx, edx
shl esi, 0x10
inc edx
or esi, edx
cmp byte [ebp + 8], dl
je 0x40a9fa
cmp edi, 0x2d
je 0x40a9f4
mov eax, edi
call fcn.0040a40e
jmp 0x40a9f6
mov al, dl
cmp al, dl
jne 0x40aa00
or esi, 0x1000000
mov ecx, dword [ebx + 0x13c]
test dl, cl
mov eax, 0x100
jne 0x40aa18
test eax, ecx
jne 0x40aa18
cmp edi, 0x12
jne 0x40aa33
test cl, 8
jne 0x40aa33
test cx, 0x800
jne 0x40aa33
or esi, 0x20000000
push esi
push edi
push 0x104
jmp 0x40aa36
push esi
push edi
push eax
push dword [ebx + 0x140]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40aa6c
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x40aa64
cmp edi, 0x2d
je 0x40aa5a
mov eax, edi
call fcn.0040a40e
jmp 0x40aa5c
mov al, dl
cmp al, dl
je 0x40aa64
push 0
jmp 0x40aa65
push edx
push esi
push edi
call fcn.00409ebd
mov edi, dword [ebx + 4]
push ebx
call fcn.0040b017
pop edi
pop esi
leave
ret 4

Function at 0x40aa7b
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp dword [edi + 0x140], 0
mov esi, eax
je 0x40ab51
cmp ebx, 0x14
je 0x40ab51
cmp ebx, 0x90
je 0x40ab51
cmp ebx, 0x91
je 0x40ab51
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x40aaf1
cmp ebx, 0x2d
je 0x40aaeb
mov eax, ebx
call fcn.0040a40e
jmp 0x40aaed
mov al, 1
cmp al, 1
jne 0x40aaf7
or esi, 0x1000000
mov eax, dword [edi + 0x13c]
test al, 1
jne 0x40ab0c
test ax, 0x100
jne 0x40ab0c
cmp ebx, 0x12
jne 0x40ab25
test al, 8
jne 0x40ab25
test ax, 0x800
jne 0x40ab25
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x40ab2c
push esi
push ebx
push 0x101
push dword [edi + 0x140]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp + ebx - 0x104]
xor byte [eax], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40ab78
cmp byte [ebp + 8], 1
je 0x40ab6f
cmp ebx, 0x2d
je 0x40ab65
mov eax, ebx
call fcn.0040a40e
jmp 0x40ab67
mov al, 1
cmp al, 1
je 0x40ab6f
push 2
jmp 0x40ab71
push 3
push esi
push ebx
call fcn.00409ebd
push edi
mov edi, dword [edi]
call fcn.0040b017
pop edi
pop esi
leave
ret 4
Function at 0x40b017
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x40b0ab
jne 0x40b02f
push 0
jmp 0x40b0a5
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x11d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40b0a4
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40b0a4
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x46ebc8]
call fcn.004659c6
cmp eax, edi
jb 0x40b062
jmp 0x40b0ab
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b0b2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x40b0d0
xor al, al
jmp 0x40b1f3
push eax
call fcn.0040f14a
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [esi], bl
mov byte [edi], bl
mov byte [ecx], bl
call fcn.00451750
inc eax
push eax
call fcn.0044f4b6
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x40b114
cmp al, 0x5e
je 0x40b110
cmp al, 0x21
je 0x40b110
cmp al, 0x23
jne 0x40b138
cmp al, 0x2b
jne 0x40b119
mov eax, dword [ebp + 0xc]
jmp 0x40b129
cmp al, 0x5e
jne 0x40b122
mov byte [edi], 1
jmp 0x40b135
cmp al, 0x21
jne 0x40b12e
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40b135
cmp al, 0x23
jne 0x40b135
mov byte [esi], 1
inc ebx
jmp 0x40b0fa
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x40b1a3
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.0040afda
test eax, eax
je 0x40b15f
mov byte [ebp - 1], 0
jmp 0x40b1d5
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x4743a0]
call fcn.0044f30b
test eax, eax
pop ecx
pop ecx
je 0x40b181
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x40b15f
cmp esi, 0x62
jne 0x40b18c
movzx eax, byte [ebx]
push eax
jmp 0x40b1a6
cmp byte [esi + 0x474528], 0
jne 0x40b159
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40b1d5
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 8]
movsx eax, ax
test ax, 0x200
mov dword [ecx], eax
je 0x40b1bd
mov byte [edi], 1
test ax, 0x400
je 0x40b1c9
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x40b1d5
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044f520
push dword [ebp - 8]
call fcn.0044f520
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b25d
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x40b27a
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40b292
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
mov dword [esp + 0x1c], ebp
call edi
test eax, eax
jne 0x40b376
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push ebx
mov dword [esp + 0x18], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
call esi
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
call esi
push 1
push dword [esp + 0x20]
push dword [esp + 0x1c]
call esi
push ebx
call edi
test eax, eax
jne 0x40b34b
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x40b353
mov dword [esp + 0x18], 4
jmp 0x40b353
mov dword [esp + 0x18], 3
push ebp
push dword [esp + 0x20]
push dword [esp + 0x18]
call esi
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
call esi
push ebp
push dword [esp + 0x20]
push dword [esp + 0x1c]
call esi
jmp 0x40b37e
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x40b457
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40b474
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40b467
cmp edi, 0x10
jne 0x40b480
xor eax, eax
jmp 0x40b520
cmp byte [esi + 0x18], 1
jne 0x40b4f7
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x40b4d3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40b4d3
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x40b4df
mov eax, 0x4036c7
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x40b51e
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40cf87
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40d007
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40cfb0
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.004525f3
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40d006
mov eax, dword [esi]
test al, 0x20
je 0x40cfcb
push dword [esi + 4]
push 2
push ebx
push 0x46bac0
call fcn.004527bd
mov dword [esi + 0xc], ebx
jmp 0x40d003
test al, 0x40
je 0x40cfe8
push dword [esi + 4]
push 2
push ebx
push 0x46bac4
call fcn.004527bd
mov dword [esi + 0xc], 2
jmp 0x40d003
test al, al
jns 0x40d006
push dword [esi + 4]
push 3
push ebx
push 0x46bac8
call fcn.004527bd
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40d03b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46bacc
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.004524d4
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40d0c6
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.00452bc9
push edi
mov ebx, eax
call fcn.004528b1
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40d0a3
cmp byte [ebp + 8], 0xff
jne 0x40d092
cmp byte [ebp + 9], 0xfe
jne 0x40d0a3
mov dword [esi + 0xc], 1
jmp 0x40d0c1
cmp byte [ebp + 8], 0xfe
jne 0x40d0a3
cmp byte [ebp + 9], 0xff
jne 0x40d0a3
mov dword [esi + 0xc], eax
jmp 0x40d0c1
cmp ebx, 3
jb 0x40d0c5
cmp byte [ebp + 8], 0xef
jne 0x40d0c5
cmp byte [ebp + 9], 0xbb
jne 0x40d0c5
cmp byte [ebp + 0xa], 0xbf
jne 0x40d0c5
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40d18d
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40d1bd
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d1e3
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
jmp 0x40d1e5
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00452bc9
mov dword [edi], eax
push dword [esi + 4]
call fcn.00452c13
add esp, 0x14
test eax, eax
je 0x40d1e3
and dword [edi], 0
jmp 0x40d1b9
mov al, 1
pop ebx
ret 4

Function at 0x40d525
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40d5a4
cmp edi, 4
jle 0x40d536
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00452e30
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.0044f8e0
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.00452bc9
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40d5a4
push dword [esi + 4]
call fcn.00452be4
test eax, eax
pop ecx
jne 0x40d59f
push dword [esi + 4]
call fcn.00452c13
test eax, eax
pop ecx
jne 0x40d59f
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40d6bd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x40d71d
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret