joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8040
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.00526eb0
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0x1048
push 0x579538
push ebx
call fcn.00523990
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, 0x48
jle 0x4e8071
mov ecx, 0x48
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
add ecx, edi
lea esi, [ebx + 8]
mov dword [esp + 0x18], 6
push ebp
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4e8090
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4e809f
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4e80ae
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4e80bd
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4e80ca
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4e80d9
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4e80e8
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4e80f7
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4e8104
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4e8113
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4e8122
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4e8131
mov eax, edi
xor dword [esi], edx
add esi, 0xc
sub dword [esp + 0x1c], 1
jne 0x4e8086
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor esi, esi
pop ebp
mov edi, edi
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004e6e30
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 8
cmp esi, 0x12
jl 0x4e8150
xor esi, esi
pop edi
lea eax, [esp + 8]
push ebx
push eax
call fcn.004e6e30
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 8
cmp esi, 0x400
jl 0x4e8178
pop esi
pop ebx
add esp, 8
ret
Function at 0x4e9b50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00526eb0
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x4e9b9f
mov eax, 1
mov dword [esi], ebx
jmp 0x4e9ba1
mov ebx, dword [esi]
test ecx, ecx
je 0x4e9c60
mov edi, dword [ebx + 0x40]
cmp edi, 0x80
jle 0x4e9bc8
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call fcn.0045f290
add esp, 0xc
mov ebp, dword [esp + 0xa8]
cmp edi, ebp
jge 0x4e9c01
mov ecx, dword [esp + 0x10]
push ecx
lea edi, [esi + 4]
push ebx
push edi
call fcn.004a42c0
mov edx, dword [esp + 0x20]
push ebp
push edx
push edi
call fcn.004a43e0
lea ebp, [esi + 0x34]
push ebp
lea eax, [esi + 0x38]
push eax
push edi
call fcn.004a43f0
add esp, 0x24
jmp 0x4e9c3c
cmp ebp, 0x80
jbe 0x4e9c1d
push str.len_0__len__int_sizeof_ctx__key_
push 0x5c
push str..cryptohmachmac.c
call fcn.0045f290
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esi + 0x38]
push edx
call fcn.00523990
mov eax, dword [esp + 0xb4]
lea ebp, [esi + 0x34]
add esp, 0xc
mov dword [ebp], eax
mov ebp, dword [ebp]
cmp ebp, 0x80
je 0x4e9c64
mov ecx, 0x80
sub ecx, ebp
push ecx
lea edx, [esi + ebp + 0x38]
push 0
push edx
call fcn.00523080
add esp, 0xc
jmp 0x4e9c64
test eax, eax
je 0x4e9ce0
xor eax, eax
jmp 0x4e9c70
mov cl, byte [esi + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x4e9c70
mov ebp, dword [esp + 0x10]
push ebp
lea edi, [esi + 0x14]
push ebx
push edi
call fcn.004a42c0
mov edx, dword [ebx + 0x40]
push edx
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004a43e0
add esp, 0x18
xor eax, eax
jmp 0x4e9cb0
mov cl, byte [esi + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x4e9cb0
push ebp
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.004a42c0
mov edx, dword [ebx + 0x40]
push edx
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004a43e0
add esp, 0x18
lea ecx, [esi + 0x14]
push ecx
add esi, 4
push esi
call fcn.004a44e0
mov ecx, dword [esp + 0xa0]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00522f5c
add esp, 0x8c
ret
Function at 0x4ec460
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x4ec479
mov edi, ebx
mov ebx, eax
jmp 0x4ec47b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x4ec491
push eax
push esi
call fcn.00498e10
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x4ec4ad
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x4ec498
cmp eax, dword [edi + 4]
jge 0x4ec4c2
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4ec4b2
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x4ec4e6
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x4ec4e6
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x4ec4d5
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4f35b1
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
jge 0x4f35c7
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x4f35d3
or edi, 1
push 1
call esi
test ax, ax
jge 0x4f35df
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x4f35eb
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x4f35f7
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x4f513e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
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 0x4f5163
cmp ebx, dword [esi + 0x54]
je 0x4f5163
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x4f5225
push edi
test eax, eax
je 0x4f51b6
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.004f4c70
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x4f5224
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x4f5224
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x4f5224
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x4f5224
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.004f4c70
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4f5422
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call fcn.004f6d14
test eax, eax
jle 0x4f5471
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.004f8b26
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x4f54d2
mov ecx, edi
inc ebx
call fcn.004f6d14
cmp ebx, eax
jl 0x4f5440
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4f552b
sub eax, 4
je 0x4f54d6
dec eax
dec eax
jne 0x4f5522
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0052cc8f
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x4f46f7
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4f5522
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x4f5524
cmp dword [esi + 0x54], 0
je 0x4f5522
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.004f35b1
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4f5522
cmp dword [esi + 0x54], 0
je 0x4f557a
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4f557a
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x4f557a
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00529665
pop ecx
pop ecx
test eax, eax
je 0x4f557a
mov ecx, dword [esi + 0x54]
call fcn.0050921f
test al, al
jne 0x4f5522
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.004f52d6
jmp 0x4f54d2
Function at 0x4f7e00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x5af640]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0xc
mov eax, 0x547465
call fcn.00522f6b
mov edi, dword [ebp + 0x2c0]
mov ebx, ecx
call fcn.004f73e9
call fcn.004f3748
push eax
lea ecx, [ebp + 0x230]
call fcn.004f8f09
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004f374e
mov ecx, eax
call fcn.004f8c7c
test al, al
je 0x4f7f62
push edi
lea ecx, [ebp + 0x230]
call fcn.004f8d0c
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp + 0x230]
call fcn.004f8b0a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
push esi
cmp eax, 0xffffffff
jne 0x4f7ed6
push str.Error_opening_file
mov ecx, ebx
call fcn.004f75bf
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call fcn.004f8b57
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.00522f5c
add ebp, 0x2b8
leave
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x4f7eeb
push esi
push str.File_is_empty
jmp 0x4f7e97
cmp edi, 0x400000
jbe 0x4f7efb
push esi
push 0x57dd44
jmp 0x4f7e97
push edi
mov dword [ebp - 0x14], esi
call fcn.004508c5
pop ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x4f7f41
push dword [ebp - 0x10]
call fcn.004508d0
pop ecx
mov ecx, ebx
call fcn.004f73e9
push esi
push str.Could_not_read_file
jmp 0x4f7e97
push dword [ebp + 0x2c4]
mov ecx, ebx
push edi
push dword [ebp - 0x10]
call fcn.004f7caf
push dword [ebp - 0x10]
mov bl, al
call fcn.004508d0
pop ecx
jmp 0x4f7ea0
call fcn.004f374e
push eax
lea ecx, [ebp + 0x230]
call fcn.004f8cf2
call fcn.004f3754
test al, al
je 0x4f7f83
call fcn.004f375a
jmp 0x4f7f9a
push 2
push esi
lea ecx, [ebp + 0x230]
call fcn.004f8b0a
push eax
call fcn.00503bb8
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x4f7fac
push esi
push str.Error_opening_zip_file
jmp 0x4f7e97
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.005022b6
add esp, 0x14
test eax, eax
je 0x4f7fd1
push esi
push str.Could_not_find_ziped_file
jmp 0x4f7e97
mov eax, dword [ebp + 0x22c]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x4f7ee3
cmp eax, 0x400000
ja 0x4f7ef3
push eax
call fcn.004508c5
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.00503c15
add esp, 0x18
cmp eax, esi
je 0x4f8038
cmp eax, 0x600
je 0x4f8038
push edi
call fcn.004508d0
pop ecx
call fcn.004f3754
test al, al
jne 0x4f802d
push dword [ebp - 0x10]
call fcn.00503c4f
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x4f7e97
call fcn.004f3754
test al, al
jne 0x4f804a
push dword [ebp - 0x10]
call fcn.00503c4f
pop ecx
push dword [ebp + 0x2c4]
mov ecx, ebx
push dword [ebp - 0x14]
push edi
call fcn.004f7caf
push edi
jmp 0x4f7f55
Function at 0x500e8f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x500e9a
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x500f55
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 + 0x580710]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x580710]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x580710]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x580710]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x580710]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x580710]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x580710]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x580710]
inc edx
sub edi, 8
dec esi
jne 0x500eba
pop ebx
test edi, edi
je 0x500f6e
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x580710]
inc edx
dec edi
jne 0x500f59
pop edi
not eax
pop esi
ret

Function at 0x501405
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 0x501439
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 0x501434
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x501461
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x50144a
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00523990
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x5021fe
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5af640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5022a8
movzx ecx, word [esi]
test cx, cx
je 0x5022a8
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x50223c
cmp cx, 0x5c
jne 0x50223e
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x502230
cmp eax, esi
je 0x50227c
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005234b2
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.005021fe
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0052cce9
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0052ccbb
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00522f5c
leave
ret
Function at 0x5037d9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x503854
cmp dword [esi + 4], 0xffffffff
jne 0x503854
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x5883bc
push edi
call fcn.0052ccbb
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x503826
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x503826
mov eax, 0x2000000
jmp 0x503859
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050121b
add esp, 0x10
test eax, eax
jne 0x503844
mov eax, dword [ebp + 0x10]
jmp 0x503859
push eax
call fcn.005033d5
mov dword [esi], eax
mov eax, dword [0x5b6600]
pop ecx
jmp 0x503859
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x5093dd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x509445
cmp dword [ebp + 8], 0x100
jne 0x509434
cmp word [ebp + 0xc], 0xd
jne 0x509434
cmp byte [esi + 0x4da], bl
je 0x50941b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x509434
cmp byte [esi + 0x4db], bl
jne 0x509434
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x509430
push ebx
push ebx
push ebx
push 0x5810c0
push esi
call fcn.004f4c70
xor eax, eax
jmp 0x509448
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x513ea3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5af640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x513f14
cmp dword [esi + 0x10], ebx
je 0x513f14
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.005296d0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x513f14
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.004f8cd0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004f4c70
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00522f5c
leave
ret 0x10
Function at 0x51d982
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x51d9a7
cmp eax, edi
jge 0x51d99f
mov eax, esi
call fcn.0051d336
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x51d9c9
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x51d9ae
cmp ecx, 4
jge 0x51d9e8
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x51d9d6
xor eax, eax
jmp 0x51d9de
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x51d9cc
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x51da1a
mov eax, str.zlib_corrupt
call fcn.0051af53
jmp 0x51da55
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x51da2a
mov eax, str.read_past_buffer
jmp 0x51da13
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x51da3f
mov ecx, edi
call fcn.0051d361
test eax, eax
je 0x51da55
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00523990
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x522f5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5af640]
jne 0x522f66
repz ret
jmp fcn.005306cc

Function at 0x528459
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x52848a
call fcn.005247b5
mov dword [eax], esi
call fcn.005247a2
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0052347c
add esp, 0x14
push 0x16
pop eax
jmp 0x5284df
test dword [ebp + 0xc], 0xfffffff9
jne 0x528466
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5284b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005247c8
pop ecx
call fcn.005247a2
mov eax, dword [eax]
jmp 0x5284df
test al, 0x10
jne 0x5284dd
test al, 1
je 0x5284dd
test byte [ebp + 0xc], 2
je 0x5284dd
call fcn.005247b5
mov dword [eax], 5
call fcn.005247a2
mov dword [eax], 0xd
jmp 0x5284ae
xor eax, eax
pop esi
pop ebp
ret
Function at 0x528ef8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x528f29
call fcn.005247b5
mov dword [eax], esi
call fcn.005247a2
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0052347c
add esp, 0x14
push 0x16
pop eax
jmp 0x528f7e
test dword [ebp + 0xc], 0xfffffff9
jne 0x528f05
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x528f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005247c8
pop ecx
call fcn.005247a2
mov eax, dword [eax]
jmp 0x528f7e
test al, 0x10
jne 0x528f7c
test al, 1
je 0x528f7c
test byte [ebp + 0xc], 2
je 0x528f7c
call fcn.005247b5
mov dword [eax], 5
call fcn.005247a2
mov dword [eax], 0xd
jmp 0x528f4d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x53feff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0052fe78
and dword [ebp - 4], 0
cmp dword [0x5b745c], 0
mov ebx, eax
jne 0x53ffb0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x540061
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5879a8
push edi
call esi
test eax, eax
je 0x540061
push eax
call fcn.0052fe06
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5b745c], eax
call esi
push eax
call fcn.0052fe06
mov dword [esp], 0x587984
push edi
mov dword [0x5b7460], eax
call esi
push eax
call fcn.0052fe06
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5b7464], eax
call esi
push eax
call fcn.0052fe06
pop ecx
mov dword [0x5b746c], eax
test eax, eax
je 0x53ffb0
push 0x587950
push edi
call esi
push eax
call fcn.0052fe06
pop ecx
mov dword [0x5b7468], eax
mov eax, dword [0x5b7468]
cmp eax, ebx
je 0x540008
cmp dword [0x5b746c], ebx
je 0x540008
push eax
call fcn.0052fe81
push dword [0x5b746c]
mov esi, eax
call fcn.0052fe81
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x540008
test edi, edi
je 0x540008
call esi
test eax, eax
je 0x53ffff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x53ffff
test byte [ebp - 0xc], 1
jne 0x540008
or dword [ebp + 0x10], 0x200000
jmp 0x540041
mov eax, dword [0x5b7460]
cmp eax, ebx
je 0x540041
push eax
call fcn.0052fe81
pop ecx
test eax, eax
je 0x540041
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x540041
mov eax, dword [0x5b7464]
cmp eax, ebx
je 0x540041
push eax
call fcn.0052fe81
pop ecx
test eax, eax
je 0x540041
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5b745c]
call fcn.0052fe81
pop ecx
test eax, eax
je 0x540061
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x540063
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret