joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508770
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x715f64]
push ebx
mov ebx, 4
movzx eax, byte [ecx]
mov byte [0x7161f0], al
movzx eax, byte [ecx + 1]
mov byte [0x7161f1], al
movzx eax, byte [ecx + 2]
mov byte [0x7161f2], al
movzx eax, byte [ecx + 3]
mov byte [0x7161f3], al
movzx eax, byte [ecx + 4]
mov byte [0x7161f4], al
movzx eax, byte [ecx + 5]
mov byte [0x7161f5], al
movzx eax, byte [ecx + 6]
mov byte [0x7161f6], al
movzx eax, byte [ecx + 7]
mov byte [0x7161f7], al
movzx eax, byte [ecx + 8]
mov byte [0x7161f8], al
movzx eax, byte [ecx + 9]
mov byte [0x7161f9], al
movzx eax, byte [ecx + 0xa]
mov byte [0x7161fa], al
movzx eax, byte [ecx + 0xb]
mov byte [0x7161fb], al
movzx eax, byte [ecx + 0xc]
mov byte [0x7161fc], al
movzx eax, byte [ecx + 0xd]
mov byte [0x7161fd], al
movzx eax, byte [ecx + 0xe]
mov byte [0x7161fe], al
movzx eax, byte [ecx + 0xf]
mov byte [0x7161ff], al
mov eax, 0x7161fd
mov cl, byte [eax]
mov ch, byte [eax + 1]
mov dh, byte [eax + 2]
mov dl, byte [eax - 1]
mov byte [ebp - 2], cl
mov byte [ebp - 1], ch
mov byte [ebp - 3], dh
test bl, 3
jne 0x50886d
movzx ecx, cl
movzx edx, dl
mov cl, byte [ecx + str.cw]
mov dh, byte [edx + str.cw]
mov byte [ebp - 4], cl
movzx ecx, byte [ebp - 1]
mov dl, byte [ebp - 4]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
movzx ecx, byte [ebp - 3]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
mov ecx, ebx
shr ecx, 2
xor dl, byte [ecx + 0x6c976c]
mov ch, byte [ebp - 1]
mov cl, byte [eax - 0xd]
inc ebx
xor cl, dl
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, byte [ebp - 2]
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, ch
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, dh
mov byte [eax + 6], cl
add eax, 4
cmp ebx, 0x2c
jb 0x508814
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5088a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7161e4]
push ebx
push esi
add eax, 2
mov esi, 4
mov dl, byte [eax + 1]
lea eax, [eax + 4]
mov bh, byte [eax - 4]
mov dh, dl
mov cl, byte [eax - 6]
xor dh, bh
mov bl, byte [eax - 5]
mov byte [ebp - 2], cl
mov byte [ebp - 3], dl
mov dl, dh
xor dl, cl
xor dl, bl
mov byte [ebp - 1], dl
mov dl, cl
xor dl, bl
mov cl, dl
add dl, dl
shr cl, 7
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dl
mov dl, bl
xor cl, byte [ebp - 2]
xor dl, bh
xor cl, byte [ebp - 1]
mov byte [eax - 6], cl
mov cl, dl
shr cl, 7
add dl, dl
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dl
mov dl, byte [ebp - 3]
xor cl, bl
xor dl, byte [ebp - 2]
mov bl, byte [ebp - 1]
xor cl, bl
mov byte [eax - 5], cl
mov cl, dh
shr cl, 7
add dh, dh
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dh
xor cl, bh
xor cl, bl
mov byte [eax - 4], cl
mov cl, dl
shr cl, 7
add dl, dl
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dl
xor cl, byte [ebp - 3]
xor cl, bl
mov byte [eax - 3], cl
sub esi, 1
jne 0x5088b3
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x508b60
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [0x7161e4]
mov esi, 0x7161f0
sub esi, edi
mov ecx, edi
mov ebx, 4
nop dword [eax]
mov edx, 4
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x508b85
sub ebx, 1
jne 0x508b80
mov esi, 0x716200
mov dword [ebp - 8], 9
mov ebx, edi
mov dword [ebp - 4], 4
nop word [eax + eax]
mov ecx, ebx
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + str.cw]
mov byte [ecx - 4], al
sub edx, 1
jne 0x508bc0
inc ebx
sub dword [ebp - 4], 1
jne 0x508bb0
movzx eax, byte [edi + 5]
mov cl, byte [edi + 1]
mov byte [edi + 1], al
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 0xb], al
mov byte [edi + 7], cl
call fcn.005088a0
mov eax, edi
mov ebx, 4
mov edx, 4
nop dword [eax]
mov cl, byte [esi]
inc esi
xor byte [eax], cl
inc eax
sub edx, 1
jne 0x508c40
sub ebx, 1
jne 0x508c37
sub dword [ebp - 8], 1
jne 0x508ba1
mov esi, edi
lea ebx, [edx + 4]
nop
mov ecx, esi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + str.cw]
mov byte [ecx - 4], al
sub edx, 1
jne 0x508c70
inc esi
sub ebx, 1
jne 0x508c60
movzx eax, byte [edi + 5]
lea esi, [ebx + 4]
mov cl, byte [edi + 1]
mov edx, 0x716290
mov byte [edi + 1], al
sub edx, edi
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 0xb], al
mov byte [edi + 7], cl
mov ecx, 4
nop dword [eax]
mov al, byte [edx + edi]
xor byte [edi], al
inc edi
sub ecx, 1
jne 0x508cf0
sub esi, 1
jne 0x508ce4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x508d10
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x7161e4]
mov ebx, 4
push edi
mov edi, 0x716290
mov ecx, esi
sub edi, esi
nop dword [eax]
mov edx, 4
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x508d35
sub ebx, 1
jne 0x508d30
mov byte [ebp - 1], 9
mov dword [ebp - 8], 0x716280
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
nop word [eax + eax]
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x6c9878]
mov byte [ecx - 4], al
sub edx, 1
jne 0x508dc0
inc edi
sub ebx, 1
jne 0x508db0
mov edx, dword [ebp - 8]
mov eax, esi
mov ebx, 4
mov edi, 4
nop dword [eax]
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x508df0
sub ebx, 1
jne 0x508de4
call fcn.00508950
mov dl, byte [ebp - 1]
sub dword [ebp - 8], 0x10
dec dl
mov byte [ebp - 1], dl
test dl, dl
jne 0x508d50
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x6c9878]
mov byte [ecx - 4], al
sub edx, 1
jne 0x508e80
inc edi
sub ebx, 1
jne 0x508e70
mov edx, 0x7161f0
lea edi, [ebx + 4]
sub edx, esi
mov ecx, 4
nop dword [eax]
mov al, byte [edx + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x508eb0
sub edi, 1
jne 0x508ea4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x508ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov al, byte [ebp + 8]
and al, 0xf
mov dword [ebp - 8], edx
push ebx
mov byte [ebp - 1], al
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
test eax, eax
je 0x508efa
mov dword [0x715f64], eax
call fcn.00508770
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
test eax, eax
mov edi, dword [0x7161e8]
cmovne edi, eax
mov eax, dword [ebp + 8]
mov dword [0x7161e8], edi
test eax, eax
je 0x508f5f
lea esi, [eax - 1]
shr esi, 4
inc esi
nop dword [eax]
movups xmm0, xmmword [edx]
mov eax, ebx
sub edi, ebx
mov edx, 0x10
movups xmmword [ebx], xmm0
nop
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
sub edx, 1
jne 0x508f30
mov dword [0x7161e4], ebx
call fcn.00508b60
mov edx, dword [ebp - 8]
mov edi, ebx
add edx, 0x10
add ebx, 0x10
mov dword [ebp - 8], edx
sub esi, 1
jne 0x508f20
mov dword [0x7161e8], edi
mov al, byte [ebp - 1]
test al, al
je 0x508fa9
movzx esi, al
push esi
push edx
push ebx
call fcn.00638420
mov eax, 0x10
sub eax, esi
push eax
lea eax, [esi + ebx]
push 0
push eax
call fcn.00638f20
add esp, 0x18
mov ecx, ebx
sub edi, ebx
mov edx, 0x10
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x508f90
mov dword [0x7161e4], ebx
call fcn.00508b60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x508fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
and al, 0xf
push ebx
mov byte [ebp - 1], al
mov ebx, edx
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
test eax, eax
je 0x508fd3
mov dword [0x715f64], eax
call fcn.00508770
mov eax, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, dword [0x7161e8]
cmovne esi, eax
mov eax, dword [ebp + 8]
mov dword [0x7161e8], esi
test eax, eax
je 0x50903f
dec eax
shr eax, 4
inc eax
mov dword [ebp + 8], eax
nop word [eax + eax]
movups xmm0, xmmword [ebx]
mov dword [0x7161e4], edi
movups xmmword [edi], xmm0
call fcn.00508d10
mov eax, edi
sub esi, edi
mov edx, 0x10
nop word [eax + eax]
mov cl, byte [esi + eax]
xor byte [eax], cl
inc eax
sub edx, 1
jne 0x509020
mov esi, ebx
add edi, 0x10
add ebx, 0x10
sub dword [ebp + 8], 1
jne 0x509000
mov dword [0x7161e8], esi
mov al, byte [ebp - 1]
pop esi
test al, al
je 0x509060
movzx eax, al
push eax
push ebx
push edi
call fcn.00638420
add esp, 0xc
mov dword [0x7161e4], edi
call fcn.00508d10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50dfec
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x50e00f
or esi, 1
push 2
call edi
test ax, ax
jns 0x50e01b
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x50e027
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x50e033
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x50f4e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x410], ebx
jle 0x50f535
mov eax, dword [esi + 0x40c]
lea edx, [ebp - 5]
mov byte [ebp - 5], 0
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax + ebx*4]
push dword [ebp + 0xc]
push edi
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp - 5], 0
jne 0x50f595
inc ebx
cmp ebx, dword [esi + 0x410]
jl 0x50f50a
sub edi, 0x100
je 0x50f605
sub edi, 4
je 0x50f599
dec edi
sub edi, 1
jne 0x50f5f0
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.006463bd
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp - 0xc]
push reloc.WS2_32.dll_select
mov word [ebp - 0xc], ax
push edx
mov eax, dword [ecx]
push 0x513c38
call dword [eax + 0x128]
mov esi, eax
test esi, esi
je 0x50f5f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x50f5f2
cmp dword [esi + 0x108], 0
je 0x50f5f0
xor eax, eax
lea edi, [ebp - 0x28]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x18], ax
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x1c], eax
call fcn.0050dfec
mov word [ebp - 0x16], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00620181
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x50f5f0
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x50f65e
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x50f65e
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x50f65e
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0063a834
pop ecx
pop ecx
test eax, eax
je 0x50f65e
mov eax, dword [esi + 0x108]
cmp byte [eax + 0x6a1], 0
jne 0x50f5f0
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x50f6a6
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x50f6a6
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x50f6a6
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0063a834
pop ecx
pop ecx
test eax, eax
jne 0x50f5f0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0051257f
jmp 0x50f595
Function at 0x5120fb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x703034]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
cmp eax, ecx
je 0x512136
cmp esi, dword [ebx + 0x108]
je 0x512136
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x108]
cmp esi, eax
je 0x512215
test eax, eax
je 0x512199
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x17
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x108]
call fcn.005127a4
mov dword [ebx + 0x108], edi
test esi, esi
je 0x512215
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x512215
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x512215
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x512215
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x108], esi
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x108]
call fcn.005127a4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00620181
mov esp, ebp
pop ebp
ret 4
Function at 0x51801c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x518027
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x5180e3
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
sub edi, 1
jne 0x51803c
pop edi
test esi, esi
je 0x5180ff
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
inc edx
sub esi, 1
jne 0x5180e7
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x6c9b70]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9b70]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x518891
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x5188d6
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5188d1
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x5188fd
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x5188e6
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00638420
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00620181
mov esp, ebp
pop ebp
ret
Function at 0x521449
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.0051cc17

Function at 0x5276ef
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x527711
cmp dword [esi + 8], edi
jge 0x527709
call fcn.005271b3
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x52773a
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx - 4], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x52771d
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x527754
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x527745
xor dl, dl
jmp 0x52774a
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x52773c
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x52777e
xor eax, eax
jmp 0x5277b5
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x52777a
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x52779f
push edi
mov ecx, esi
call fcn.0052728d
pop ecx
test eax, eax
je 0x52777a
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00638420
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x536afa
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x69c], edi
je 0x536b64
cmp dword [ebp + 8], 0x100
jne 0x536b53
cmp word [ebp + 0xc], 0xd
jne 0x536b53
cmp byte [esi + 0x6a2], 0
je 0x536b3a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x536b53
cmp byte [esi + 0x6a3], 0
jne 0x536b53
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x536b4f
push edi
push edi
push edi
push str.return
push esi
call fcn.005127a4
xor eax, eax
jmp 0x536b67
mov eax, dword [esi + 0x69c]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x5393a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
mov edx, eax
push ebx
push esi
push edi
shr edx, 0x10
mov edi, ecx
push 0x3c
pop esi
test dx, dx
je 0x5393ef
cmp word [eax], si
je 0x5393ef
call fcn.00452fbf
push 1
push dword [ebp + 8]
lea ecx, [eax + 0x1c]
call fcn.0050dd8b
test eax, eax
jne 0x5393e2
xor ecx, ecx
jmp 0x5393e4
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
test ecx, ecx
cmovne eax, ecx
mov dword [ebp + 8], eax
mov ecx, eax
shr ecx, 0x10
test cx, cx
je 0x539420
cmp word [eax], si
jne 0x539415
push eax
mov ecx, edi
call fcn.005328d9
test al, al
jne 0x53949c
xor eax, eax
jmp 0x5394ac
push ecx
push eax
mov ecx, edi
call fcn.005329d3
jmp 0x539406
mov esi, dword [edi + 0x148]
test esi, esi
jne 0x539439
mov esi, dword [0x715b40]
test esi, esi
cmove esi, dword [0x715b38]
push dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x53940e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x539463
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x53940e
mov eax, dword [ebp + 0x10]
push ecx
push ebx
push esi
mov dword [edi + 0x140], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, edi
call fcn.00532936
test al, al
je 0x53940e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x144], eax
push dword [ebp + 0x18]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005394b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x541b56
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x94
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x10], eax
and dword [eax + 0x598], 0
cmp dword [ebx + 4], 0
jne 0x541bce
lea eax, [ebp - 0x10]
push eax
call fcn.00541c4e
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
sub esp, 0x10
lea esi, [ebp - 0x10]
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
push 0
push 0x40000000
push ecx
push dword [eax + 0xa8]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00515cc6
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [ecx + 0x558]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.005133bf
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
lea ecx, [ebp - 0x94]
mov eax, dword [eax]
movzx esi, word [eax]
call fcn.0041b502
mov edi, 0x588
test si, si
jne 0x541c03
mov eax, dword [ebx + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebx + 0x10]
add eax, edi
push 0x10
push eax
lea eax, [ebx + 0x1a]
push eax
call fcn.00638420
mov eax, dword [ebx + 0x10]
add esp, 0xc
add eax, edi
push eax
push 0
push 0x1002
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov byte [ebx + 0x18], 1
pop ebx
mov esp, ebp
pop ebp
ret 4