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

Disassembly:
sub esp, 0x108
push ebx
mov ebx, 0x200
test ebx, eax
push ebp
push edi
je 0x40a05f
or dword [esi + 0x13c], 8
test ax, 0x400
je 0x40a06c
or dword [esi + 0x13c], 1
mov edi, 0x100
test edi, eax
je 0x40a07c
or dword [esi + 0x13c], 2
mov eax, dword [esi + 0x13c]
test al, 8
je 0x40a095
test ax, 0x800
je 0x40a095
xor eax, 8
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x13c]
test al, 1
je 0x40a0ac
test edi, eax
je 0x40a0ac
xor eax, 1
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x13c]
test al, 2
je 0x40a0c3
test ebx, eax
je 0x40a0c3
xor eax, 2
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x13c]
test al, 0x10
je 0x40a0dc
test ax, 0x1000
je 0x40a0dc
xor eax, 0x10
mov dword [esi + 0x13c], eax
cmp dword [esi + 0x140], 0
je 0x40a139
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x13c]
test ax, 0x800
jne 0x40a101
mov byte [esp + 0x21], 0
test edi, eax
jne 0x40a10a
mov byte [esp + 0x22], 0
test ebx, eax
jne 0x40a11e
mov ecx, dword [esi + 0x14c]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x40a129
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40a22a
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
pop ebx
push ebx
call ebp
mov edi, 0x8000
test di, ax
jne 0x40a15b
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a16f
test word [esi + 0x13c], 0x800
jne 0x40a16f
push 0
mov eax, esi
call fcn.0040aa4a
push 0x12
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a186
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a19a
test word [esi + 0x13c], 0x100
jne 0x40a19a
push 0
mov eax, esi
call fcn.0040aa4a
push dword [esi + 0x14c]
call ebp
test di, ax
jne 0x40a1b8
push dword [esi + 0x14c]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a1d2
test word [esi + 0x13c], 0x200
jne 0x40a1d2
mov ebx, dword [esi + 0x14c]
push 0
mov eax, esi
call fcn.0040aa4a
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x40a1eb
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a1ff
test word [esi + 0x13c], 0x400
jne 0x40a1ff
push 0
mov eax, esi
call fcn.0040aa4a
push 0x5b
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a216
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a22a
test word [esi + 0x13c], 0x1000
jne 0x40a22a
push 0
mov eax, esi
call fcn.0040aa4a
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x40a234
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 0x40a2ed
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x40a279
test word [ebx + 0x13c], 0x800
jne 0x40a279
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x40a28f
test word [ebx + 0x13c], 0x100
jne 0x40a28f
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x14c]
cmp byte [esp + ecx + 8], al
je 0x40a2a1
cmp byte [esp + 0x18], al
jne 0x40a2b1
test word [ebx + 0x13c], 0x200
jne 0x40a2b1
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x40a2ca
test word [ebx + 0x13c], 0x400
jne 0x40a2ca
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x40a3cf
test word [ebx + 0x13c], 0x1000
jne 0x40a3cf
or dword [esp + 4], 0x10
jmp 0x40a3cf
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 0x40a313
push 0x11
call ebp
test si, ax
je 0x40a326
test word [ebx + 0x13c], 0x800
jne 0x40a326
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x40a338
push 0x12
call ebp
test si, ax
je 0x40a348
test word [ebx + 0x13c], 0x100
jne 0x40a348
or dword [esp + 0x10], 1
add ebx, 0x14c
push dword [ebx]
call edi
test si, ax
jne 0x40a360
push dword [ebx]
call ebp
test si, ax
je 0x40a377
mov eax, dword [esp + 0x118]
test word [eax + 0x13c], 0x200
jne 0x40a377
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x40a38c
push ebx
call ebp
test si, ax
je 0x40a3a3
mov eax, dword [esp + 0x118]
test word [eax + 0x13c], 0x400
jne 0x40a3a3
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x40a3b5
push 0x5b
call ebp
test si, ax
je 0x40a3cc
mov eax, dword [esp + 0x118]
test word [eax + 0x13c], 0x1000
jne 0x40a3cc
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 0x40a4f5
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 0x40a6fb
mov eax, dword [esi + 0x140]
xor edi, edi
cmp eax, edi
je 0x40a680
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40a680
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x40a547
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x40a565
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 0x40a577
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x40a586
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x40a595
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 0x40a5ca
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 0x40a5ed
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 0x40a60c
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 0x40a62b
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 0x40a6f2
cmp dword [ebp - 8], eax
jne 0x40a65c
test word [ebp + 8], 0x800
jne 0x40a65c
movzx eax, byte [esi + 0x145]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x40a676
cmp dword [ebp - 0xc], eax
je 0x40a6f2
movzx eax, byte [esi + 0x145]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x140]
call edi
jmp 0x40a6f2
test bl, 0x10
je 0x40a695
movzx eax, byte [esi + 0x149]
push edi
push eax
push 0x5b
call fcn.00409e8c
test bl, 2
je 0x40a6b0
movzx eax, byte [esi + 0x147]
push edi
push eax
movzx eax, byte [esi + 0x14c]
push eax
call fcn.00409e8c
test bl, 4
je 0x40a6c8
movzx eax, byte [esi + 0x148]
push edi
push eax
push 0xa1
call fcn.00409e8c
test bl, 8
je 0x40a6dd
movzx eax, byte [esi + 0x144]
push edi
push eax
push 0x11
call fcn.00409e8c
test bl, 1
je 0x40a6f2
movzx eax, byte [esi + 0x145]
push edi
push eax
push 0x12
call fcn.00409e8c
mov edi, dword [esi + 4]
push esi
call fcn.0040afe6
pop edi
pop ebx
leave
ret 4
Function at 0x40a701
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x40a915
mov eax, dword [esi + 0x140]
test eax, eax
je 0x40a894
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40a894
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 0x40a77d
test byte [ebp + 8], 8
jne 0x40a77d
test word [ebp + 8], 0x800
jne 0x40a77d
movzx eax, byte [esi + 0x145]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x40a794
test eax, eax
je 0x40a79c
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 0x40a7c2
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 0x40a7ec
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 0x40a812
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 0x40a838
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 0x40a847
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x40a861
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 0x40a86f
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x40a87a
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x40a885
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40a90d
test byte [ebp + 8], 1
push 2
pop ebx
je 0x40a8ad
movzx eax, byte [esi + 0x145]
push ebx
push eax
push 0x12
call fcn.00409e8c
test byte [ebp + 8], 8
je 0x40a8c3
movzx eax, byte [esi + 0x144]
push ebx
push eax
push 0x11
call fcn.00409e8c
test byte [ebp + 8], bl
je 0x40a8de
movzx eax, byte [esi + 0x147]
push ebx
push eax
movzx eax, byte [esi + 0x14c]
push eax
call fcn.00409e8c
test byte [ebp + 8], 4
je 0x40a8f7
movzx eax, byte [esi + 0x148]
push ebx
push eax
push 0xa1
call fcn.00409e8c
test byte [ebp + 8], 0x10
je 0x40a90d
movzx eax, byte [esi + 0x149]
push ebx
push eax
push 0x5b
call fcn.00409e8c
mov edi, dword [esi]
push esi
call fcn.0040afe6
pop edi
pop ebx
leave
ret 4
Function at 0x40a940
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 0x40aa13
cmp edi, 0x14
je 0x40aa13
cmp edi, 0x90
je 0x40aa13
cmp edi, 0x91
je 0x40aa13
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 0x40a9c9
cmp edi, 0x2d
je 0x40a9c3
mov eax, edi
call fcn.0040a3dd
jmp 0x40a9c5
mov al, dl
cmp al, dl
jne 0x40a9cf
or esi, 0x1000000
mov ecx, dword [ebx + 0x13c]
test dl, cl
mov eax, 0x100
jne 0x40a9e7
test eax, ecx
jne 0x40a9e7
cmp edi, 0x12
jne 0x40aa02
test cl, 8
jne 0x40aa02
test cx, 0x800
jne 0x40aa02
or esi, 0x20000000
push esi
push edi
push 0x104
jmp 0x40aa05
push esi
push edi
push eax
push dword [ebx + 0x140]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40aa3b
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x40aa33
cmp edi, 0x2d
je 0x40aa29
mov eax, edi
call fcn.0040a3dd
jmp 0x40aa2b
mov al, dl
cmp al, dl
je 0x40aa33
push 0
jmp 0x40aa34
push edx
push esi
push edi
call fcn.00409e8c
mov edi, dword [ebx + 4]
push ebx
call fcn.0040afe6
pop edi
pop esi
leave
ret 4

Function at 0x40aa4a
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 0x40ab20
cmp ebx, 0x14
je 0x40ab20
cmp ebx, 0x90
je 0x40ab20
cmp ebx, 0x91
je 0x40ab20
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 0x40aac0
cmp ebx, 0x2d
je 0x40aaba
mov eax, ebx
call fcn.0040a3dd
jmp 0x40aabc
mov al, 1
cmp al, 1
jne 0x40aac6
or esi, 0x1000000
mov eax, dword [edi + 0x13c]
test al, 1
jne 0x40aadb
test ax, 0x100
jne 0x40aadb
cmp ebx, 0x12
jne 0x40aaf4
test al, 8
jne 0x40aaf4
test ax, 0x800
jne 0x40aaf4
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x40aafb
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 0x40ab47
cmp byte [ebp + 8], 1
je 0x40ab3e
cmp ebx, 0x2d
je 0x40ab34
mov eax, ebx
call fcn.0040a3dd
jmp 0x40ab36
mov al, 1
cmp al, 1
je 0x40ab3e
push 2
jmp 0x40ab40
push 3
push esi
push ebx
call fcn.00409e8c
push edi
mov edi, dword [edi]
call fcn.0040afe6
pop edi
pop esi
leave
ret 4
Function at 0x40afe6
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 0x40b07a
jne 0x40affe
push 0
jmp 0x40b074
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 0x40b073
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40b073
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.004659a6
cmp eax, edi
jb 0x40b031
jmp 0x40b07a
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b081
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 0x40b09f
xor al, al
jmp 0x40b1c2
push eax
call fcn.0040f119
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.00451730
inc eax
push eax
call fcn.0044f496
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x40b0e3
cmp al, 0x5e
je 0x40b0df
cmp al, 0x21
je 0x40b0df
cmp al, 0x23
jne 0x40b107
cmp al, 0x2b
jne 0x40b0e8
mov eax, dword [ebp + 0xc]
jmp 0x40b0f8
cmp al, 0x5e
jne 0x40b0f1
mov byte [edi], 1
jmp 0x40b104
cmp al, 0x21
jne 0x40b0fd
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40b104
cmp al, 0x23
jne 0x40b104
mov byte [esi], 1
inc ebx
jmp 0x40b0c9
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x40b172
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.0040afa9
test eax, eax
je 0x40b12e
mov byte [ebp - 1], 0
jmp 0x40b1a4
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x4743a0]
call fcn.0044f2eb
test eax, eax
pop ecx
pop ecx
je 0x40b150
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x40b12e
cmp esi, 0x62
jne 0x40b15b
movzx eax, byte [ebx]
push eax
jmp 0x40b175
cmp byte [esi + 0x474528], 0
jne 0x40b128
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40b1a4
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 0x40b18c
mov byte [edi], 1
test ax, 0x400
je 0x40b198
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x40b1a4
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044f500
push dword [ebp - 8]
call fcn.0044f500
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b22c
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 0x40b249
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 0x40b261
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 0x40b345
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 0x40b31a
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 0x40b322
mov dword [esp + 0x18], 4
jmp 0x40b322
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 0x40b34d
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 0x40b426
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 0x40b443
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40b436
cmp edi, 0x10
jne 0x40b44f
xor eax, eax
jmp 0x40b4ef
cmp byte [esi + 0x18], 1
jne 0x40b4c6
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 0x40b4a2
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40b4a2
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 0x40b4ae
mov eax, 0x403696
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 0x40b4ed
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 0x40cf56
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40cfd6
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40cf7f
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.004525d3
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40cfd5
mov eax, dword [esi]
test al, 0x20
je 0x40cf9a
push dword [esi + 4]
push 2
push ebx
push 0x46bac0
call fcn.0045279d
mov dword [esi + 0xc], ebx
jmp 0x40cfd2
test al, 0x40
je 0x40cfb7
push dword [esi + 4]
push 2
push ebx
push 0x46bac4
call fcn.0045279d
mov dword [esi + 0xc], 2
jmp 0x40cfd2
test al, al
jns 0x40cfd5
push dword [esi + 4]
push 3
push ebx
push 0x46bac8
call fcn.0045279d
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40d00a
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.004524b4
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40d095
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.00452ba9
push edi
mov ebx, eax
call fcn.00452891
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40d072
cmp byte [ebp + 8], 0xff
jne 0x40d061
cmp byte [ebp + 9], 0xfe
jne 0x40d072
mov dword [esi + 0xc], 1
jmp 0x40d090
cmp byte [ebp + 8], 0xfe
jne 0x40d072
cmp byte [ebp + 9], 0xff
jne 0x40d072
mov dword [esi + 0xc], eax
jmp 0x40d090
cmp ebx, 3
jb 0x40d094
cmp byte [ebp + 8], 0xef
jne 0x40d094
cmp byte [ebp + 9], 0xbb
jne 0x40d094
cmp byte [ebp + 0xa], 0xbf
jne 0x40d094
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40d15c
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40d18c
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 0x40d1b2
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 0x40d1b4
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00452ba9
mov dword [edi], eax
push dword [esi + 4]
call fcn.00452bf3
add esp, 0x14
test eax, eax
je 0x40d1b2
and dword [edi], 0
jmp 0x40d188
mov al, 1
pop ebx
ret 4

Function at 0x40d4f4
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40d573
cmp edi, 4
jle 0x40d505
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.00452e10
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.0044f8c0
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.00452ba9
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40d573
push dword [esi + 4]
call fcn.00452bc4
test eax, eax
pop ecx
jne 0x40d56e
push dword [esi + 4]
call fcn.00452bf3
test eax, eax
pop ecx
jne 0x40d56e
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 0x40d68c
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 0x40d6ec
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