joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454de8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x454dff
add esp, 0xfffffff0
call fcn.00403b7c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a288
mov eax, dword [0x45b924]
cmp word [eax + 2], 0
jne 0x454e27
mov eax, dword [0x45b924]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456898
mov eax, dword [0x45b9cc]
cmp word [eax + 2], 0
jne 0x454e41
mov eax, dword [0x45b9cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456aa4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412084]
call fcn.00403828
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412084]
call fcn.00403828
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412084]
call fcn.00403828
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41ebd8]
call fcn.00426204
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x454ff8
mov eax, dword [0x45b854]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004265d8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457164
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45b854]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ca90
test eax, eax
je 0x454f48
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c9c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cac4
test eax, eax
je 0x454f5c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048f4
mov byte [ebx + 0xd4], 0
push ebx
push 0x4563f8
call fcn.0041b404
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45b750]
cmp byte [eax], 0
jne 0x454fad
mov eax, ebx
call fcn.0045513c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00457340
mov eax, ebx
call fcn.00457ea0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454fed
call fcn.00403bd4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4553bc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45f5a8]
cmp dword [eax + 0x30], 0
je 0x455466
cmp dword [ebx + 0x94], 0
jne 0x455460
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45534c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455460
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455426
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455460
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414430
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455435
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456180
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4561b5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404774
jmp 0x4561c2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457524
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457592
mov eax, esi
call fcn.00441db4
test al, al
je 0x457592
mov eax, dword [ebx + 0x84]
call fcn.00441a40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457592
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x457586
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441a40
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00439e6c
jmp 0x457592
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00457360
pop esi
pop ebx
ret
Function at 0x401dd6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4144a0
call fcn.00401fdc
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401e16
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e16
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401e2e
cmp eax, 0x20b
je 0x401e1b
mov dword [ebp - 0x1c], ebx
jmp 0x401e42
cmp dword [ecx + 0x84], 0xe
jbe 0x401e16
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x401e3c
cmp dword [ecx + 0x74], 0xe
jbe 0x401e16
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x415040], 0xffffffff
or dword [0x415044], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x415038]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x415034]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41503c], eax
call fcn.00402078
call fcn.00402118
cmp dword [0x415028], ebx
jne 0x401ea2
push fcn.00402118
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00402106
push 0x41500c
push 0x415008
call sub.MSVCR71.dll__initterm
push 0x4020bc
call fcn.00402066
mov eax, dword [0x415030]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41502c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x401ef6
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x415004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401f74
cmp al, bl
je 0x401f20
cmp dword [ebp - 0x20], ebx
jne 0x401f74
mov al, byte [esi]
cmp al, bl
je 0x401f30
cmp al, 0x20
ja 0x401f30
inc esi
mov dword [ebp - 0x24], esi
jmp 0x401f20
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x401f4c
movzx eax, word [ebp - 0x54]
jmp 0x401f4f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004016f9
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x401f6c
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x401fc9
cmp al, 0x22
jne 0x401f83
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x401f96
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x401f0e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00402017
ret
Function at 0x40f27b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1000f810
push 0x10004a00
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10011040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x88], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
test eax, eax
mov esi, 0x10000
je 0x40f2ce
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov ebx, dword [0x1000c010]
push 0x1c
lea edx, [ebp - 0x84]
push edx
push esi
push edi
call dword [0x1000c00c]
test eax, eax
je 0x40f310
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x84]
cmp eax, esi
jae 0x40f330
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00411cea
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x74], 0x1000
jne 0x40f40b
mov eax, dword [ebp - 0x70]
cmp al, 1
je 0x40f40b
test eax, 0x100
jne 0x40f40b
mov dword [ebp - 4], 0
push 0
push 0x40
lea edx, [ebp - 0x64]
push edx
push esi
push edi
call ebx
test eax, eax
jne 0x40f37f
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x78]
add esi, dword [ebp - 0x84]
jmp 0x40f2ee
mov eax, 0x5a4d
cmp word [ebp - 0x64], ax
jne 0x40f36a
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x78]
ja 0x40f36a
cmp eax, 0x40
jb 0x40f36a
push 0
push 0xf8
mov ecx, dword [ebp - 0x68]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x40f3c1
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x78]
add esi, dword [ebp - 0x84]
jmp 0x40f2ee
mov edx, dword [ebp - 0x68]
cmp dword [edx], 0x4550
je 0x40f3e1
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x78]
add esi, dword [ebp - 0x84]
jmp 0x40f2ee
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40f312
mov esi, dword [ebp - 0x78]
add esi, dword [ebp - 0x84]
jmp 0x40f2ee
Function at 0x41014b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1000f7f0
push 0x10004a00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10011040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [0x1000c038]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x4101ed
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4101ed
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x4101ed
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x4101ed
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41045b
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x410477
mov ebx, 0x10000
cmp esi, 0x80000000
jae 0x41048a
lea edi, [esi + 0x7ff80000]
mov dword [ebp - 4], edi
jmp 0x410494
mov dword [ebp - 4], 0xfff80000
mov edi, dword [ebp - 4]
mov eax, dword [0x10012b4c]
mov edx, dword [0x10012b48]
test eax, eax
jne 0x4104ae
test edx, edx
je 0x4104c1
mov eax, edx
mov dword [0x10012b4c], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4104c1
cmp ecx, ebx
jb 0x4104c1
cmp ecx, edi
jbe 0x4105c5
mov eax, edx
mov dword [0x10012b4c], eax
test edx, edx
je 0x4104ef
test eax, eax
je 0x4104e3
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4104e3
cmp ecx, ebx
jb 0x4104e3
cmp ecx, edi
jbe 0x4105c0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4104d0
mov dword [0x10012b4c], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x41052f
push esi
lea eax, [esi - 0x40000000]
call fcn.004102eb
add esp, 4
test eax, eax
jne 0x410584
push ebx
lea eax, [esi - 0x40000000]
call fcn.004103ab
add esp, 4
test eax, eax
jne 0x410584
mov edi, dword [ebp - 4]
cmp esi, 0x40000000
jae 0x41055d
push esi
lea eax, [esi + 0x40000000]
call fcn.004103ab
add esp, 4
test eax, eax
jne 0x410584
mov ecx, dword [ebp - 4]
push ecx
lea eax, [esi + 0x40000000]
call fcn.004102eb
add esp, 4
test eax, eax
jne 0x410584
mov edi, dword [ebp - 4]
push ebx
mov eax, esi
call fcn.004103ab
add esp, 4
test eax, eax
jne 0x410587
push edi
mov eax, esi
call fcn.004102eb
add esp, 4
test eax, eax
jne 0x410587
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x10012b48]
mov dword [eax + 4], ecx
mov dword [0x10012b4c], eax
mov dword [0x10012b48], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
dec esi
jne 0x4105b0
mov dword [eax + 8], edx
jmp 0x4105c5
mov dword [0x10012b4c], eax
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x41057b
cmp esi, edi
ja 0x41057b
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.0041725b
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41062b
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x10012b48]
push ebx
mov ebx, 0x10012b48
test eax, eax
je 0x410696
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x41068b
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x410660
cmp ecx, eax
jb 0x41068b
cmp ecx, edi
jae 0x41068b
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x410652
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [0x1000c048]
mov dword [0x10012b4c], 0
jmp 0x41068e
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x41063c
pop edi
pop esi
pop ebx
ret
Function at 0x40909a
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4090ef
push dword [esp + 0x10]
push 0x409019
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x4d1ae0]
test esi, esi
je 0x409148
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4090e7
cmp byte [esi + 0x10], 0
je 0x4090e7
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4090c3
jmp 0x409148
mov esi, dword [0x4d1ae0]
test esi, esi
je 0x409148
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x409141
cmp byte [esi + 0x11], 0
je 0x40911d
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x409134
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x4d1ae0
call fcn.0041a2ea
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4090fc
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40a425
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x40a374
push 0x10
push 0x2c
call fcn.00419c9c
push 0
push 0
push 8
mov dword [0x4d1af4], eax
call fcn.00419b91
cmp word [0x4d1aec], 0
mov dword [0x4d25c4], eax
jne 0x40a50a
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x40a47d
mov word [0x4d1aec], di
jmp 0x40a485
xor eax, eax
mov word [0x4d1aec], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4d1b08], eax
test eax, eax
je 0x40a509
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x4d1b08]
mov dword [0x4d1af8], eax
call esi
push str.getnameinfo
push dword [0x4d1b08]
mov dword [0x4d1afc], eax
call esi
push str.WSAStringToAddressA
push dword [0x4d1b08]
mov dword [0x4d1b00], eax
call esi
cmp dword [0x4d1af8], 0
mov dword [0x4d1b04], eax
pop esi
je 0x40a509
cmp dword [0x4d1afc], 0
je 0x40a509
cmp dword [0x4d1b00], 0
je 0x40a509
test eax, eax
je 0x40a509
mov dword [0x4d1af0], edi
pop edi
add esp, 0x190
ret
Function at 0x40df53
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e0c9
mov eax, dword [esp + 0x24]
dec eax
je 0x40e0ac
dec eax
jne 0x40e0c9
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0040df0c
pop ecx
test eax, eax
je 0x40e00a
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x40dfcd
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40e0a8
dec ebx
je 0x40e0a4
dec ebx
je 0x40e083
dec ebx
je 0x40e03d
sub ebx, 4
jne 0x40e0c9
test edi, edi
jne 0x40e0c9
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40e0c9
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40dfcd
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x40dfc8
sub edi, 0
je 0x40e075
dec edi
je 0x40e067
dec edi
je 0x40e059
dec edi
jne 0x40e0c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40e0c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40e0c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40e0c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40e0c9
sub edi, 0
je 0x40e0a0
dec edi
je 0x40e09c
dec edi
jne 0x40e0c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40e0c9
push 0x3c
jmp 0x40e0c8
push 0x32
jmp 0x40e0c8
push 0x14
jmp 0x40e0c8
push 5
jmp 0x40e0c8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40e0c6
cmp eax, 0xa
je 0x40e0c2
cmp eax, 0x5a
jne 0x40e0c9
push 0x28
jmp 0x40e0c8
push 0x1e
jmp 0x40e0c8
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x40e6ac
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x4d25fc]
call fcn.00419bf3
mov esi, eax
test esi, esi
je 0x40e786
cmp dword [ebp + 0xc], 0
je 0x40e6f8
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x40e6e9
cmp dword [esi + 0x1c], 0
jne 0x40e6e9
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e786
test byte [ebp + 0x10], 3
je 0x40e713
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0040f175
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x40e738
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x40e74c
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x40e769
test ebx, ebx
je 0x40e75d
push 8
jmp 0x40e76f
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x40e77c
test ebx, ebx
je 0x40e772
push 3
pop ecx
jmp 0x40e77c
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40f308
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x40f3a0
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x40f39d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x40f39d
lea eax, [esi - 1]
push eax
push dword [0x4d25fc]
call fcn.00419bf3
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x40f39f
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x40f394
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x40f487
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x40f37a
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x40f446
push eax
call esi
test al, al
jns 0x40f446
push 0x11
call esi
test al, al
js 0x40f446
push 0x10
call esi
test al, al
js 0x40f446
push 0x12
call esi
test al, al
js 0x40f446
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x40f446
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x40f41a
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40f431
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x40f491
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x40f491
test ebp, ebp
je 0x40f46a
push 0x11
call esi
test al, al
js 0x40f462
push 0x10
call esi
test al, al
js 0x40f462
push 0x12
call esi
test al, al
jns 0x40f46a
push 1
push ebp
call fcn.0040f49d
test ebx, ebx
je 0x40f47e
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x40f491
test edi, edi
je 0x40f491
mov eax, dword [edi + 8]
jmp 0x40f493
and dword [esp + 0x14], 0
jmp 0x40f39f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x40f7fc
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40f825
test byte [esp + 8], 2
je 0x40f819
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40f827
xor eax, eax
ret 8