joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423e60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4a55bf], 0
je 0x423e91
movzx eax, byte [0x4a55c0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0042a3f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x423ed0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 2
jne 0x423ef3
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jbe 0x423ee8
mov al, 1
jmp 0x423efc
jne 0x423ef3
cmp dword [ebp - 0x118], 1
jae 0x423ee4
mov al, byte [0x4a55c0]
test al, al
je 0x423f0d
xor ecx, ecx
movzx eax, al
cmp byte [ebp - 6], 1
cmove eax, ecx
mov byte [0x4a55c0], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x4a55bf], 1
movzx eax, al
call fcn.00428d9d
mov esp, ebp
pop ebp
ret

Function at 0x424360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4a55b9], 0
je 0x424391
movzx eax, byte [0x4a55ba]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0042a3f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4243d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 2
jne 0x4243f3
cmp dword [ebp - 0x11c], 6
jne 0x4243f3
cmp dword [ebp - 0x118], 0
sete al
mov byte [0x4a55ba], al
jmp 0x4243f8
mov al, byte [0x4a55ba]
test al, al
je 0x42440d
xor ecx, ecx
movzx eax, al
cmp byte [ebp - 6], 1
cmovne eax, ecx
mov byte [0x4a55ba], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x4a55b9], 1
movzx eax, al
call fcn.00428d9d
mov esp, ebp
pop ebp
ret

Function at 0x424430
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4a55b7], 0
je 0x424461
movzx eax, byte [0x4a55b8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0042a3f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4244a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 2
jne 0x4244ba
cmp dword [ebp - 0x11c], 6
setae al
mov byte [0x4a55b8], al
jmp 0x4244bf
mov al, byte [0x4a55b8]
test al, al
je 0x4244d4
xor ecx, ecx
movzx eax, al
cmp byte [ebp - 6], 1
cmovne eax, ecx
mov byte [0x4a55b8], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x4a55b7], 1
movzx eax, al
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
Function at 0x424610
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4a55b1], 0
je 0x424641
movzx eax, byte [0x4a55b2]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0042a3f0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x424680
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x108], 2
jne 0x4246b0
mov eax, dword [ebp - 0x114]
cmp eax, 5
jbe 0x42469d
mov al, 1
mov byte [0x4a55b2], al
jmp 0x4246b5
jne 0x4246b0
cmp dword [ebp - 0x110], 0
seta al
mov byte [0x4a55b2], al
jmp 0x4246b5
mov al, byte [0x4a55b2]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x4a55b1], 1
movzx eax, al
call fcn.00428d9d
mov esp, ebp
pop ebp
ret

Function at 0x4246d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0042a3f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop esi
test eax, eax
je 0x42475f
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042f9f7
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret

Function at 0x424770
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push edi
je 0x42484f
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42484f
push esi
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x4247c9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
pop ebp
ret
push ebx
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x42483c
push 0x4a5830
push 0x28
call fcn.004290db
add esp, 8
test eax, eax
je 0x424835
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [ecx], ebx
mov dword [eax + 8], ebx
pop ebx
mov dword [eax + 4], esi
pop esi
mov dword [eax], edi
pop edi
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop ebx
pop esi
xor eax, eax
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret
Function at 0x424a40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
lea ebx, [esi + esi]
push ebx
push 0
push edi
call fcn.0042a3f0
add esp, 0xc
lea eax, [esi - 1]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor ecx, ecx
mov word [ebx + edi - 2], cx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x426420
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
push edi
mov edi, ecx
test eax, eax
je 0x426452
mov dword [eax], 0
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4265c8
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x4533a0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4265c8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
nop dword [eax]
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp - 0x418]
mov ecx, edi
call dword [eax + 0x14]
test eax, eax
jne 0x4264c5
push 0x3e8
call ebx
inc esi
cmp esi, 5
jl 0x4264a0
cmp esi, 5
je 0x4265b9
xor esi, esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x426503
push 0x3e8
call ebx
inc esi
cmp esi, 5
jl 0x4264d0
cmp esi, 5
je 0x4265b9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4265b2
test esi, esi
je 0x4265b2
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42657d
push 0
lea eax, [ebp - 0x420]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42657d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x42659d
mov dword [eax], esi
pop esi
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x426568
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00428d9d
mov esp, ebp
pop ebp
ret 8
Function at 0x426a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ecf2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4672b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
test al, 1
je 0x426a9b
mov ebx, 0x40000000
mov dword [ebp - 0x10], 2
jmp 0x426ab9
test al, 2
je 0x426aad
mov ebx, 0xc0000000
mov dword [ebp - 0x10], 3
jmp 0x426ab9
mov ebx, 0x80000000
mov dword [ebp - 0x10], 1
mov ecx, eax
and ecx, 0x100
mov esi, ecx
neg esi
sbb esi, esi
add esi, 3
test eax, 0x200
je 0x426ae0
test ecx, ecx
mov esi, 5
mov eax, 2
cmovne esi, eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x426af7
mov byte [ebp + 0xf], 1
test al, 0x10
je 0x426afb
mov byte [ebp + 0xf], 0
push 0
push 0x80
push esi
push 0
push dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x426b36
call fcn.00431085
mov dword [eax], 0xd
or eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4a5830
push 0x214
call fcn.0042908b
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x426b73
mov dword [esi], 0
mov dword [esi + 0x20c], 0
mov word [esi + 0x210], 0
jmp 0x426b75
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x426ba0
call fcn.00431085
mov dword [eax], 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xf], 0
jne 0x426bad
mov byte [esi + 0x210], 1
push edi
lea eax, [esi + 4]
mov dword [esi], ebx
push 0x104
push eax
mov dword [esi + 0x20c], 0
call fcn.0042f9f7
add esp, 0xc
mov eax, 0x4a5618
mov cx, word [edi]
cmp cx, word [eax]
jne 0x426bf6
test cx, cx
je 0x426bf2
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x426bf6
add edi, 4
add eax, 4
test cx, cx
jne 0x426bd0
xor eax, eax
jmp 0x426bfb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x426c0b
mov ecx, dword [0x4a5610]
mov dword [esi + 0x20c], ecx
push 0
push 0
push dword [esi + 0x20c]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42795c
test al, 0x10
je 0x42795c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43e6c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e543

Function at 0x443eb3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00443b73
Function at 0x4018b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [0x40ce54]
push edi
cmp ecx, ebx
je 0x4018df
mov ecx, dword [ecx]
lea eax, [esi + 0x214]
mov dword [eax], ecx
add dword [0x40ce58], 4
cmp dword [eax], ebx
jmp 0x40190b
push dword [esi + 0x20c]
lea edi, [esi + 0x214]
push 1
push 4
push edi
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jae 0x401909
push str.Read_Error
mov ecx, esi
call fcn.004013ba
cmp dword [edi], ebx
je 0x401a83
mov ecx, esi
call fcn.0040161e
mov ecx, esi
call fcn.00401445
lea edi, [esi + 0x220]
mov ecx, 0x3f1
mov eax, 0x20202020
mov dword [ebp - 4], 0xfc4
rep stosd dword es:[edi], eax
cmp dword [esi + 0x214], ebx
mov dword [ebp - 8], ebx
jbe 0x401a83
mov edi, 0xfff
mov ecx, esi
call fcn.00401644
mov ebx, eax
cmp bx, 0x100
jge 0x4019c9
mov eax, dword [0x40ce64]
test eax, eax
je 0x401981
mov ecx, dword [0x40ce68]
lea edx, [ecx + 1]
cmp edx, dword [0x40ce60]
jge 0x4019ae
mov byte [ecx + eax], bl
inc dword [0x40ce68]
jmp 0x4019ae
mov ecx, dword [esi + 0x210]
lea eax, [esi + 0x210]
dec dword [ecx + 4]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jl 0x4019a2
mov ecx, dword [ecx]
mov byte [ecx], bl
mov eax, dword [eax]
inc dword [eax]
jmp 0x4019ae
movsx eax, bx
push ecx
push eax
call sub.MSVCRT.dll__flsbuf
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 8]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jmp 0x401a74
mov ecx, esi
call fcn.00401784
mov cx, ax
mov eax, dword [ebp - 4]
sub eax, ecx
lea ecx, [ebx - 0xfd]
dec eax
and eax, edi
test cx, cx
jle 0x401a74
movsx eax, ax
mov dword [ebp - 0xc], eax
movsx eax, cx
add dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
and eax, edi
movzx bx, byte [eax + esi + 0x220]
mov eax, dword [0x40ce64]
test eax, eax
je 0x401a2c
mov ecx, dword [0x40ce68]
lea edx, [ecx + 1]
cmp edx, dword [0x40ce60]
jge 0x401a59
mov byte [ecx + eax], bl
inc dword [0x40ce68]
jmp 0x401a59
mov ecx, dword [esi + 0x210]
lea eax, [esi + 0x210]
dec dword [ecx + 4]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jl 0x401a4d
mov ecx, dword [ecx]
mov byte [ecx], bl
mov eax, dword [eax]
inc dword [eax]
jmp 0x401a59
movsx eax, bx
push ecx
push eax
call sub.MSVCRT.dll__flsbuf
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jne 0x4019f9
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x214]
jb 0x40194c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f38
Capabilities:
Set file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x417478
push 0x104
xor edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x2e
push esi
call sub.MSVCRT.dll__mbsrchr
pop ecx
cmp eax, edi
pop ecx
je 0x401f61
and byte [eax], 0
push str..ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x80
push edi
push ebx
push 3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, 0x40000000
push 1
push ebp
push esi
call edi
cmp eax, 0xffffffff
je 0x401f96
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401fb8
push 0
push ebx
push 4
push 0
push 1
push ebp
push esi
call edi
cmp eax, 0xffffffff
je 0x401fb8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [0x415c98]
push 0x40c9e4
call fcn.00401f02
pop ecx
mov dword [0x415c98], eax
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401fd4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 0x10], 0
je 0x402000
push 0x40ca20
push dword [ebp + 0x10]
call sub.MSVCRT.dll__mbsstr
pop ecx
test eax, eax
pop ecx
je 0x402000
mov dword [0x417888], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
push 0x64
push 0x415b7c
push 0x67
push ebx
mov dword [0x415be0], ebx
call esi
push 0x64
push 0x415b18
push 0x67
push ebx
call esi
push ebx
call fcn.004021e7
pop ecx
call fcn.00401f38
call fcn.004031c8
test eax, eax
je 0x4020af
and dword [ebp + 0x10], 0
push 0xf003f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
lea ecx, [ebp + 0x10]
call fcn.0040211f
mov ax, word [0x4178a0]
push 0x18
mov word [ebp - 0x80], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x7e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push 0x64
push eax
push 0x67
push dword [0x415be0]
call esi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00405e1c
push dword [ebp + 0x14]
mov dword [0x417880], eax
push ebx
call fcn.00402287
add esp, 0x10
test eax, eax
jne 0x4020b3
cmp dword [ebp + 0x10], esi
je 0x4020af
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402118
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, eax
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
call edi
test eax, eax
je 0x402100
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4020f7
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
jmp 0x4020cb
call fcn.0040215d
cmp dword [ebp + 0x10], esi
mov edi, dword [ebp - 0x14]
je 0x402116
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402287
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [0x409128]
xor esi, esi
mov dword [0x415be0], ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], esi
call edi
cmp eax, 0xb7
je 0x4022bf
call edi
cmp eax, 5
jne 0x4022d9
lea eax, [ebp + 8]
push eax
push 0x401b64
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xaffe
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
push ebx
push esi
push esi
push 0x190
mov eax, 0x80000000
push 0x258
push eax
push eax
push 0xcf0000
push 0x415b7c
push 0x415b18
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
cmp edi, esi
jne 0x40230e
xor eax, eax
jmp 0x402320
push esi
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4038d1
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
push 0
push dword [esi + 0x410]
mov dword [esi], 0x4072d0
push 7
push 2
push dword [esi + 0x41c]
call fcn.0040396b
mov esi, dword [esi + 8]
test esi, esi
je 0x403906
push 0x444
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret

Function at 0x403908
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
push 0
push dword [esi + 0x410]
push 7
push 2
push dword [esi + 0x41c]
call fcn.0040396b
mov eax, dword [esi + 8]
test eax, eax
je 0x40393b
push 0x444
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 8], 0
pop esi
ret

Function at 0x4039d6
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push edi
xor edi, edi
mov ebx, str.Shell_TrayWnd
push edi
push ebx
push edi
push edi
call esi
cmp eax, edi
je 0x403a13
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
cmp eax, edi
je 0x403a13
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x403ad7
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x403a79
mov eax, dword [ebp - 0x18]
sub eax, edi
je 0x403a5d
dec eax
je 0x403a3e
dec eax
je 0x403a5d
dec eax
jne 0x403ad7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
jmp 0x403ad7
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
jmp 0x403a58
push edi
push ebx
push edi
push edi
call esi
cmp eax, edi
je 0x403ab6
mov esi, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 8]
mov ecx, eax
sub ecx, dword [esi]
cmp ecx, 0x96
jle 0x403aa4
add eax, 0xffffff6a
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
sub ecx, dword [esi + 4]
cmp ecx, 0x1e
jle 0x403ad7
add eax, 0xffffffe2
jmp 0x403ad4
mov esi, dword [ebp + 8]
push edi
push esi
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403b0e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0
je 0x403b4d
call fcn.00403adc
test eax, eax
je 0x403b4d
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
push eax
call fcn.004039d6
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret 8
Function at 0x403bfa
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
mov esi, ecx
mov dword [esi + 0x410], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x40c], eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.00403b78
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403c33
mov dword [esi + 0x414], eax
cmp dword [ebp + 0x18], 0
je 0x403c65
mov eax, dword [esi + 8]
test eax, eax
je 0x403c4c
push 0x444
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x403c6d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
push 1
pop eax
pop esi
pop ebp
ret 0x14
Function at 0x4045bc
Capabilities:
Log keystrokes via polling
Print debug messages

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0x24
call esi
push 0x24
call esi
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov ebx, eax
call sub.MSVCRT.dll_clock
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov si, ax
shr esi, 0xf
and esi, 1
jne 0x4045f7
call sub.MSVCRT.dll_clock
mov dword [0x40cbac], eax
call sub.MSVCRT.dll_clock
test esi, esi
mov edi, eax
je 0x404637
mov eax, dword [0x40cba8]
mov ecx, edi
sub ecx, eax
cmp ecx, ebx
jge 0x404631
cmp dword [0x40cbac], eax
jle 0x404631
cmp eax, edi
jge 0x404631
push str.Double___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
mov dword [0x40cba8], edi
pop eax
jmp 0x404639
mov dword [0x40cba8], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret