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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x408dc2
mov eax, dword [esi + 0x24c]
test eax, eax
je 0x408d3c
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x408d3c
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_PostMessageW]
and eax, 1
mov dword [ebp - 0x10], eax
mov ebx, 0x101
je 0x408c25
test byte [ebp + 8], 8
jne 0x408c25
test word [ebp + 8], 0x800
jne 0x408c25
movzx eax, byte [esi + 0x251]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x408c3c
test eax, eax
je 0x408c44
movzx eax, byte [esi + 0x251]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x24c]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x408c6a
movzx eax, byte [esi + 0x250]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x24c]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x408c94
movzx eax, byte [esi + 0x253]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x258]
push ebx
push dword [esi + 0x24c]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x408cba
movzx eax, byte [esi + 0x254]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x24c]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x408ce0
movzx eax, byte [esi + 0x255]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x24c]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x408cef
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x408d09
mov eax, dword [esi + 0x258]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x408d17
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x408d22
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x408d2d
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408dba
test byte [ebp + 8], 1
push 2
pop ebx
je 0x408d56
movzx eax, byte [esi + 0x251]
push eax
push 0x12
mov eax, esi
call fcn.004082ba
test byte [ebp + 8], 8
je 0x408d6d
movzx eax, byte [esi + 0x250]
push eax
push 0x11
mov eax, esi
call fcn.004082ba
test byte [ebp + 8], bl
je 0x408d89
movzx eax, byte [esi + 0x253]
push eax
movzx eax, byte [esi + 0x258]
push eax
mov eax, esi
call fcn.004082ba
test byte [ebp + 8], 4
je 0x408da3
movzx eax, byte [esi + 0x254]
push eax
push 0xa1
mov eax, esi
call fcn.004082ba
test byte [ebp + 8], 0x10
je 0x408dba
movzx eax, byte [esi + 0x255]
push eax
push 0x5b
mov eax, esi
call fcn.004082ba
mov edi, dword [esi]
push esi
call fcn.004094a1
pop edi
pop ebx
leave
ret 4
Function at 0x408ded
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [edi + 0x24c], 0
mov esi, eax
je 0x408ec3
cmp ebx, 0x14
je 0x408ec3
cmp ebx, 0x90
je 0x408ec3
cmp ebx, 0x91
je 0x408ec3
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + ebx - 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 0x408e79
cmp ebx, 0x2d
je 0x408e73
mov eax, ebx
call fcn.00408871
jmp 0x408e75
mov al, dl
cmp al, dl
jne 0x408e7f
or esi, 0x1000000
mov ecx, dword [edi + 0x248]
test dl, cl
mov eax, 0x100
jne 0x408e97
test eax, ecx
jne 0x408e97
cmp ebx, 0x12
jne 0x408eb2
test cl, 8
jne 0x408eb2
test cx, 0x800
jne 0x408eb2
or esi, 0x20000000
push esi
push ebx
push 0x104
jmp 0x408eb5
push esi
push ebx
push eax
push dword [edi + 0x24c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x408ef0
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x408ee5
cmp ebx, 0x2d
je 0x408ed9
mov eax, ebx
call fcn.00408871
jmp 0x408edb
mov al, dl
cmp al, dl
je 0x408ee5
push esi
push ebx
xor ebx, ebx
jmp 0x408ee9
push esi
push ebx
mov ebx, edx
mov eax, edi
call fcn.004082ba
push edi
mov edi, dword [edi + 4]
call fcn.004094a1
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [edi + 0x24c], 0
mov esi, eax
je 0x408fd9
cmp ebx, 0x14
je 0x408fd9
cmp ebx, 0x90
je 0x408fd9
cmp ebx, 0x91
je 0x408fd9
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 0x408f79
cmp ebx, 0x2d
je 0x408f73
mov eax, ebx
call fcn.00408871
jmp 0x408f75
mov al, 1
cmp al, 1
jne 0x408f7f
or esi, 0x1000000
mov eax, dword [edi + 0x248]
test al, 1
jne 0x408f94
test ax, 0x100
jne 0x408f94
cmp ebx, 0x12
jne 0x408fad
test al, 8
jne 0x408fad
test ax, 0x800
jne 0x408fad
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x408fb4
push esi
push ebx
push 0x101
push dword [edi + 0x24c]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp + ebx - 0x104]
xor byte [eax], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x409005
cmp byte [ebp + 8], 1
je 0x408ff9
cmp ebx, 0x2d
je 0x408fed
mov eax, ebx
call fcn.00408871
jmp 0x408fef
mov al, 1
cmp al, 1
je 0x408ff9
push esi
push ebx
push 2
jmp 0x408ffd
push esi
push ebx
push 3
pop ebx
mov eax, edi
call fcn.004082ba
push edi
mov edi, dword [edi]
call fcn.004094a1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4094a1
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 0x409535
jne 0x4094b9
push 0
jmp 0x40952f
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x21d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40952e
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40952e
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 [0x471200]
call fcn.00465706
cmp eax, edi
jb 0x4094ec
jmp 0x409535
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40953c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp word [eax], bx
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x40955b
xor al, al
jmp 0x409678
push eax
or eax, 0xffffffff
call fcn.0040df1c
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [edi], bl
mov byte [esi], bl
mov byte [ecx], bl
call fcn.00450420
inc eax
push eax
call fcn.0044e2dc
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x4095a2
cmp al, 0x5e
je 0x40959e
cmp al, 0x21
je 0x40959e
cmp al, 0x23
jne 0x4095c6
cmp al, 0x2b
jne 0x4095a7
mov eax, dword [ebp + 0xc]
jmp 0x4095b7
cmp al, 0x5e
jne 0x4095b0
mov byte [esi], 1
jmp 0x4095c3
cmp al, 0x21
jne 0x4095bc
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x4095c3
cmp al, 0x23
jne 0x4095c3
mov byte [edi], 1
inc ebx
jmp 0x409588
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x409628
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00409464
test eax, eax
jne 0x409614
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x477390]
call fcn.00463415
test eax, eax
pop ecx
pop ecx
je 0x409606
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x4095e7
cmp esi, 0x62
je 0x409614
cmp byte [esi + 0x477518], 0
je 0x40961a
mov byte [ebp - 1], 0
jmp 0x40965a
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40965a
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 0x409642
mov byte [esi], 1
test ax, 0x400
je 0x40964e
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x40965a
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044e346
push dword [ebp - 8]
call fcn.0044e346
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40977b
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x409797
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4097af
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x409881
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x24], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x409867
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
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]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x409955
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 0x409972
inc edi
add eax, 8
cmp edi, 0x10
jl 0x409965
cmp edi, 0x10
jne 0x40997e
xor eax, eax
jmp 0x409a1e
cmp byte [esi + 0x18], 1
jne 0x4099f5
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 0x4099d1
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x4099d1
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 0x4099dd
mov eax, 0x428347
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 0x409a1c
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
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 0x40b49a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40b51a
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40b4c3
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.004516e8
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40b519
mov eax, dword [esi]
test al, 0x20
je 0x40b4de
push dword [esi + 4]
push 2
push ebx
push 0x46bc1c
call fcn.004518b2
mov dword [esi + 0xc], ebx
jmp 0x40b516
test al, 0x40
je 0x40b4fb
push dword [esi + 4]
push 2
push ebx
push 0x46bc20
call fcn.004518b2
mov dword [esi + 0xc], 2
jmp 0x40b516
test al, al
jns 0x40b519
push dword [esi + 4]
push 3
push ebx
push str.rb
call fcn.004518b2
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40b54e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46bc28
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.004515c9
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40b5d9
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.00451cbe
push edi
mov ebx, eax
call fcn.004519a6
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40b5b6
cmp byte [ebp + 8], 0xff
jne 0x40b5a5
cmp byte [ebp + 9], 0xfe
jne 0x40b5b6
mov dword [esi + 0xc], 1
jmp 0x40b5d4
cmp byte [ebp + 8], 0xfe
jne 0x40b5b6
cmp byte [ebp + 9], 0xff
jne 0x40b5b6
mov dword [esi + 0xc], eax
jmp 0x40b5d4
cmp ebx, 3
jb 0x40b5d8
cmp byte [ebp + 8], 0xef
jne 0x40b5d8
cmp byte [ebp + 9], 0xbb
jne 0x40b5d8
cmp byte [ebp + 0xa], 0xbf
jne 0x40b5d8
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40b699
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b6c9
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 0x40b6ef
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 0x40b6f1
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00451cbe
mov dword [edi], eax
push dword [esi + 4]
call fcn.004514d4
add esp, 0x14
test eax, eax
je 0x40b6ef
and dword [edi], 0
jmp 0x40b6c5
mov al, 1
pop ebx
ret 4

Function at 0x40ba0a
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40ba89
cmp edi, 4
jle 0x40ba1b
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.00451140
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.00450640
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.00451cbe
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40ba89
push dword [esi + 4]
call fcn.004514a5
test eax, eax
pop ecx
jne 0x40ba84
push dword [esi + 4]
call fcn.004514d4
test eax, eax
pop ecx
jne 0x40ba84
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 0x40bba2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbef
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x40bbe6
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40bbf2
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_PostMessageW]
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_SendMessageTimeoutW]
test eax, eax
jne 0x40bc52
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
Function at 0x40c05b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x4785c2], bl
je 0x40c0a1
mov byte [0x4785c3], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40c0e2
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.0045204e
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, ebx
mov edi, eax
je 0x40c0cd
push 0xffffffffffffffff
push esi
mov byte [0x4785c3], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4785c2], 1
jne 0x40c0db
or eax, 0xffffffff
jmp 0x40c0dd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c241
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c265
test al, 0x10
je 0x40c265
cmp byte [0x48a7ad], bl
je 0x40c265
mov al, 1
jmp 0x40c2b7
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c28a
xor al, al
jmp 0x40c2b6
cmp dword [ebp + 0x10], ebx
jne 0x40c295
push dword [ebp + 0xc]
push ebx
jmp 0x40c2a5
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40c2a2
push ebx
push dword [ebp + 0xc]
jmp 0x40c2a6
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x40c2ba
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40c2da
xor al, al
jmp 0x40c3ef
push ebx
push edi
push esi
call fcn.0044e2dc
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0044e874
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e2dc
mov esi, 0x46b370
mov edi, eax
push esi
push edi
call fcn.0044e262
push esi
push ebx
call fcn.0044e81b
add esp, 0x18
test eax, eax
je 0x40c3b5
push str.StringFileInfo_
push edi
call fcn.0044e238
push esi
push ebx
call fcn.0044eaec
add esp, 0x10
test eax, eax
jne 0x40c3ac
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c38c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
push 4
lea ebx, [edi + 0x20]
pop edx
mov dword [ebp - 0x10], eax
call fcn.0040db63
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040db63
mov ebx, dword [ebp + 0x10]
jmp 0x40c397
push str.04090000
push edi
call fcn.0044e238
pop ecx
pop ecx
push esi
push edi
call fcn.0044e238
push ebx
push edi
call fcn.0044e238
add esp, 0x10
jmp 0x40c3b5
push ebx
push edi
call fcn.0044e238
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044e1a7
test eax, eax
pop ecx
pop ecx
jne 0x40c3f2
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00450d4d
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044e346
push edi
call fcn.0044e346
add esp, 0x14
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c468
push esi
push ebx
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
jne 0x40c43f
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.0044e88a
add esp, 0x18
jmp 0x40c452
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00450d4d
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044e346
push edi
call fcn.0044e346
pop ecx
pop ecx
mov al, bl
jmp 0x40c3ed
xor bl, bl
jmp 0x40c454

Function at 0x40c481
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c4bb
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40c4b1
or eax, eax
jmp 0x40c4bb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40c656
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xca8
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040c4bf
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c69b
test al, 0x10
je 0x40c69b
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044e238
pop ecx
pop ecx
lea eax, [esp + 0xaa0]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x68c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00450ca8
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40c76c
cmp bl, 1
jne 0x40c76c
test byte [esp + 0x220], 0x10
jne 0x40c744
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044e262
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044e238
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044e238
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40c75b
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c6e8
xor bl, bl
jmp 0x40c6e8
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40c75d