joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463ffc
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push 0x2dc
mov eax, 0x4f17d7
call fcn.004cb117
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x464246
push edi
push str._s__.
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.004ce87c
push 0x140
xor ebx, ebx
lea eax, [ebp - 0x2e0]
push ebx
push eax
call fcn.004ca820
add esp, 0x1c
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x2e8], eax
lea eax, [ebp - 0x2b4]
push 0x50a7b0
push eax
call fcn.004cc160
pop ecx
pop ecx
test eax, eax
je 0x464212
lea eax, [ebp - 0x2b4]
push 0x50b008
push eax
call fcn.004cc160
pop ecx
pop ecx
test eax, eax
je 0x464212
push 0x50a79a
lea ecx, [ebp - 0x14c]
call fcn.0044dacf
push edi
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 4], ebx
call fcn.0045cd23
push 0x4f67d0
push eax
lea eax, [ebp - 0x1a0]
push eax
mov byte [ebp - 4], 1
call fcn.00462f44
lea ecx, [ebp - 0x2b4]
push ecx
push eax
lea eax, [ebp - 0x168]
push eax
mov byte [ebp - 4], 2
call fcn.00462f44
add esp, 0x24
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 3
call fcn.0044db2c
push ebx
push 1
lea ecx, [ebp - 0x168]
call fcn.0044d2a1
push ebx
push 1
lea ecx, [ebp - 0x1a0]
call fcn.0044d2a1
push ebx
push 1
lea ecx, [ebp - 0x184]
call fcn.0044d2a1
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 4
call fcn.0044d89b
cmp dword [ebp - 0x138], 0x10
mov eax, dword [ebp - 0x14c]
jae 0x46418b
lea eax, [ebp - 0x14c]
push eax
call fcn.00461eb5
pop ecx
test eax, eax
je 0x4641d6
cmp dword [ebp - 0x138], 0x10
mov eax, dword [ebp - 0x14c]
jae 0x4641ab
lea eax, [ebp - 0x14c]
push eax
push str.:_s_n
call fcn.004ce7bf
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
pop ecx
pop ecx
jae 0x4641cd
lea eax, [ebp - 0x130]
push eax
call fcn.00463ffc
pop ecx
jmp 0x4641f2
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x4641eb
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 1
lea ecx, [ebp - 0x130]
call fcn.0044d2a1
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x14c]
call fcn.0044d2a1
cmp dword [ebp - 0x2e8], ebx
jne 0x464066
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x464246
push edi
push 0x4f67b0
call fcn.004ce7bf
pop ecx
pop ecx
xor eax, eax
jmp 0x464249
xor eax, eax
inc eax
call fcn.004cb19a
ret
Function at 0x4655c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4655d2
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 0x46568d
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 + 0x4f7c90]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f7c90]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f7c90]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f7c90]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f7c90]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f7c90]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f7c90]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f7c90]
add edx, 8
sub edi, 8
dec esi
jne 0x4655f0
pop ebx
test edi, edi
je 0x4656a6
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4f7c90]
inc edx
dec edi
jne 0x465691
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x4656ac
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 + 0x4f7c90]
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 + 0x4f7c90]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x465b24
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 0x465b58
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 0x465b53
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x465b80
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x465b69
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004ca090
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 0x4668db
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x530630]
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 0x46690f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46690f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi]
test al, al
je 0x4669a6
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x466926
cmp al, 0x5c
jne 0x466928
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x46691e
cmp edi, esi
je 0x46695b
sub edi, esi
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004ca090
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + edi - 0x20c], 0
call fcn.004668db
add esp, 0x14
mov byte [ebp - 0x108], 0
pop edi
test ebx, ebx
je 0x466976
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.004cc060
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004cc070
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4669a6
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004cab85
leave
ret

Function at 0x467f4b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x467ff3
cmp dword [esi + 4], 0xffffffff
jne 0x467ff3
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.004ca000
mov al, byte [eax + esi + 0x13f]
pop ecx
cmp al, 0x5c
je 0x467f9a
cmp al, 0x2f
je 0x467f9a
push 0x50bfdc
push edi
call fcn.004cc070
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x467fbc
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x467fbc
mov eax, 0x2000000
jmp 0x467ff8
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00465949
add esp, 0x10
test eax, eax
jne 0x467fda
mov eax, dword [ebp + 0x10]
jmp 0x467ff8
push eax
call fcn.00467a20
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x467ff8
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x469de0
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 0x469df6
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x469e02
or edi, 1
push 1
call esi
test ax, ax
jns 0x469e0e
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x469e1a
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x469e26
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x46b717
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 0x46b73c
cmp ebx, dword [esi + 0x54]
je 0x46b73c
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x46b7fe
push edi
test eax, eax
je 0x46b78f
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.0046b257
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x46b7fd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x46b7fd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x46b7fd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x46b7fd
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.0046b257
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46b9fe
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xd0]
xor ebx, ebx
call fcn.0046d223
test eax, eax
jle 0x46ba53
push ebx
lea ecx, [esi + 0xd0]
mov byte [ebp - 1], 0
call fcn.0046e70a
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 0x46bab1
lea ecx, [esi + 0xd0]
inc ebx
call fcn.0046d223
cmp ebx, eax
jl 0x46ba1a
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x46bb08
sub eax, 4
je 0x46bab5
dec eax
dec eax
jne 0x46baff
push dword [ebp + 0xc]
mov byte [ebp + 8], al
lea edi, [ebp + 9]
stosb byte es:[edi], al
call fcn.004cea3e
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.OLEAUT32.dll_VariantCopyInd
lea edx, [ebp + 8]
push edx
mov byte [ebp + 8], al
mov eax, dword [ecx]
push 0x46acfb
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x46baff
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 0x46bb01
cmp dword [esi + 0x54], 0
je 0x46baff
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x10], al
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.00469de0
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 0x46baff
cmp dword [esi + 0x54], 0
je 0x46bb57
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x46bb57
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x46bb57
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc]
push str.RichEditUI
push eax
call fcn.004cebd4
pop ecx
pop ecx
test eax, eax
je 0x46bb57
mov ecx, dword [esi + 0x54]
call fcn.0047baef
test al, al
jne 0x46baff
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.0046b8af
jmp 0x46bab1
Function at 0x46e1d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x180
mov eax, 0x4f1db5
call fcn.004cb117
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.0046d810
call fcn.00469e9b
push eax
lea ecx, [ebp - 0x54]
call fcn.0046ed35
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00469ea1
mov ecx, eax
call fcn.0046e7c2
test al, al
je 0x46e30c
push edi
lea ecx, [ebp - 0x54]
call fcn.0046e814
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x54]
call fcn.0046e73e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18c], eax
push esi
cmp eax, 0xffffffff
jne 0x46e268
push str.Error_opening_file
mov ecx, ebx
call fcn.0046d9cf
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0046e724
mov al, bl
call fcn.004cb19a
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x46e27d
push esi
push str.File_is_empty
jmp 0x46e249
cmp edi, 0x400000
jbe 0x46e28d
push esi
push str.File_too_large
jmp 0x46e249
push edi
mov dword [ebp - 0x188], esi
call fcn.00468dae
pop ecx
push esi
lea ecx, [ebp - 0x188]
push ecx
push edi
push eax
push dword [ebp - 0x18c]
mov dword [ebp - 0x184], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x188], edi
je 0x46e2e8
push dword [ebp - 0x184]
call fcn.004cacbf
pop ecx
mov ecx, ebx
call fcn.0046d810
push esi
push str.Could_not_read_file
jmp 0x46e249
push dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x184]
call fcn.0046e01e
push dword [ebp - 0x184]
mov bl, al
call fcn.004cacbf
pop ecx
jmp 0x46e252
call fcn.00469ea1
push eax
lea ecx, [ebp - 0x54]
call fcn.0046e7f7
call fcn.00469ea7
test al, al
je 0x46e32a
call fcn.00469ead
jmp 0x46e33e
push 2
push esi
lea ecx, [ebp - 0x54]
call fcn.0046e73e
push eax
call fcn.004741b2
add esp, 0xc
mov dword [ebp - 0x184], eax
cmp eax, esi
jne 0x46e353
push esi
push str.Error_opening_zip_file
jmp 0x46e249
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x18c]
push eax
push 1
push edi
push dword [ebp - 0x184]
call fcn.0047299a
add esp, 0x14
test eax, eax
je 0x46e381
push esi
push str.Could_not_find_ziped_file
jmp 0x46e249
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x188], eax
cmp eax, esi
je 0x46e275
cmp eax, 0x400000
ja 0x46e285
push eax
call fcn.00468dae
push 3
push dword [ebp - 0x188]
mov edi, eax
push edi
push dword [ebp - 0x18c]
push dword [ebp - 0x184]
call fcn.00474210
add esp, 0x18
cmp eax, esi
je 0x46e3f4
cmp eax, 0x600
je 0x46e3f4
push edi
call fcn.004cacbf
pop ecx
call fcn.00469ea7
test al, al
jne 0x46e3e9
push dword [ebp - 0x184]
call fcn.00474248
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x46e249
call fcn.00469ea7
test al, al
jne 0x46e409
push dword [ebp - 0x184]
call fcn.00474248
pop ecx
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp - 0x188]
push edi
call fcn.0046e01e
push edi
jmp 0x46e2ff
Function at 0x47176f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x47177d
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 0x471838
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 + 0x4fa090]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4fa090]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4fa090]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4fa090]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4fa090]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4fa090]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4fa090]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4fa090]
add edx, 8
sub edi, 8
dec esi
jne 0x47179b
pop ebx
test edi, edi
je 0x471851
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4fa090]
inc edx
dec edi
jne 0x47183c
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x471a7f
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 0x471ab3
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 0x471aae
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x471adb
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x471ac4
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004ca090
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 0x4728f8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x530630]
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 0x47298c
mov al, byte [esi]
test al, al
je 0x47298c
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x47292a
cmp al, 0x5c
jne 0x47292c
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x472922
cmp edi, esi
je 0x47295f
sub edi, esi
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004cdd16
lea eax, [ebp - 0x108]
push eax
push ebx
mov byte [ebp + edi - 0x108], 0
call fcn.004728f8
add esp, 0x14
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004cc060
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004cc070
add esp, 0x10
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004cab85
leave
ret
Function at 0x473e0f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x473e8a
cmp dword [esi + 4], 0xffffffff
jne 0x473e8a
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x50bfdc
push edi
call fcn.004cc070
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x473e5c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x473e5c
mov eax, 0x2000000
jmp 0x473e8f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004718a6
add esp, 0x10
test eax, eax
jne 0x473e7a
mov eax, dword [ebp + 0x10]
jmp 0x473e8f
push eax
call fcn.004739fe
mov dword [esi], eax
mov eax, dword [0x532754]
pop ecx
jmp 0x473e8f
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x47bcf7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x314], ebx
je 0x47bd5e
cmp dword [ebp + 8], 0x100
jne 0x47bd4d
cmp byte [ebp + 0xc], 0xd
jne 0x47bd4d
cmp byte [esi + 0x31a], bl
je 0x47bd34
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x47bd4d
cmp byte [esi + 0x31b], bl
jne 0x47bd4d
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x47bd49
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.0046b257
xor eax, eax
jmp 0x47bd61
mov eax, dword [esi + 0x314]
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 0x486f4c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x530630]
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 0x486fbc
cmp dword [esi + 0x10], ebx
je 0x486fbc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
mov eax, edi
call fcn.004cbbc0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x486fbc
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x138
call fcn.0046e9f8
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.0046b257
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cab85
leave
ret 0x10
Function at 0x494b7b
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 0x494ba0
cmp eax, edi
jge 0x494b98
mov eax, esi
call fcn.00494539
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x494bcd
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x494bad
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x494bec
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x494bda
xor eax, eax
jmp 0x494be2
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 0x494bd0
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 0x494c1e
mov eax, str.zlib_corrupt
call fcn.00491e11
jmp 0x494c59
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x494c2e
mov eax, str.read_past_buffer
jmp 0x494c17
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x494c43
mov ecx, edi
call fcn.0049456f
test eax, eax
je 0x494c59
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004ca090
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 0x498e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x498e9a
cmp byte [esi + 0x5c], 0x77
jne 0x498e9a
cmp dword [esi + 0x10], 0
jne 0x498e86
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.004cb4c7
add esp, 0x10
cmp eax, 0x4000
je 0x498e7f
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x10], 0x4000
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call fcn.0049ac60
add esp, 0xc
pop esi
pop ebp
ret
mov eax, 0xfffffffe
pop esi
pop ebp
ret

Function at 0x498eb0
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
jne 0x498f03
cmp dword [esi + 4], 0
jne 0x498f0c
call fcn.004cfb1b
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.004d2bc4
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x498f07
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.004d2952
add esp, 4
test eax, eax
je 0x498f03
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret