joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ecb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x45ece4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45ece4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x45eddc
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x45ed03
cmp dx, 0x5c
jne 0x45ed05
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x45ecf7
cmp edi, ebx
je 0x45ed53
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004ebfd0
add esp, 0xc
cmp edi, 0x208
jae 0x45edec
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0045ecb0
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x45ed80
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x45ed70
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x45ed82
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45eda0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x45eddc
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.00460412
mov esp, ebp
pop ebp
ret
call fcn.004608bc
int3

Function at 0x462085
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4620b7
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x463f97
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 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x463fba
or esi, 1
push 1
call edi
test ax, ax
jns 0x463fc6
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x463fd2
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x463fde
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x46581b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x18c]
call fcn.00461af5
mov edi, dword [ebp + 8]
test eax, eax
jle 0x465871
push ebx
lea ecx, [esi + 0x18c]
mov byte [ebp + 0xb], 0
call fcn.004624c9
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x4658cf
lea ecx, [esi + 0x18c]
inc ebx
call fcn.00461af5
cmp ebx, eax
jl 0x46583a
sub edi, 0x100
je 0x465935
sub edi, 4
je 0x4658d3
dec edi
sub edi, 1
jne 0x46592c
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.004fe550
pop ecx
mov ecx, dword [esi + 0x10c]
lea edx, [ebp + 8]
push reloc.OLEAUT32.dll_VariantCopyInd
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x4669bd
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x46592c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x46592e
cmp dword [esi + 0x110], 0
je 0x46592c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
and dword [ebp - 0x1c], 0
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x124]
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.00463f97
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x110]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x46592c
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x46598e
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x46598e
mov ecx, dword [esi + 0x110]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x46598e
mov ecx, dword [esi + 0x110]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004ecebb
pop ecx
pop ecx
test eax, eax
je 0x46598e
mov ecx, dword [esi + 0x110]
call fcn.004720f8
test al, al
jne 0x46592c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.004663f4
jmp 0x4658cf
Function at 0x46619c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [edi]
je 0x4661c3
cmp esi, dword [edi + 0x110]
je 0x4661c3
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x110]
cmp esi, eax
je 0x4662a7
test eax, eax
je 0x466229
and dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x110]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0x110]
call fcn.00465f80
and dword [edi + 0x110], 0
test esi, esi
je 0x4662a7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x4662a7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x4662a7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x4662a7
and dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 0x110], esi
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x110]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0x110]
call fcn.00465f80
pop edi
pop esi
leave
ret 4
Function at 0x4733bf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4d4], edi
je 0x473429
cmp dword [ebp + 8], 0x100
jne 0x473418
cmp word [ebp + 0xc], 0xd
jne 0x473418
cmp byte [esi + 0x4da], 0
je 0x4733ff
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x473418
cmp byte [esi + 0x4db], 0
jne 0x473418
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x473414
push edi
push edi
push edi
push str.return
push esi
call fcn.00465f80
xor eax, eax
jmp 0x47342c
mov eax, dword [esi + 0x4d4]
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 0x473787
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x579258]
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 0x473841
movzx eax, word [esi]
test ax, ax
je 0x473841
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x4737c9
cmp dx, 0x5c
jne 0x4737cb
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4737bd
cmp edi, esi
je 0x473814
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00501dd2
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x47384f
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00473787
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00507179
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00507108
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00460412
leave
ret
call fcn.004608bc
int3

Function at 0x473eb5
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x5363f7
call fcn.0046133c
mov ebx, ecx
lea esi, [ebx + 0x340]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
cmp dword [ebx], 0
jne 0x473f4b
cmp dword [ebx + 4], 0xffffffff
jne 0x473f4b
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x53dd54
push edi
call fcn.00507108
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
jne 0x473f1c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x473f1c
mov edi, 0x2000000
jmp 0x473f50
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004764db
add esp, 0x10
test eax, eax
jne 0x473f3a
mov edi, dword [ebp - 0x10]
jmp 0x473f50
push eax
call fcn.00476bfa
mov edi, dword [0x583090]
pop ecx
mov dword [ebx], eax
jmp 0x473f50
mov edi, 0x1000000
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.00461305
ret 0xc
Function at 0x4765e8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x47661b
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x476616
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x476645
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004ebfd0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x4767d3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4767e1
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4768a0
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 + 0x5483d8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5483d8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5483d8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5483d8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5483d8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5483d8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5483d8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5483d8]
sub edi, 1
jne 0x4767f9
pop edi
test esi, esi
je 0x4768bc
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5483d8]
inc edx
sub esi, 1
jne 0x4768a4
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4778a6
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x53645e
call fcn.00461370
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00477c36
call fcn.00463dcc
push eax
lea ecx, [ebp - 0x94]
call fcn.0046228f
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00463dd2
mov ecx, eax
call fcn.00462a7f
test al, al
je 0x4779c0
push ebx
lea ecx, [ebp - 0x94]
call fcn.004624f8
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.004624d8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
cmp eax, 0xffffffff
jne 0x477929
mov eax, str.Error_opening_file
jmp 0x4779a1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x47793e
mov eax, str.File_is_empty
jmp 0x4779a1
cmp edi, 0x400000
jbe 0x47794d
mov eax, str.File_too_large
jmp 0x4779a1
and dword [ebp - 0x2c8], 0
push edi
call fcn.0046048d
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x4779a9
push ebx
call fcn.00460496
pop ecx
mov ecx, esi
call fcn.00477c36
mov eax, str.Could_not_read_file
push 0
push eax
jmp 0x477aa0
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00477aeb
push dword [ebp - 0x2cc]
jmp 0x477ace
call fcn.00463dd2
push eax
lea ecx, [ebp - 0x94]
call fcn.004624db
call fcn.00463e89
test al, al
je 0x4779e1
call fcn.00463dd8
jmp 0x4779f8
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004624d8
push eax
call fcn.00473f61
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x477a09
push eax
push str.Error_opening_zip_file
jmp 0x477aa0
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.00473903
add esp, 0x14
test eax, eax
je 0x477a30
push 0
push str.Could_not_find_ziped_file
jmp 0x477aa0
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x477a42
push ebx
push str.File_is_empty
jmp 0x477aa0
cmp ebx, 0x400000
jbe 0x477a53
push 0
push str.File_too_large
jmp 0x477aa0
push ebx
call fcn.0046048d
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.004743e0
add esp, 0x18
test eax, eax
je 0x477aab
cmp eax, 0x600
je 0x477aab
push dword [ebp - 0x2c8]
call fcn.00460496
pop ecx
call fcn.00463e89
test al, al
jne 0x477a99
push edi
call fcn.00473734
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00477c5e
mov bl, al
jmp 0x477ad6
call fcn.00463e89
test al, al
jne 0x477abb
push edi
call fcn.00473734
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.00477aeb
push edi
mov bl, al
call fcn.00460496
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004623ca
mov al, bl
call fcn.0046131a
ret 8
Function at 0x481d18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x481d46
cmp eax, edi
jge 0x481d3a
push esi
call fcn.004800b6
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x481d6c
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x481d4f
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x481d86
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x481d77
xor dl, dl
jmp 0x481d7c
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x481d6e
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x481dbb
push str.zlib_corrupt
call fcn.0047ff73
add esp, 4
jmp 0x481df8
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x481dcb
push str.read_past_buffer
jmp 0x481db1
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x481de2
push edi
push esi
call fcn.0047ff82
pop ecx
pop ecx
test eax, eax
je 0x481df8
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004ebfd0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x495619
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x495686
cmp dword [esi + 0x10], 0
je 0x495686
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00461420
mov ebx, esp
test ebx, ebx
je 0x495686
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.0046246c
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00465f80
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460412
leave
ret 0x10

Function at 0x49e606
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x583263], 0
jne 0x49e6b5
push esi
push 0x54e550
call fcn.004abd09
mov dword [esp], 0x54e3cc
call fcn.004abd09
mov dword [esp], 0x54e648
call fcn.004abd09
mov dword [esp], 0x54e66c
call fcn.004abd09
mov dword [esp], 0x54e574
call fcn.004abd09
mov esi, 0x54e430
push esi
call fcn.004b6001
push esi
call fcn.004b6001
push 0x54e450
call fcn.004b6001
push 0x54e470
call fcn.004b6001
push 0x54e598
call fcn.004b6001
push 0x54e3f0
call fcn.004b6001
push 0x54e410
call fcn.004b6001
push 0x54e5f0
call fcn.004b6001
push 0x54e610
call fcn.004b6001
add esp, 0x28
mov byte [0x583263], 1
pop esi
jmp 0x4be33d
ret
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x4be345
mov dword [edx*4 + 0x587880], ecx
inc edx
cmp edx, 0x100
jb 0x4be340
mov esi, 0x800
jmp 0x4be38d
mov ecx, dword [edx*4 + 0x587480]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x587880]
mov dword [edx*4 + 0x587880], ecx
inc edx
cmp edx, esi
jb 0x4be371
mov eax, 0x530230
mov esi, 0x530150
mov dword [0x58786c], eax
mov dword [0x587864], eax
mov dword [0x587868], esi
call fcn.004d6b9e
mov ecx, dword [0x587864]
test eax, eax
cmove ecx, esi
mov dword [0x587864], ecx
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x49f6a5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x49f6b4
Capabilities:
Copy file
Delete file

Disassembly:
push 0x44
mov eax, 0x53866d
call fcn.00461370
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x49f7a5
cmp dword [esi + 0x10], 0x104
ja 0x49f7a5
push esi
call fcn.0049f697
pop ecx
test al, al
jne 0x49f6ec
inc al
jmp 0x49f7a7
xor edi, edi
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.004600f4
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push edi
add eax, 2
mov dword [ebp - 4], edi
push eax
call fcn.00460254
push 0x1e
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.004ecad0
mov eax, dword [ebp - 0x40]
add esp, 0xc
and eax, 0xffbf
mov dword [ebp - 0x3a], edi
or eax, 0x414
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x36], edi
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x44], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp ecx, 8
jb 0x49f7a1
mov eax, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
cmp ecx, 0x1000
jb 0x49f798
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00405540
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call fcn.00460404
pop ecx
pop ecx
mov al, bl
jmp 0x49f7a7
xor al, al
call fcn.0046131a
ret
Function at 0x4a17f8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa8], 5
jne 0x4a181f
cmp dword [ebp + 0xc], 0
je 0x4a181f
mov ecx, esi
call fcn.004a1664
mov eax, 0x80004005
jmp 0x4a1941
xor ecx, ecx
push edi
cmp dword [esi + 0x64], ecx
jne 0x4a184e
push 0x54ef0c
call fcn.004a1aee
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x4a193e
mov edx, dword [ecx]
lea eax, [esi + 0x24]
push eax
call dword [edx + 0x14]
jmp 0x4a193e
cmp byte [esi + 0x74], cl
jne 0x4a1863
cmp byte [esi + 0x80], cl
jne 0x4a1863
cmp byte [esi + 0x8c], cl
je 0x4a18ca
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x4a186e
mov eax, dword [eax]
push ecx
push 0x80
push 3
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a18ca
xor edx, edx
lea ecx, [esi + 0x78]
cmp byte [esi + 0x74], dl
cmovne edx, ecx
xor eax, eax
cmp byte [esi + 0x80], al
lea ecx, [esi + 0x84]
push edx
cmovne eax, ecx
xor ecx, ecx
cmp byte [esi + 0x8c], cl
push eax
lea eax, [esi + 0x90]
cmovne ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x6d], 0
je 0x4a18e5
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x4a18db
mov eax, dword [eax]
push dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edi, [esi + 0x54]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4a18f2
mov eax, dword [edi]
push eax
push str.FileDone:_s_n
call fcn.004a1aee
pop ecx
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x4a193e
push dword [esi + 0xa4]
mov eax, dword [ecx]
push dword [esi + 0xa0]
push edi
call dword [eax + 0x1c]
test al, al
jne 0x4a1926
mov eax, 0x80004005
jmp 0x4a1940
mov ecx, dword [esi + 0xac]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x4b1c1b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533d10
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x579258]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x30]
mov dword [esi], vtable.NCompress::NLzma::CDecoder.0
push 0x579588
push eax
mov dword [esi + 4], vtable.NCompress::NLzma::CDecoder.1.0
mov dword [esi + 8], vtable.NCompress::NLzma::CDecoder.2.0
mov dword [esi + 0xc], vtable.NCompress::NLzma::CDecoder.3.0
mov dword [esi + 0x10], vtable.NCompress::NLzma::CDecoder.4.0
mov dword [esi + 0x14], vtable.NCompress::NLzma::CDecoder.5.0
mov dword [esi + 0x18], vtable.NCompress::NLzma::CDecoder.6.0
call fcn.004d00ae
push dword [esi + 0x24]
call fcn.00405b80
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4b1c9a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret