joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef9eb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4ef9f9
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4efab4
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b2ca0]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b2ca0]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b2ca0]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b2ca0]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b2ca0]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b2ca0]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b2ca0]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b2ca0]
add edx, 8
sub edi, 8
dec esi
jne 0x4efa17
pop ebx
test edi, edi
je 0x4efacd
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x5b2ca0]
inc edx
dec edi
jne 0x4efab8
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x4efad3
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x5b2ca0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x5b2ca0]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x4effb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4effe8
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4effe3
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4f0010
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4efff9
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004fbb10
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x4f11b7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4f11eb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f11eb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x4f1295
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x4f1207
cmp cx, 0x5c
jne 0x4f1209
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x4f11fb
cmp eax, esi
je 0x4f1249
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004fbb10
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.004f11b7
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x4f1265
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004fc4e1
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004fc4b0
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f1295
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb958
leave
ret

Function at 0x4f2ab6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4f2b61
cmp dword [esi + 4], 0xffffffff
jne 0x4f2b61
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.004fb22e
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x4f2b08
cmp eax, 0x2f
je 0x4f2b08
push 0x59a764
push edi
call fcn.004fc4b0
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x4f2b2a
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4f2b2a
mov eax, 0x2000000
jmp 0x4f2b66
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004efdd9
add esp, 0x10
test eax, eax
jne 0x4f2b48
mov eax, dword [ebp + 0x10]
jmp 0x4f2b66
push eax
call fcn.004f258b
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x4f2b66
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4f44d2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4f44e0
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4f459b
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b39f0]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b39f0]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b39f0]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b39f0]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b39f0]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b39f0]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b39f0]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b39f0]
add edx, 8
sub edi, 8
dec esi
jne 0x4f44fe
pop ebx
test edi, edi
je 0x4f45b4
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x5b39f0]
inc edx
dec edi
jne 0x4f459f
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x4f45ba
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x5b39f0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x5b39f0]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x4f4b4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x4f4bc2
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x4f4b79
cmp dword [esi + 0x40], edi
jae 0x4f4b79
push eax
call fcn.004fa278
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x4f4b8e
lea eax, [edi + edi]
push eax
call fcn.004fc26a
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.004fbb10
add esp, 0xc
test edi, edi
je 0x4f4bbf
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.004f4627
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x4f4ba1
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4f4bf1
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x4f4bdd
mov dword [esi + 0x14], 0x30000
jmp 0x4f4c13
push edi
push edx
add eax, ecx
push eax
call fcn.004fbb10
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x4f4c15
mov eax, dword [esi + 4]
test eax, eax
je 0x4f4c0c
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x4f4c15
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f4f06
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x4f4f5c
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x4f4f98
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x4f4f31
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004fbb10
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.004f44d2
add esp, 0x18
mov dword [esi + 0x78], eax
mov eax, edi
jmp 0x4f4f9a
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4f4f91
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f4f98
mov edi, dword [ebp + 0xc]
add dword [esi + 0x74], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.004f44d2
add esp, 0xc
jmp 0x4f4f55
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x4f58ad
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebx - 1]
push edi
cmp eax, 7
jbe 0x4f58cb
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x4f58ef
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.004fc1f0
mov eax, ebx
movzx ecx, word [eax*8 + 0x5b39a2]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x5b39a0]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x5b39a4]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x5b39a6]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ebx, 2
jg 0x4f5952
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x4f595e
cmp ebx, 8
jl 0x4f595e
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x4f59c5
cmp eax, 0xffffffff
je 0x4f59c5
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4f59a0
push esi
call fcn.004f3be7
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x4f59a8
jmp 0x4f59d5
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f5ffd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x4f6205
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x4f6077
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x4f60ba
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x4f60ba
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x4f60a1
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.004f3a5c
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x4f60ba
mov ebx, eax
cmp ebx, 3
jb 0x4f617f
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.004f3585
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x4f614c
cmp eax, 3
jb 0x4f614c
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x4f60fa
jmp 0x4f61a2
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x4f61a8
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.004f3585
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x4f61e4
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x4f61c1
lea ecx, [eax + esi + 0x1af70]
jmp 0x4f61c3
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.004f5e59
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4f61f7
push esi
call fcn.004f3be7
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x4f6027
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x4f6218
lea ecx, [eax + esi + 0x1af70]
jmp 0x4f621a
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.004f5e59
add esp, 0x10
pop esi
pop ebx
leave
ret

Function at 0x4fb958
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x602c60]
jne 0x4fb962
repz ret
jmp fcn.0050c98c
Function at 0x522a67
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005092c1
and dword [ebp - 0x14], 0
cmp dword [0x607734], 0
mov dword [ebp - 0x18], eax
jne 0x522b1a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x522bc2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5ba3cc
push ebx
call edi
test eax, eax
je 0x522bc2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x607734], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x607738], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x60773c], eax
call edi
push eax
call esi
mov dword [0x607744], eax
test eax, eax
je 0x522b1a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x607740], eax
mov eax, dword [0x607740]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x522b73
cmp dword [0x607744], ecx
je 0x522b73
push eax
call esi
push dword [0x607744]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x522b73
test ebx, ebx
je 0x522b73
call edi
test eax, eax
je 0x522b6a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x522b6a
test byte [ebp - 8], 1
jne 0x522b73
or dword [ebp + 0x10], 0x200000
jmp 0x522ba6
mov eax, dword [0x607738]
cmp eax, dword [ebp - 0x18]
je 0x522ba6
push eax
call esi
test eax, eax
je 0x522ba6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x522ba6
mov eax, dword [0x60773c]
cmp eax, dword [ebp - 0x18]
je 0x522ba6
push eax
call esi
test eax, eax
je 0x522ba6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x607734]
call esi
test eax, eax
je 0x522bc2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x522bc4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb958
leave
ret

Function at 0x52b054
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 8
call fcn.004fc26a
pop ecx
test eax, eax
jne 0x52b066
leave
ret
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x10]
push eax
push 0x52b034
push 0
push 0
call fcn.00505a69
add esp, 0x18
leave
ret
Function at 0x52b0bc
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x28], edi
jne 0x52b13d
push ebx
lea eax, [esi + 8]
push eax
mov dword [esi + 0x28], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [esi + 0x30], edi
jle 0x52b0f2
mov eax, dword [esi + 0x2c]
push dword [eax + ebx*4]
call fcn.004fa278
inc ebx
pop ecx
cmp ebx, dword [esi + 0x30]
jl 0x52b0e0
lea ecx, [esi + 0x2c]
call fcn.0052ac85
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
cmp dword [esi + 0x24], edi
je 0x52b12c
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x24], edi
cmp edi, edi
jne 0x52b10a
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x52b13d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], edi
pop edi
pop esi
ret

Function at 0x52b881
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x52b897
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x52b8a3
or edi, 1
push 1
call esi
test ax, ax
jns 0x52b8af
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x52b8bb
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x52b8c7
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x52b8cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20319
xor esi, esi
push esi
push str.SoftwareMicrosoftWindowsDWM
push SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x52b906
xor eax, eax
jmp 0x52b934
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.ColorizationColor
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x52b928
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x52b9fd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004fc1f0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x52ba58
cmp dword [ebp - 0x114], 6
jne 0x52ba58
cmp dword [ebp - 0x110], 2
jb 0x52ba58
xor eax, eax
inc eax
jmp 0x52ba5a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb958
leave
ret
Function at 0x52eebc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x52eee1
cmp ebx, dword [esi + 0x74]
je 0x52eee1
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x74]
cmp ebx, eax
je 0x52efab
push edi
test eax, eax
je 0x52ef38
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x1a
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x74]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1d8]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x74]
mov ecx, esi
call fcn.0052e998
mov dword [esi + 0x74], edi
test ebx, ebx
je 0x52efaa
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
cmp eax, esi
jne 0x52efaa
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x17c]
test al, al
je 0x52efaa
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x188]
test al, al
je 0x52efaa
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov dword [esi + 0x74], ebx
mov dword [ebp - 0x20], 0x1b
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x74]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1d8]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x74]
mov ecx, esi
call fcn.0052e998
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x52f207
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x148]
call fcn.0052acc8
mov edi, dword [ebp + 8]
test eax, eax
jle 0x52f258
push dword [ebp - 4]
lea ecx, [esi + 0x148]
call fcn.0052aceb
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx]
test al, al
jne 0x52f2ea
inc dword [ebp - 4]
lea ecx, [esi + 0x148]
call fcn.0052acc8
cmp dword [ebp - 4], eax
jl 0x52f228
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push 0xfffffffffffffff0
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi]
cmp dword [edi], ecx
je 0x52f285
cmp ebx, ecx
jne 0x52f340
test eax, 0x40000000
je 0x52f340
mov edx, dword [edi + 8]
mov edi, dword [edi + 4]
sub edi, 0x100
je 0x52f349
sub edi, 4
je 0x52f2ee
dec edi
dec edi
jne 0x52f340
xor eax, eax
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
push edx
stosw word es:[edi], ax
call fcn.0057453c
pop ecx
mov ecx, dword [esi + 0x70]
push 0x80000014
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x52d27e
call dword [eax + 0x1cc]
mov esi, eax
test esi, esi
je 0x52f340
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1a4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov al, 1
jmp 0x52f342
cmp dword [esi + 0x74], 0
je 0x52f340
xor eax, eax
push 8
pop ecx
mov byte [ebp - 0x28], 0
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x10], dx
mov dword [ebp - 0x14], eax
call fcn.0052b881
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x74]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1d8]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
cmp edx, 9
jne 0x52f340
cmp dword [esi + 0x74], 0
je 0x52f3a2
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x17c]
test al, al
je 0x52f3a2
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x188]
test al, al
je 0x52f3a2
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
push str.UIRichEdit
call dword [eax + 8]
push eax
call fcn.004faa32
pop ecx
pop ecx
test eax, eax
je 0x52f3a2
mov eax, dword [esi + 0x74]
test eax, eax
je 0x52f397
lea ecx, [eax - 8]
jmp 0x52f399
xor ecx, ecx
call fcn.0055bb14
test al, al
jne 0x52f340
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.0052f060
jmp 0x52f2ea