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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x408e0a
mov eax, dword [esi + 0x240]
test eax, eax
je 0x408d89
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x408d89
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 0x408c72
test byte [ebp + 8], 8
jne 0x408c72
test word [ebp + 8], 0x800
jne 0x408c72
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x408c89
test eax, eax
je 0x408c91
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x408cb7
movzx eax, byte [esi + 0x244]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x408ce1
movzx eax, byte [esi + 0x247]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x24c]
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x408d07
movzx eax, byte [esi + 0x248]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x408d2d
movzx eax, byte [esi + 0x249]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x240]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x408d3c
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x408d56
mov eax, dword [esi + 0x24c]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x408d64
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x408d6f
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x408d7a
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408e02
test byte [ebp + 8], 1
push 2
pop ebx
je 0x408da2
movzx eax, byte [esi + 0x245]
push ebx
push eax
push 0x12
call fcn.00408381
test byte [ebp + 8], 8
je 0x408db8
movzx eax, byte [esi + 0x244]
push ebx
push eax
push 0x11
call fcn.00408381
test byte [ebp + 8], bl
je 0x408dd3
movzx eax, byte [esi + 0x247]
push ebx
push eax
movzx eax, byte [esi + 0x24c]
push eax
call fcn.00408381
test byte [ebp + 8], 4
je 0x408dec
movzx eax, byte [esi + 0x248]
push ebx
push eax
push 0xa1
call fcn.00408381
test byte [ebp + 8], 0x10
je 0x408e02
movzx eax, byte [esi + 0x249]
push ebx
push eax
push 0x5b
call fcn.00408381
mov edi, dword [esi]
push esi
call fcn.004094db
pop edi
pop ebx
leave
ret 4
Function at 0x408e35
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_MapVirtualKeyW]
cmp dword [ebx + 0x240], 0
mov esi, eax
je 0x408f08
cmp edi, 0x14
je 0x408f08
cmp edi, 0x90
je 0x408f08
cmp edi, 0x91
je 0x408f08
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 0x408ebe
cmp edi, 0x2d
je 0x408eb8
mov eax, edi
call fcn.004088d2
jmp 0x408eba
mov al, dl
cmp al, dl
jne 0x408ec4
or esi, 0x1000000
mov ecx, dword [ebx + 0x23c]
test dl, cl
mov eax, pe_nt_image_headers32
jne 0x408edc
test eax, ecx
jne 0x408edc
cmp edi, 0x12
jne 0x408ef7
test cl, 8
jne 0x408ef7
test cx, 0x800
jne 0x408ef7
or esi, 0x20000000
push esi
push edi
push 0x104
jmp 0x408efa
push esi
push edi
push eax
push dword [ebx + 0x240]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x408f30
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x408f28
cmp edi, 0x2d
je 0x408f1e
mov eax, edi
call fcn.004088d2
jmp 0x408f20
mov al, dl
cmp al, dl
je 0x408f28
push 0
jmp 0x408f29
push edx
push esi
push edi
call fcn.00408381
mov edi, dword [ebx + 4]
push ebx
call fcn.004094db
pop edi
pop esi
leave
ret 4

Function at 0x408f3f
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_MapVirtualKeyW]
cmp dword [edi + 0x240], 0
mov esi, eax
je 0x409015
cmp ebx, 0x14
je 0x409015
cmp ebx, 0x90
je 0x409015
cmp ebx, 0x91
je 0x409015
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 0x408fb5
cmp ebx, 0x2d
je 0x408faf
mov eax, ebx
call fcn.004088d2
jmp 0x408fb1
mov al, 1
cmp al, 1
jne 0x408fbb
or esi, 0x1000000
mov eax, dword [edi + 0x23c]
test al, 1
jne 0x408fd0
test ax, 0x100
jne 0x408fd0
cmp ebx, 0x12
jne 0x408fe9
test al, 8
jne 0x408fe9
test ax, 0x800
jne 0x408fe9
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x408ff0
push esi
push ebx
push 0x101
push dword [edi + 0x240]
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 0x40903c
cmp byte [ebp + 8], 1
je 0x409033
cmp ebx, 0x2d
je 0x409029
mov eax, ebx
call fcn.004088d2
jmp 0x40902b
mov al, 1
cmp al, 1
je 0x409033
push 2
jmp 0x409035
push 3
push esi
push ebx
call fcn.00408381
push edi
mov edi, dword [edi]
call fcn.004094db
pop edi
pop esi
leave
ret 4
Function at 0x4094db
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 0x40956f
jne 0x4094f3
push 0
jmp 0x409569
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 0x409568
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x409568
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 [0x4723a0]
call fcn.00465e16
cmp eax, edi
jb 0x409526
jmp 0x40956f
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x409576
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 0x409595
xor al, al
jmp 0x4096b2
push eax
or eax, 0xffffffff
call fcn.0040df43
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.00450bb0
inc eax
push eax
call fcn.0044e9ed
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x4095dc
cmp al, 0x5e
je 0x4095d8
cmp al, 0x21
je 0x4095d8
cmp al, 0x23
jne 0x409600
cmp al, 0x2b
jne 0x4095e1
mov eax, dword [ebp + 0xc]
jmp 0x4095f1
cmp al, 0x5e
jne 0x4095ea
mov byte [esi], 1
jmp 0x4095fd
cmp al, 0x21
jne 0x4095f6
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x4095fd
cmp al, 0x23
jne 0x4095fd
mov byte [edi], 1
inc ebx
jmp 0x4095c2
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x409662
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.0040949e
test eax, eax
jne 0x40964e
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x478398]
call fcn.00463b25
test eax, eax
pop ecx
pop ecx
je 0x409640
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x409621
cmp esi, 0x62
je 0x40964e
cmp byte [esi + 0x478520], 0
je 0x409654
mov byte [ebp - 1], 0
jmp 0x409694
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x409694
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 0x40967c
mov byte [esi], 1
test ax, 0x400
je 0x409688
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x409694
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044e722
push dword [ebp - 8]
call fcn.0044e722
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x409786
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 0x4097a3
push ebp
push 0x46cb38
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4097bb
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 0x40989f
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 0x409874
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]
test eax, eax
je 0x40987c
mov dword [esp + 0x18], 4
jmp 0x40987c
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 0x4098a7
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 0x409980
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 0x40999d
inc edi
add eax, 8
cmp edi, 0x10
jl 0x409990
cmp edi, 0x10
jne 0x4099a9
xor eax, eax
jmp 0x409a49
cmp byte [esi + 0x18], 1
jne 0x409a20
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 0x4099fc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x4099fc
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 0x409a08
mov eax, 0x409b13
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 0x409a47
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 0x40b4a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40b528
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40b4d1
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.00451df8
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40b527
mov eax, dword [esi]
test al, 0x20
je 0x40b4ec
push dword [esi + 4]
push 2
push ebx
push 0x46cc1c
call fcn.00451fc2
mov dword [esi + 0xc], ebx
jmp 0x40b524
test al, 0x40
je 0x40b509
push dword [esi + 4]
push 2
push ebx
push 0x46cc20
call fcn.00451fc2
mov dword [esi + 0xc], 2
jmp 0x40b524
test al, al
jns 0x40b527
push dword [esi + 4]
push 3
push ebx
push str.rb
call fcn.00451fc2
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40b55c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46cc28
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.00451cd9
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40b5e7
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.004523ce
push edi
mov ebx, eax
call fcn.004520b6
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40b5c4
cmp byte [ebp + 8], 0xff
jne 0x40b5b3
cmp byte [ebp + 9], 0xfe
jne 0x40b5c4
mov dword [esi + 0xc], 1
jmp 0x40b5e2
cmp byte [ebp + 8], 0xfe
jne 0x40b5c4
cmp byte [ebp + 9], 0xff
jne 0x40b5c4
mov dword [esi + 0xc], eax
jmp 0x40b5e2
cmp ebx, 3
jb 0x40b5e6
cmp byte [ebp + 8], 0xef
jne 0x40b5e6
cmp byte [ebp + 9], 0xbb
jne 0x40b5e6
cmp byte [ebp + 0xa], 0xbf
jne 0x40b5e6
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40b6a7
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b6d7
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 0x40b6fd
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 0x40b6ff
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.004523ce
mov dword [edi], eax
push dword [esi + 4]
call fcn.00451be4
add esp, 0x14
test eax, eax
je 0x40b6fd
and dword [edi], 0
jmp 0x40b6d3
mov al, 1
pop ebx
ret 4

Function at 0x40ba18
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40ba97
cmp edi, 4
jle 0x40ba29
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.00451850
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.00450dd0
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.004523ce
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40ba97
push dword [esi + 4]
call fcn.00451bb5
test eax, eax
pop ecx
jne 0x40ba92
push dword [esi + 4]
call fcn.00451be4
test eax, eax
pop ecx
jne 0x40ba92
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 0x40bbb0
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 0x40bbfd
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 0x40bbf4
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40bc00
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 0x40bc60
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 0x40c077
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 [0x4795c3], bl
je 0x40c0bd
mov byte [0x489618], 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 0x40c0fe
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.004526cd
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 0x40c0e9
push 0xffffffffffffffff
push esi
mov byte [0x489618], bl
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x4795c3], 1
jne 0x40c0f7
or eax, 0xffffffff
jmp 0x40c0f9
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c25d
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 0x40c281
test al, 0x10
je 0x40c281
cmp byte [0x48b7b5], bl
je 0x40c281
mov al, 1
jmp 0x40c2d3
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 0x40c2a6
xor al, al
jmp 0x40c2d2
cmp dword [ebp + 0x10], ebx
jne 0x40c2b1
push dword [ebp + 0xc]
push ebx
jmp 0x40c2c1
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40c2be
push ebx
push dword [ebp + 0xc]
jmp 0x40c2c2
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 0x40c2d6
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 0x40c2f6
xor al, al
jmp 0x40c40b
push ebx
push edi
push esi
call fcn.0044e9ed
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.0044f00e
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e9ed
mov esi, 0x46c388
mov edi, eax
push esi
push edi
call fcn.0044e973
push esi
push ebx
call fcn.0044ef27
add esp, 0x18
test eax, eax
je 0x40c3d1
push str.StringFileInfo_
push edi
call fcn.0044e949
push esi
push ebx
call fcn.0044f286
add esp, 0x10
test eax, eax
jne 0x40c3c8
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 0x40c3a8
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.0040db8a
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040db8a
mov ebx, dword [ebp + 0x10]
jmp 0x40c3b3
push str.04090000
push edi
call fcn.0044e949
pop ecx
pop ecx
push esi
push edi
call fcn.0044e949
push ebx
push edi
call fcn.0044e949
add esp, 0x10
jmp 0x40c3d1
push ebx
push edi
call fcn.0044e949
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044e8b8
test eax, eax
pop ecx
pop ecx
jne 0x40c40e
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.0045158d
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044e722
push edi
call fcn.0044e722
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 0x40c484
push esi
push ebx
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
jne 0x40c45b
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.0044f059
add esp, 0x18
jmp 0x40c46e
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0045158d
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044e722
push edi
call fcn.0044e722
pop ecx
pop ecx
mov al, bl
jmp 0x40c409
xor bl, bl
jmp 0x40c470

Function at 0x40c49d
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 0x40c4d7
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40c4cd
or eax, eax
jmp 0x40c4d7
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret