joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a1c0
Capabilities:
Copy file
Move file

Disassembly:
mov eax, 0x202c
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x2028], eax
cmp byte [0x51a779], 0
je 0x49a3d5
push ebx
push 0x401
lea eax, [esp + 0x828]
push eax
mov ecx, 0x5219d0
call fcn.00413210
push 1
push str.History
push str.General
call fcn.004604a0
test eax, eax
setne bl
test bl, bl
je 0x49a235
push 0x400
push 0x4c6d80
lea ecx, [esp + 0x2c]
push ecx
push str.SaveArcFolder
push str.InterfaceMisc
call fcn.00460470
cmp word [esp + 0x24], 0
jne 0x49a247
lea edx, [esp + 0x24]
push edx
call fcn.00442700
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x24]
mov word [esp + eax + 0x1028], cx
add eax, 2
test cx, cx
jne 0x49a250
lea eax, [esp + 0x1028]
push eax
call fcn.00455810
lea ecx, [esp + 0x824]
push ecx
call fcn.00455e90
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49a281
push esi
push edi
lea edi, [esp + 0x1030]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x49a2a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
push 0
lea edx, [esp + 0x1038]
mov ecx, eax
push edx
and ecx, 3
push 0x5af
rep movsb byte es:[edi], byte [esi]
call fcn.00466860
push eax
mov eax, dword [0x51b8cc]
push eax
call fcn.00419c10
pop edi
pop esi
test al, al
je 0x49a3d4
push 0x400
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1030]
push edx
call fcn.004563d0
test bl, bl
je 0x49a317
lea eax, [esp + 0x24]
push eax
push str.SaveArcFolder
push str.InterfaceMisc
call fcn.004603a0
lea eax, [esp + 0x824]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49a321
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x826], cx
lea eax, [esp + 0x1028]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49a344
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x102a], dx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
lea edx, [esp + 4]
lea eax, [esp + 0x824]
lea ecx, [esp + 0x1028]
push edx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x49a3d4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push 0x5b0
call fcn.00466860
push eax
call fcn.004997e0
add esp, 0xc
mov ecx, 0x5072f4
call fcn.0042caa0
pop ebx
mov ecx, dword [esp + 0x2028]
xor ecx, esp
call fcn.004affec
add esp, 0x202c
ret
Function at 0x49caa0
Capabilities:
Get file attributes
Log keystrokes via polling

Disassembly:
sub esp, 0x80c
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x808], eax
cmp dword [0x51b024], 0
push ebx
mov ebx, dword [esp + 0x814]
jne 0x49cbe5
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push edi
push 0
push 0
push 0xffffffffffffffff
push ebx
call ebp
mov edi, eax
cmp edi, 1
jne 0x49cb7e
push 0x400
lea ecx, [esp + 0x18]
xor eax, eax
push ecx
push eax
push ebx
mov word [esp + 0x24], ax
call ebp
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp byte [0x51a779], 0
je 0x49cb2e
cmp eax, dword [0x5210a8]
je 0x49cb57
cmp eax, dword [0x52108c]
je 0x49cb57
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x49cb57
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, 0x5210a8
call fcn.00449ef0
cmp eax, 1
je 0x49cbe3
push 7
push str.rarreg.
lea ecx, [esp + 0x1c]
push ecx
call fcn.00455e90
push eax
call fcn.00477530
test eax, eax
jne 0x49cb7e
lea edx, [esp + 0x14]
push edx
call fcn.00499f80
jmp 0x49cbe3
push esi
push 0
call fcn.004879e0
mov ecx, dword [0x52a494]
call fcn.00470000
xor esi, esi
test edi, edi
jle 0x49cbc3
jmp 0x49cba0
push 0x400
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
call ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x52a494]
call fcn.004703f0
inc esi
cmp esi, edi
jl 0x49cba0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 1
shr eax, 0xf
and al, 1
mov byte [esp + 0x14], al
mov edx, dword [esp + 0x14]
push edx
push 0
call fcn.0048a400
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x80c]
pop ebx
xor ecx, esp
call fcn.004affec
add esp, 0x80c
ret 4

Function at 0x49cca0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x804
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
mov ebx, dword [esp + 0x80c]
push esi
xor eax, eax
push edi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x400
lea ecx, [esp + 0x10]
push ecx
push eax
xor edi, edi
call fcn.0046fed0
mov esi, eax
test esi, esi
je 0x49cd35
test edi, edi
jne 0x49ccec
mov edi, 1
jmp 0x49cd17
movzx edx, word [esp + 0xc]
push edx
mov ecx, 0x5238d0
call fcn.0041d370
test al, al
jne 0x49cd17
cmp edi, 1
jne 0x49cd16
mov ax, word [esp + 0xc]
mov cx, word [esp + 0xe]
mov word [ebx], ax
mov word [ebx + 2], cx
inc edi
push 0x400
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0046fed0
mov esi, eax
test esi, esi
jne 0x49cce1
cmp edi, 2
jne 0x49cd35
mov word [ebx], ax
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004affec
add esp, 0x804
ret 4
Function at 0x49d2c0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1804
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x1800], eax
push esi
push 0x1000
push 0
lea eax, [esp + 0x80c]
push eax
push str.rarreg.key
push 0x4c6d80
call fcn.004604c0
mov esi, eax
test esi, esi
je 0x49d351
push edi
lea ecx, [esp + 8]
push ecx
push str.Rar_RK
call fcn.0048b7e0
mov edi, eax
test edi, edi
je 0x49d341
push edi
push esi
lea edx, [esp + 0x810]
push 1
push edx
call fcn.004b29b8
push edi
call fcn.004b2d6e
add esp, 0x14
lea eax, [esp + 8]
push eax
call fcn.00499f80
lea ecx, [esp + 8]
push ecx
call fcn.00435910
push str.rarreg.key
push 0x4c6d80
call fcn.00460020
pop edi
mov ecx, dword [esp + 0x1804]
pop esi
xor ecx, esp
call fcn.004affec
add esp, 0x1804
ret

Function at 0x49d370
Capabilities:
Copy file
Move file

Disassembly:
mov eax, 0x182c
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x1828], eax
push 0
push str.AppDataCopied
push str.General
call fcn.004604a0
test eax, eax
jne 0x49d528
push esi
push 0x401
lea eax, [esp + 0x82c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x828]
push ecx
mov esi, str.Themes
call fcn.00455e90
lea esp, [esp]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x49d3d0
lea edx, [esp + 0x102c]
push edx
call fcn.00456690
xor eax, eax
pop esi
jmp 0x49d400
movzx ecx, word [esp + eax + 0x1028]
mov word [esp + eax + 0x20], cx
add eax, 2
test cx, cx
jne 0x49d400
lea eax, [esp + 0x20]
push eax
call fcn.00455810
lea eax, [esp + 0x20]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x49d426
mov ecx, dword [str.Themes]
mov edx, dword [0x4cded0]
mov dword [eax], ecx
mov ecx, dword [0x4cded4]
mov dword [eax + 4], edx
mov dx, word [0x4cded8]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x824]
push eax
call fcn.00435620
test al, al
je 0x49d517
lea ecx, [esp + 0x20]
push ecx
call fcn.00435620
test al, al
jne 0x49d517
lea eax, [esp + 0x824]
lea edx, [eax + 2]
jmp 0x49d490
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49d490
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x826], dx
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49d4b0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x22], cx
xor eax, eax
mov dword [esp + 8], eax
lea edx, [esp + 0x824]
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea edx, [esp]
lea eax, [esp + 0x20]
mov ecx, 0x14
push edx
mov dword [esp + 8], 2
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push 1
push str.AppDataCopied
push str.General
call fcn.004603c0
mov ecx, dword [esp + 0x1828]
xor ecx, esp
call fcn.004affec
add esp, 0x182c
ret
Function at 0x49d540
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x424], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0x41402
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea ecx, [esp + 8]
push ecx
push str.VerInfo
push str.General
call fcn.004604c0
lea edx, [esp + 0x24]
push edx
call fcn.00456610
lea eax, [esp + 0x24]
push eax
call fcn.00456350
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x49d598
mov ecx, dword [str.version.dat]
mov edx, dword [0x4cdefc]
mov dword [eax], ecx
mov ecx, dword [0x4cdf00]
push esi
mov dword [eax + 4], edx
lea edx, [esp + 0x28]
push 0x4c8358
push edx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], 0
call fcn.004b4604
mov esi, eax
add esp, 8
test esi, esi
je 0x49d5f3
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004b2cda
push esi
call fcn.004b2d6e
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x49d6a5
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x49d671
lea ecx, [esp + 0x20]
push ecx
push str.VerInfo
push str.General
call fcn.00460420
lea edx, [esp + 0x28]
push 0x4c9050
push edx
call fcn.004b4604
mov esi, eax
add esp, 8
test esi, esi
je 0x49d651
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004b29b8
push esi
call fcn.004b2d6e
add esp, 0x14
mov dword [0x51b018], 0
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.004affec
add esp, 0x428
ret
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
push str.VerInfo
push str.General
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.00460420
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x49d6ef
cmp dword [esp + 0x10], eax
je 0x49d6ef
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x28]
push 0x4c9050
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004b4604
mov esi, eax
add esp, 8
test esi, esi
je 0x49d6ef
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004b29b8
push esi
call fcn.004b2d6e
add esp, 0x14
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
xor eax, eax
push 1
xor esi, esi
sub ecx, edx
push eax
sbb esi, eax
push esi
push ecx
call fcn.004b0a90
mov ecx, dword [esp + 8]
xor esi, esi
sub eax, ecx
mov ecx, dword [esp + 0x20]
sbb edx, esi
push esi
add eax, ecx
push 0x989680
adc edx, esi
push edx
push eax
call fcn.004b10d0
push esi
push 0xe10
push edx
push eax
call fcn.004b10d0
push esi
push 0x18
push edx
push eax
call fcn.004b10d0
mov dword [0x51b018], eax
test eax, eax
jge 0x49d752
mov dword [0x51b018], 0x168
mov ecx, dword [esp + 0x428]
pop esi
xor ecx, esp
call fcn.004affec
add esp, 0x428
ret
Function at 0x49e280
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x810
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [0x52a494]
push esi
xor esi, esi
cmp dword [eax + 0x20], esi
je 0x49e464
push esi
push 1
push 0x529c92
mov ecx, 0x5219d0
call fcn.004169e0
cmp eax, 1
jne 0x49e464
cmp dword [0x5260e4], 3
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
push eax
jne 0x49e2ec
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, 0x5219d0
call fcn.004134d0
jmp 0x49e300
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x5219d0
call fcn.004133f0
cmp dword [esp + 4], esi
je 0x49e464
mov ecx, dword [0x52a494]
push 0x400
lea edx, [esp + 0x14]
push edx
call fcn.00470700
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49e371
push esi
push esi
push 0x7fffffff
push 0x7fffffff
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0040b2f0
cmp al, 0x43
je 0x49e34e
cmp al, 0x4e
jne 0x49e371
mov edx, dword [esp + 8]
push edx
call fcn.004b0855
add esp, 4
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004affec
add esp, 0x810
ret
push edi
push esi
push 0x4c9050
lea eax, [esp + 0x1c]
push eax
call fcn.00435dd0
mov edi, eax
cmp edi, esi
jne 0x49e3c6
lea ecx, [esp + 0x14]
push ecx
push 0x1f6
call fcn.00466860
push eax
push 0x529c92
call fcn.00499dd0
mov edx, dword [esp + 0x18]
push edx
call fcn.004b0855
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004affec
add esp, 0x810
ret
mov eax, dword [0x5260e4]
cmp eax, 3
jne 0x49e41b
push edi
push 0xff
call fcn.004b3a83
push edi
push 0xfe
call fcn.004b3a83
add esp, 0x10
cmp dword [esp + 8], esi
jbe 0x49e446
nop
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + esi*2]
push edi
push ecx
call fcn.004b3a83
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + esi*2 + 1]
push edi
push eax
call fcn.004b3a83
inc esi
add esp, 0x10
cmp esi, dword [esp + 8]
jb 0x49e3f0
jmp 0x49e446
cmp eax, 2
jne 0x49e431
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ecx
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edi
push edx
push 1
push eax
call fcn.004b29b8
add esp, 0x10
push edi
call fcn.004b2d6e
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b0855
mov edx, dword [esp + 0x18]
push edx
call fcn.004b0855
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x810]
pop esi
xor ecx, esp
call fcn.004affec
add esp, 0x810
ret
Function at 0x4a28e0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1044
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x1040], eax
mov eax, dword [esp + 0x105c]
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x105c]
push esi
mov esi, dword [esp + 0x1058]
push edi
mov edi, dword [esp + 0x1060]
push 0x3c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004b0470
add esp, 0xc
cmp byte [esp + 0x1068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x500
jne 0x4a2956
mov dword [esp + 0x18], 0x540
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
call fcn.00455e90
cmp eax, esi
jne 0x4a2990
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x800
call fcn.00407130
lea eax, [esp + 0x5c]
add esp, 0xc
mov dword [esp + 0x24], eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esp + 0x14]
mov ebx, 1
push ecx
mov dword [esp + 0x34], ebx
mov byte [0x51a77b], bl
call esi
test eax, eax
jne 0x4a29c1
cmp dword [esp + 0x20], eax
je 0x4a29c1
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call esi
mov byte [0x51a77b], 0
test eax, eax
je 0x4a2a72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x4a2a72
cmp byte [esp + 0x1068], 0
jne 0x4a2a6e
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4a2a22
mov eax, dword [0x5432f0]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x5432b0], ecx
mov dword [eax*4 + 0x543270], edx
inc eax
and eax, 0x8000000f
jns 0x4a2a1b
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x5432f0], eax
jmp 0x4a2a64
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x543270]
cmp eax, dword [esp + 0x34]
jne 0x4a2a58
mov ecx, dword [esi + 0x5432b0]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x4a2a58
mov edx, dword [esi + 0x5432b0]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x4a2a30
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a2a6e
mov dword [eax], ecx
mov al, bl
jmp 0x4a2a74
xor al, al
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004affec
add esp, 0x1044
ret 0x1c
Function at 0x4a2a90
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4c515b
mov eax, dword fs:[0]
push eax
mov eax, 0x40ac
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x40a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d98f0]
xor eax, esp
push eax
lea eax, [esp + 0x40c0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40d4]
mov ebp, dword [esp + 0x40d0]
push eax
call fcn.00455e90
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2af0
sub eax, edx
mov ecx, ebx
sar eax, 1
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4a2b04
sub ecx, esi
sar ecx, 1
lea eax, [ecx + eax + 1]
cmp eax, 0x800
jae 0x4a2cb2
lea edx, [esp + 0x10bc]
mov eax, edi
sub edx, edi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a2b30
lea ecx, [esp + 0x10bc]
push ecx
call fcn.00455810
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2b50
lea edi, [esp + 0x10bc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a2b70
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a2b70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00470340
mov dword [esp + 0x40c8], 0
push 0x1000
push 0x4c6d80
lea edx, [esp + 0x20c4]
push edx
push str.ViewerIgnoreModifications
push str.Viewer
call fcn.00460470
cmp word [esp + 0x20bc], 0
je 0x4a2be2
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x20c8]
push ecx
call fcn.00470740
push 0x400
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x1c]
call fcn.00470700
test al, al
je 0x4a2c9e
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x4a2c10
push 0x400
lea eax, [esp + 0x8c0]
push eax
lea ecx, [esp + 0xc4]
push ecx
call edi
lea edx, [esp + 0x8be]
push 0x4ce280
push edx
call fcn.004b34e6
mov esi, eax
add esp, 8
test esi, esi
je 0x4a2cde
xor eax, eax
mov word [esi], ax
add esi, 4
cmp word [esi], ax
jne 0x4a2c58
mov esi, 0x4c6f44
push 4
push ebp
lea ecx, [esp + 0x8c4]
push ecx
call fcn.0044be70
test al, al
je 0x4a2c80
push 4
lea edx, [esp + 0x10c0]
push edx
push esi
call fcn.0044be70
test al, al
jne 0x4a2ce7
push 0x400
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.00470700
test al, al
jne 0x4a2c10
mov dword [esp + 0x40c8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401e20
xor al, al
mov ecx, dword [esp + 0x40c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40a8]
xor ecx, esp
call fcn.004affec
add esp, 0x40b8
ret 8
lea esi, [esp + 0x8bc]
jmp 0x4a2c6c
mov dword [esp + 0x40c8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401e20
mov al, 1
jmp 0x4a2cb4
Function at 0x4a4990
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push 1
push esi
mov ecx, 0x545420
call fcn.004a2630
mov bl, byte [esp + 0x10]
push 0
test bl, bl
push 0x545420
sete al
movzx ecx, al
push ecx
push 0
push 0
push esi
push 0
call fcn.004a28e0
test al, al
jne 0x4a49fd
mov eax, dword [0x545428]
cmp eax, 0xffffffff
je 0x4a49e2
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x545428], 0xffffffff
push 0x80
push 0
push 0x547442
call fcn.004b0470
add esp, 0xc
pop esi
xor al, al
pop ebx
ret 8
test bl, bl
je 0x4a4a1f
push 0x545420
push 0x10000
push 0x4a34b0
call fcn.004b127b
add esp, 0xc
pop esi
mov al, 1
pop ebx
ret 8
mov eax, dword [0x545428]
cmp eax, 0xffffffff
je 0x4a4a3a
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x545428], 0xffffffff
push 0x80
push 0
push 0x547442
call fcn.004b0470
add esp, 0xc
pop esi
mov al, 1
pop ebx
ret 8

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

Disassembly:
push esi
push 0x51a780
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a4a99
push 0x40
push 0x2bc
call fcn.00466860
push eax
push 0x2bd
call fcn.00466860
push eax
mov eax, dword [0x51b8cc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
ret
push 0
push 0x51a780
mov ecx, esi
call fcn.004a3cb0
pop esi
ret
Function at 0x4a4ab0
Capabilities:
Create thread

Disassembly:
mov eax, 0x1804
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x1800], eax
push esi
mov esi, dword [esp + 0x180c]
test esi, esi
je 0x4a4b25
push 0x4ce26c
push esi
call fcn.00456290
test al, al
jne 0x4a4aec
call fcn.004a2870
test al, al
je 0x4a4b25
push 0x30
push 0x65
call fcn.00466860
push eax
push 0x596
call fcn.00466860
push eax
mov eax, dword [0x51b8cc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
mov ecx, dword [esp + 0x1800]
xor ecx, esp
call fcn.004affec
add esp, 0x1804
ret 4
cmp byte [0x51a779], 0
jne 0x4a4b74
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004a28e0
test al, al
jne 0x4a4c54
push esi
push 0x201
call fcn.00466860
push eax
call fcn.004997e0
add esp, 8
pop esi
mov ecx, dword [esp + 0x1800]
xor ecx, esp
call fcn.004affec
add esp, 0x1804
ret 4
push 1
lea ecx, [esp + 0x808]
push ecx
push str.Rar_EX
call fcn.0048b8d0
test al, al
je 0x4a4c54
push 0x400
lea edx, [esp + 0x1008]
push edx
call fcn.0048c120
lea eax, [esp + 0x804]
push eax
call fcn.0048c100
push 1
call fcn.004878e0
push 0x400
push 0x529c92
mov ecx, 0x5219d0
call fcn.00413210
mov ecx, dword [0x521bdc]
mov dword [0x527c24], ecx
mov ecx, dword [0x52a494]
push 0x4c67ac
call fcn.004703e0
push 0
push 0
mov ecx, 0x5219d0
mov dword [0x527810], 4
call fcn.00417d90
cmp byte [0x51a778], 0
jne 0x4a4c54
lea edx, [esp + 4]
push edx
push esi
call fcn.00456070
lea eax, [esp + 4]
push eax
mov ecx, eax
push ecx
call fcn.00455b50
push 0
lea edx, [esp + 8]
push edx
mov ecx, 0x547548
call fcn.004a2630
lea eax, [esp + 0x1004]
push eax
call fcn.0048c100
push 0x547548
push 0x10000
push 0x4a34b0
call fcn.004b127b
add esp, 0xc
mov ecx, dword [esp + 0x1804]
pop esi
xor ecx, esp
call fcn.004affec
add esp, 0x1804
ret 4
Function at 0x4a6020
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x54a68c], eax
mov dword [0x54a690], edx
mov dword [0x54a694], esi
mov cl, byte [edi]
test cl, cl
je 0x4a60a0
lea esp, [esp]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4e18b8]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4e18b8]
mov dword [0x54a68c], eax
mov dword [0x54a690], edx
mov dword [0x54a694], esi
mov cl, byte [edi]
test cl, cl
jne 0x4a6050
pop edi
pop esi
ret 4

Function at 0x4a60b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp word [0x526cec], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x4a614c
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x4a614a
push esi
movsx eax, byte [edi]
mov esi, dword [0x54a68c]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x54a694]
shr esi, 8
xor esi, dword [eax*4 + 0x4e18b8]
mov edx, ecx
mov eax, esi
mov dword [0x54a68c], eax
movzx eax, al
add eax, dword [0x54a690]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x54a690], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4e18b8]
or edx, 2
mov dword [0x54a694], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x4a60d5
pop esi
pop edi
pop ebx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push ebp
push edx
push eax
call fcn.00438350
pop ebp
ret 0xc
Function at 0x4aa130
Capabilities:
Read file on windows

Disassembly:
push ecx
push eax
push 4
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004b2cda
add esp, 0x10
cmp eax, 4
je 0x4aa14e
xor eax, eax
pop ecx
ret 4
mov ecx, dword [esp + 8]
lea edx, [esp]
xor eax, eax
sub ecx, edx
lea esp, [esp]
lea edx, [ecx + eax]
mov dl, byte [esp + edx]
cmp dl, byte [esp + eax]
jne 0x4aa171
inc eax
cmp eax, 4
jl 0x4aa160
xor ecx, ecx
cmp eax, 4
sete cl
mov eax, ecx
pop ecx
ret 4