joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de72
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp ebx, edi
jne 0x40de89
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x40df4c
push ebp
push esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp byte [esp + 0x1c], 0
mov ebp, eax
je 0x40df18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebp
mov dword [0x471b9c], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x40defb
lea eax, [esp + 0x10]
push eax
push ebx
call edi
mov ecx, dword [0x471b9c]
cmp ecx, eax
mov dword [0x471b98], eax
je 0x40def1
push 1
push eax
push ecx
call esi
mov dword [esp + 0xc], eax
mov eax, dword [0x471b98]
push 1
push eax
push ebp
call esi
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
jne 0x40df4a
cmp dword [esp + 0xc], eax
jne 0x40df4a
cmp dword [esp + 0x10], eax
jne 0x40df4a
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x10], eax
jmp 0x40df4a
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x40df40
push edi
push dword [0x471b98]
push ebp
call esi
mov ecx, dword [0x471b9c]
mov eax, dword [0x471b98]
cmp ecx, eax
je 0x40df40
push edi
push eax
push ecx
call esi
push edi
push dword [0x471b9c]
push ebp
call esi
pop esi
pop ebp
pop edi
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0x10], al
mov byte [ebp - 1], al
je 0x40dfb4
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push edi
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0xc]
call esi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
call fcn.004126b1
push 0
push 2
push 0
push dword [ebp + 0xc]
call esi
push eax
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call fcn.004126b1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40dfb8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx ebx, ax
cmp ebx, 0xffffffff
jne 0x40dfd9
mov al, byte [esp + 0xc]
call fcn.0040e03e
jmp 0x40e007
mov eax, ebx
call fcn.0040e0d8
call fcn.0040e35d
cmp dword [esp + 0x10], 0
je 0x40e002
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
mov eax, esi
call fcn.0040e60c
dec ebx
jne 0x40dff4
pop edi
call fcn.0040e4ae
pop esi
pop ebx
ret 8
Function at 0x40e0d8
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
test ah, 2
je 0x40e0e7
or dword [esi + 0xc], 4
test ah, 4
je 0x40e0f0
or dword [esi + 0xc], 1
test ah, 1
je 0x40e0f9
or dword [esi + 0xc], 2
mov eax, dword [esi + 0xc]
test al, 4
je 0x40e10a
test al, 0x40
je 0x40e10a
xor eax, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 1
je 0x40e11b
test al, 0x10
je 0x40e11b
xor eax, 1
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 2
je 0x40e12c
test al, 0x20
je 0x40e12c
xor eax, 2
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 8
je 0x40e13d
test al, al
jns 0x40e13d
xor eax, 8
mov dword [esi + 0xc], eax
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x40e183
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 0x40
jne 0x40e15b
mov byte [esp + 0x15], bl
test al, 0x10
jne 0x40e163
mov byte [esp + 0x16], bl
test al, 0x20
jne 0x40e16b
mov byte [esp + 0x14], bl
test al, al
js 0x40e173
mov byte [esp + 0x5f], bl
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40e234
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x40e1a6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40e1b9
test byte [esi + 0xc], 0x40
jne 0x40e1b9
push ebx
push 0x11
pop eax
mov ebx, esi
call fcn.0040e707
xor ebx, ebx
push 0x12
call ebp
test di, ax
jne 0x40e1cf
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40e1e2
test byte [esi + 0xc], 0x10
jne 0x40e1e2
push ebx
push 0x12
pop eax
mov ebx, esi
call fcn.0040e707
xor ebx, ebx
push 0x10
call ebp
test di, ax
jne 0x40e1f8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40e20b
test byte [esi + 0xc], 0x20
jne 0x40e20b
push ebx
push 0x10
pop eax
mov ebx, esi
call fcn.0040e707
xor ebx, ebx
push 0x5b
call ebp
test di, ax
jne 0x40e221
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40e232
test byte [esi + 0xc], 0x80
jne 0x40e232
push ebx
push 0x5b
pop eax
mov ebx, esi
call fcn.0040e707
pop edi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x40e35d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [esi + 0xc]
test al, 0xf
je 0x40e4ac
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
push edi
jne 0x40e3cd
test al, 8
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x40e390
xor eax, eax
mov al, byte [esi + 0x20]
push ebx
push ebx
push eax
push 0x5b
call edi
test byte [esi + 0xc], 2
je 0x40e3a2
xor eax, eax
mov al, byte [esi + 0x1c]
push ebx
push ebx
push eax
push 0x10
call edi
test byte [esi + 0xc], 4
je 0x40e3b4
xor eax, eax
mov al, byte [esi + 0x14]
push ebx
push ebx
push eax
push 0x11
call edi
test byte [esi + 0xc], 1
je 0x40e4a2
xor eax, eax
mov al, byte [esi + 0x18]
push ebx
push ebx
push eax
push 0x12
jmp 0x40e4a0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 8
je 0x40e3e8
or byte [ebp - 0xa5], 0x80
test al, 2
je 0x40e3f3
or byte [ebp - 0xf0], 0x80
test al, 4
je 0x40e3fe
or byte [ebp - 0xef], 0x80
test al, 1
je 0x40e409
or byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test byte [esi + 0xc], 8
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, 0x100
je 0x40e439
mov eax, dword [esi + 0x20]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x40e451
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x40e469
mov eax, dword [esi + 0x14]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 1
je 0x40e48c
test al, 0x44
jne 0x40e48c
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x40e49d
test ecx, ecx
je 0x40e4a2
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
mov edi, dword [esi + 4]
call fcn.004126b1
pop edi
pop ebx
leave
ret
Function at 0x40e4ae
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [esi + 0xc]
test al, 0xf
je 0x40e60a
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
push edi
jne 0x40e524
test al, 1
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x40e4e2
xor eax, eax
mov al, byte [esi + 0x18]
push ebx
push 2
push eax
push 0x12
call edi
test byte [esi + 0xc], 4
je 0x40e4f5
xor eax, eax
mov al, byte [esi + 0x14]
push ebx
push 2
push eax
push 0x11
call edi
test byte [esi + 0xc], 2
je 0x40e508
xor eax, eax
mov al, byte [esi + 0x1c]
push ebx
push 2
push eax
push 0x10
call edi
test byte [esi + 0xc], 8
je 0x40e601
xor eax, eax
mov al, byte [esi + 0x20]
push ebx
push 2
push eax
push 0x5b
call edi
jmp 0x40e601
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, eax
and ecx, 1
mov ebx, 0x101
je 0x40e55f
test al, 0x44
jne 0x40e55f
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x40e572
test ecx, ecx
je 0x40e577
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x40e591
mov eax, dword [esi + 0x14]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x40e5ab
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 8
je 0x40e5c5
mov eax, dword [esi + 0x20]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
test al, 8
je 0x40e5d3
xor byte [ebp - 0xa5], 0x80
test al, 2
je 0x40e5de
xor byte [ebp - 0xf0], 0x80
test al, 4
je 0x40e5e9
xor byte [ebp - 0xef], 0x80
test al, 1
je 0x40e5f4
xor byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edi, dword [esi]
call fcn.004126b1
pop edi
pop ebx
leave
ret
Function at 0x40e62d
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [ebx + 0x10], ecx
mov esi, eax
je 0x40e6d9
cmp edi, 0x14
je 0x40e6d9
cmp edi, 0x90
je 0x40e6d9
cmp edi, 0x91
je 0x40e6d9
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + edi - 0x100], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
or esi, 1
cmp byte [ebp + 8], 1
je 0x40e6a2
mov eax, edi
call fcn.0040e23c
cmp al, 1
jne 0x40e6a8
or esi, 0x1000000
mov eax, dword [ebx + 0xc]
test al, 0x11
jne 0x40e6b4
cmp edi, 0x12
jne 0x40e6d0
test al, 0x44
jne 0x40e6d0
or esi, 0x20000000
push esi
push edi
push 0x104
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e6f9
push esi
push edi
push 0x100
jmp 0x40e6c5
cmp byte [ebp + 8], 1
je 0x40e6ee
mov eax, edi
call fcn.0040e23c
cmp al, 1
je 0x40e6ee
push ecx
push ecx
jmp 0x40e6f1
push ecx
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
mov edi, dword [ebx + 4]
call fcn.004126b1
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [ebx + 0x10], ecx
mov esi, eax
je 0x40e7b8
cmp edi, 0x14
je 0x40e7b8
cmp edi, 0x90
je 0x40e7b8
cmp edi, 0x91
je 0x40e7b8
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x40e76a
mov eax, edi
call fcn.0040e23c
cmp al, 1
jne 0x40e770
or esi, 0x1000000
mov eax, dword [ebx + 0xc]
test al, 0x11
jne 0x40e77c
cmp edi, 0x12
jne 0x40e78f
test al, 0x44
jne 0x40e78f
or esi, 0x20000000
push esi
push edi
push 0x105
jmp 0x40e796
push esi
push edi
push 0x101
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp + edi - 0x100]
xor byte [eax], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40e7d9
cmp byte [ebp + 8], 1
je 0x40e7ce
mov eax, edi
call fcn.0040e23c
cmp al, 1
je 0x40e7ce
push ecx
push 2
jmp 0x40e7d1
push ecx
push 3
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
mov edi, dword [ebx]
call fcn.004126b1
pop edi
pop esi
leave
ret 4
Function at 0x40ec2f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor eax, eax
xor ebx, ebx
cmp byte [esi], al
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], eax
jne 0x40ec4f
xor al, al
jmp 0x40ed55
mov ecx, dword [ebp + 0x18]
mov byte [ecx], al
mov ecx, dword [ebp + 0x14]
mov byte [ecx], al
mov ecx, dword [ebp + 0x10]
mov byte [edi], al
push esi
mov byte [ecx], al
call fcn.004466d0
inc eax
push eax
call fcn.00446648
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov al, byte [ebx + esi]
cmp al, 0x2b
je 0x40ec89
cmp al, 0x5e
je 0x40ec85
cmp al, 0x21
je 0x40ec85
cmp al, 0x23
jne 0x40ecad
cmp al, 0x2b
jne 0x40ec8e
mov eax, dword [ebp + 0x10]
jmp 0x40eca7
cmp al, 0x5e
jne 0x40ec97
mov byte [edi], 1
jmp 0x40ecaa
cmp al, 0x21
jne 0x40eca0
mov eax, dword [ebp + 0x14]
jmp 0x40eca7
cmp al, 0x23
jne 0x40ecaa
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
inc ebx
jmp 0x40ec72
mov al, byte [ebx + esi]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x10], al
mov dword [ebp + 0x18], ebx
jne 0x40ed0f
mov ebx, dword [ebp - 8]
lea edx, [ebp + 0x18]
add al, 2
call fcn.0040ebf2
test eax, eax
jne 0x40ecfb
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push dword [esi*4 + 0x462570]
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
je 0x40eced
inc esi
cmp esi, 0x5d
mov dword [ebp - 0xc], esi
jl 0x40eccc
cmp esi, 0x5d
je 0x40ecfb
cmp byte [esi + 0x4626e8], 0
je 0x40ed01
mov byte [ebp - 1], 0
jmp 0x40ed40
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40ed40
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 0xc]
movsx eax, ax
test ah, 2
mov dword [ecx], eax
je 0x40ed28
mov byte [edi], 1
test byte [ecx + 1], 4
je 0x40ed34
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test byte [ecx + 1], 1
je 0x40ed40
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
push dword [ebp - 8]
and dword [eax], 0xff
call fcn.0044624a
mov al, byte [ebp - 1]
pop ecx
pop esi
pop ebx
leave
ret 0x14
Function at 0x40edcd
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x40edef
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
mov edi, dword [esp + 0x1c]
cmp edi, esi
je 0x40eed5
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40ee0f
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x40eed5
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x20], 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 + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x40eebf
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 + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
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
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x40efc1
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40efda
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40efcd
cmp edi, 0x10
jne 0x40efe3
xor eax, eax
jmp 0x40f04d
cmp byte [esi + 0x18], 1
jne 0x40f024
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0xc]
push ebx
push 0x438
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 4
push 0x1000
push dword [ebp + 8]
mov dword [esi + edi*8 + 0x1c], eax
push ebx
push eax
mov eax, esi
lea edi, [esi + edi*8 + 0x20]
call fcn.0040f13e
call eax
jmp 0x40f04b
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 edi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [edi], eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x410b8f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov byte [esi], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410bcc
lea eax, [ebp + 0x14]
push eax
push esi
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x410bce
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 0x410c2e
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 0x4112c6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4112e6
xor al, al
jmp 0x411479
push ebx
push edi
push esi
call fcn.00446648
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoA
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.004466d0
add eax, 0x1a
push eax
call fcn.00446648
mov esi, 0x4598b8
mov edi, eax
push esi
push edi
call fcn.00446250
push esi
push ebx
call fcn.004464a0
add esp, 0x18
test eax, eax
je 0x4113b0
push str.StringFileInfo_
push edi
call fcn.00446260
push esi
push ebx
call fcn.00447a50
add esp, 0x10
test eax, eax
jne 0x4113a7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411387
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.004122f3
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.004122f3
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x411394
push str.04090000
push edi
call fcn.00446260
pop ecx
pop ecx
push esi
push edi
call fcn.00446260
push ebx
push edi
call fcn.00446260
add esp, 0x10
jmp 0x4113b0
push ebx
push edi
call fcn.00446260
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
jne 0x4113ec
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.004467e0
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044624a
push edi
call fcn.0044624a
add esp, 0x14
mov al, 1
jmp 0x411477
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411465
push esi
push ebx
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
jne 0x411440
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, ecx
mov edx, 0xffff
and esi, edx
push esi
shr ecx, 0x10
push ecx
mov ecx, eax
and ecx, edx
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.00447329
add esp, 0x18
jmp 0x411453
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.004467e0
add esp, 0xc
push dword [ebp - 4]
call fcn.0044624a
push edi
call fcn.0044624a
mov al, 1
jmp 0x411475
push dword [ebp - 4]
call fcn.0044624a
push edi
call fcn.0044624a
xor al, al
pop ecx
pop ecx
pop edi
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4114ce
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4114c1
or eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x140]
leave
ret
Function at 0x4114d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4114e6
test al, 0x10
je 0x4114e6
mov al, 1
ret
xor al, al
ret

Function at 0x411678
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
mov byte [ebp - 1], 0
call fcn.004114e9
lea eax, [ebp - 0x10c]
push eax
call fcn.004114d0
test al, al
pop ecx
pop ecx
je 0x4116b8
lea eax, [ebp - 0x10c]
push str..
push eax
call fcn.00446260
pop ecx
pop ecx
push ebx
push esi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00446e39
add esp, 0x14
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x41177b
cmp bl, 1
jne 0x41177b
test byte [ebp - 0x24c], 0x10
jne 0x411761
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 1], bl
call fcn.00446250
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00446260
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00446260
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp eax, 1
jne 0x411777
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x411702
xor bl, bl
jmp 0x411702
xor bl, bl
jmp 0x41177e
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
mov al, bl
pop ebx
leave
ret