joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f652
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x20]
mov eax, dword [edx + 0x20]
push esi
mov esi, dword [edx + 0x6c]
push edi
mov edi, dword [edx + 0x60]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x41f779
push ebx
mov edx, dword [edx + 0x68]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x41f75a
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0xf
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 2]
mov ecx, eax
and ecx, 0xffff00f0
mov ebx, ebp
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00f0
shr edx, 2
lea ecx, [ecx + ebx + 0x20]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xf0
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0xf
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x41f6a8
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x60]
mov edx, dword [ecx]
mov edi, dword [edx + 0x60]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x41f687
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret

Function at 0x421d14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x45b3ac
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyA]
test eax, eax
jne 0x421d6b
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test esi, esi
pop esi
jne 0x421d6b
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x421d6b
xor eax, eax
inc eax
jmp 0x421d6d
xor eax, eax
leave
ret 0x10
Function at 0x424bcf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x45b3ac
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyA]
test eax, eax
jne 0x424c26
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test esi, esi
pop esi
jne 0x424c26
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x424c26
xor eax, eax
inc eax
jmp 0x424c28
xor eax, eax
leave
ret 0x10

Function at 0x424c51
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x45b3ac
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x424cbf
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x45b640
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x424cb6
cmp dword [ebp - 0xc], 4
jne 0x424cb6
cmp dword [ebp - 0x10], edi
je 0x424cb6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov dword [0x4610ac], edi
xor eax, eax
jmp 0x424cfe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp dword [0x4610ac], edi
jge 0x424cf9
lea eax, [ebp - 0x34]
push eax
mov dword [0x4610ac], edi
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x424cf9
cmp word [ebp - 0x14], 5
jb 0x424cf9
call fcn.00424c2c
test eax, eax
je 0x424cf9
emms
mov dword [0x4610ac], 1
mov eax, dword [0x4610ac]
pop edi
leave
ret
Function at 0x424eb9
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x424eda
mov eax, 0x8876086c
jmp 0x424fcd
cmp dword [ebp + 0x7c], esi
je 0x424f5c
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x424f3c
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00435410
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x424f5c
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x424f75
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x424fbb
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x424fbb
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x424fbb
cmp eax, esi
je 0x424fc8
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x424fcb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, 0x88760b59
jmp 0x424fcd
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x427d70
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x427d93
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x427db9
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x427da0
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret
Function at 0x427e70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x427ea2
push esi
call fcn.004392f0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x427e9b
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x427f25
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x427f10
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x427eca
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x427f0a
cmp eax, 2
je 0x427f10
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x427ec0
cmp eax, 3
je 0x427eed
cmp eax, 1
jne 0x427ec0
mov eax, dword [ecx + 4]
inc eax
mov edx, eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 8]
cmp edx, eax
jl 0x427ec0
mov edx, dword [esi + 0x144]
add edx, eax
mov dword [ecx + 8], edx
jmp 0x427ec0
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.00427d70
pop esi
ret 4
cmp ecx, 0xcc
je 0x427f3c
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.00427d70
pop esi
ret 4
Function at 0x438a66
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x438a75
xor eax, eax
jmp 0x438b58
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x438b38
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x45e1a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x45e1a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x45e1a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x45e1a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x45e1a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x45e1a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x45e1a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x45e1a0]
inc edx
dec edi
jne 0x438a95
pop edi
test eax, eax
je 0x438b52
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x45e1a0]
inc edx
dec eax
jne 0x438b3c
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x406e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406f48
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e6d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
cmp dword [ebp - 0x10], 0
jne 0x406e82
mov eax, dword [ebp - 8]
call fcn.00403198
mov bl, 1
jmp 0x406f32
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e90
call fcn.00405874
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406e36
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406ee0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406eeb
dec esi
test esi, esi
je 0x406ef9
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406eea
cmp dword [ebp - 0xc], 7
jne 0x406f04
test esi, esi
je 0x406f04
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne 0x406f25
test esi, esi
je 0x406f25
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f4f
lea eax, [ebp - 0x14]
call fcn.00403198
ret

Function at 0x407890
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4078ac
shr eax, 1
xor eax, 0xedb88320
jmp 0x4078ae
shr eax, 1
dec edx
jne 0x40789f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407898
pop esi
ret

Function at 0x408fbc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408f70
test al, al
jne 0x408fdd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x409029
xor eax, eax
push ebp
push 0x409019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409020
lea eax, [ebp - 0xc]
call fcn.00408fac
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4032ed
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00408070
mov dword [esp], eax
push dword [0x40e778]
push dword [0x40e778]
call fcn.004081ed
lea eax, [esp + 8]
push eax
call fcn.0040ac60
push dword [esp]
push 0
push 0x40d01e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x40e778]
push dword [0x40e778]
push dword [esp + 8]
call fcn.00407f80
lea eax, [0x40e47c]
push eax
call fcn.0040ac60
push dword [esp]
call fcn.00408090
push dword [0x40e47c]
call fcn.0040827c
push dword [0x40e47c]
call fcn.0040828a
push dword [0x40e778]
push dword [0x40e778]
call fcn.00408125
lea eax, [0x40e418]
push eax
call fcn.0040ac60
push dword [esp + 0x14]
pop eax
call fcn.004080b0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x4033c6
mov edx, dword [0x40e47c]
push dword [0x40e778]
call fcn.0040ad10
lea eax, [0x40e418]
push eax
call fcn.0040ac60
mov dword [esp + 0xc], 2
jmp 0x4033d8
mov ebx, 1
cmp ebx, dword [esp]
jne 0x4033d8
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.004080b0
mov dword [0x40e448], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.004080b0
mov dword [0x40e3a8], eax
mov eax, 1
jmp 0x40340b
push dword [esp + 4]
call fcn.0040ad70
add esp, 0xc
pop ebx
ret 4
Function at 0x403847
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00404060
push 0xa
push dword [esp + 4]
push dword [esp + 0x28]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40389d
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40e3ac], eax
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40e3c0], eax
push dword [esp]
mov edx, 0x40d032
pop ecx
call fcn.0040ace0
je 0x403914
push dword [0x40e3c0]
call fcn.00408070
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, dword [0x40e3c0]
dec ebx
cmp ebx, dword [esp + 0xc]
jl 0x40390a
mov ebx, dword [0x40e3ac]
add ebx, dword [esp + 0xc]
push ebx
pop eax
call fcn.004080b0
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x14], ebx
push dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.004080c0
inc dword [esp + 0xc]
jno 0x4038c4
push dword [esp + 8]
pop eax
mov dword [0x40e3ac], eax
mov eax, dword [esp + 4]
jmp 0x40391c
push dword [esp]
call fcn.0040ad70
add esp, 0x18
pop ebx
ret 8
Function at 0x404b31
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x404b80
push dword [esp + 0x10]
push 0x404aaf
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40e4ac]
cmp esi, ebx
je 0x404bd4
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x404b78
cmp byte [esi + 0x10], bl
je 0x404b78
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x404b55
jmp 0x404bd4
mov esi, dword [0x40e4ac]
cmp esi, ebx
je 0x404bd4
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x404bcd
cmp byte [esi + 0x11], bl
je 0x404baa
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x404bc0
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x40e4ac
call fcn.0040a94d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x404b8b
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x406074
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40e7e8]
call fcn.0040a27a
mov edi, eax
test edi, edi
je 0x4060d6
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40609d
push dword [esp + 0xc]
push edi
call eax
jmp 0x4060d6
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040aea0
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040afd0
pop esi
pop ebx
pop edi
ret 8

Function at 0x4063ff
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x4064e8
mov eax, dword [ebp - 0xc]
dec eax
je 0x4064cb
dec eax
jne 0x4064e8
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40645e
cmp byte [ebp - 0x1e], 1
jne 0x40645e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x4064c7
dec eax
je 0x4064c3
dec eax
je 0x4064a1
dec eax
jne 0x4064e8
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x406495
dec eax
je 0x406489
dec eax
jne 0x4064e8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x4064e8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x4064e8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x4064e8
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4064bf
dec eax
je 0x4064bb
dec eax
jne 0x4064e8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x4064e8
push 0x3c
jmp 0x4064e7
push 0x32
jmp 0x4064e7
push 0x14
jmp 0x4064e7
push 5
jmp 0x4064e7
cmp dword [ebp - 0x14], 0
je 0x4064e5
cmp dword [ebp - 0x14], 0xa
je 0x4064e1
cmp dword [ebp - 0x14], 0x5a
jne 0x4064e8
push 0x28
jmp 0x4064e7
push 0x1e
jmp 0x4064e7
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x407451
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x4074cd
push 9
call esi
test bl, al
je 0x4074cd
push 0x11
call esi
test bl, al
jne 0x4074cd
push 0x10
call esi
test bl, al
jne 0x4074cd
push 0x12
call esi
test bl, al
jne 0x4074cd
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4074cd
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x4074cd
xor eax, eax
jmp 0x40754f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4074f6
push 0x11
call esi
test bl, al
jne 0x4074ee
push 0x10
call esi
test bl, al
jne 0x4074ee
push 0x12
call esi
test bl, al
je 0x4074f6
push 1
push ebp
call fcn.0040740a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40750c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40754c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40754c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40754c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40754c
dec esi
push esi
push dword [0x40e7f0]
call fcn.0040a27a
test eax, eax
je 0x40754c
mov eax, dword [eax + 8]
jmp 0x40754e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x407611
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x40e704], eax
cmp eax, edi
je 0x407644
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40e708], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x40e700], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x407682
cmp dword [ebp - 0xc], 1
je 0x407693
cmp dword [ebp - 0xc], 2
jne 0x407682
cmp dword [ebp - 0x18], 5
jb 0x407693
jne 0x407682
cmp dword [ebp - 0x14], edi
jne 0x407682
mov dword [0x40e700], edi
cmp dword [0x40e700], edi
je 0x407699
call fcn.00407558
test eax, eax
jne 0x407699
mov dword [0x40e700], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40824e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x408277
test byte [esp + 8], 2
je 0x40826b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x408279
xor eax, eax
ret 8
Function at 0x40828a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x4082fa
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x4082dc
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x4082db
cmp dl, 0x5c
je 0x4082db
cmp dl, 0x2f
jne 0x4082e6
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x4082c9
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4082fc
xor eax, eax
leave
ret 4

Function at 0x4083d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x408405
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x4087b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x4087f7
cmp byte [esi], al
je 0x4087f7
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40e890]
push eax
push ecx
call fcn.0040a27a
test eax, eax
je 0x408825
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x408800
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4087e5
sub ecx, edi
push ecx
push esi
push eax
call fcn.00408970
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408800
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x408830
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x408889
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x408888
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40e890]
push eax
push ecx
call fcn.0040a27a
test eax, eax
je 0x408884
cmp dword [eax + 4], 0
je 0x408872
push esi
push edi
push eax
call fcn.00408970
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc