joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa210
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
mov eax, 0x3260
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x325c], eax
cmp byte [esp + 0x3268], 0
mov dword [0x533b68], 1
je 0x4aa389
push ebp
push 0
push 0x800
lea eax, [esp + 0x1268]
push eax
call fcn.0049e990
push 0x800
lea ecx, [esp + 0x1264]
push ecx
call fcn.004601c0
lea edx, [esp + 0x1260]
push edx
lea eax, [esp + 0x2264]
push str._sRar_
push eax
mov edx, 0x800
call fcn.0041cb70
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4aa381
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
lea ebx, [ebx]
cmp dword [0x533b68], 1
jne 0x4aa37f
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x20]
push 0x800
lea edx, [esp + 0x126c]
push edx
lea eax, [esp + 0x270]
cmp ecx, 8
push eax
setae byte [esp + 0x1b]
call fcn.0047f480
push 0x800
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x270]
push edx
call fcn.0047f4c0
test byte [esp + 0x18], 0x10
je 0x4aa35e
push 6
lea eax, [esp + 0x48]
push str.Rar_DI
push eax
call fcn.004c438a
add esp, 0xc
lea ecx, [esp + 0x268]
test eax, eax
push ecx
sete bl
call esi
test eax, eax
jne 0x4aa36b
cmp byte [esp + 0xf], al
je 0x4aa34b
cmp byte [esp + 0x3270], al
je 0x4aa34f
test bl, bl
je 0x4aa36b
lea edx, [esp + 0x268]
push edx
call fcn.0049f950
jmp 0x4aa36b
lea eax, [esp + 0x268]
push eax
call fcn.0049f500
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4aa2c0
pop ebx
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
cmp byte [esp + 0x3264], 0
jne 0x4aa3b7
cmp byte [0x4f2cb8], 0
je 0x4aa3b7
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
call fcn.004a6c20
mov byte [0x4f2cb8], al
mov ecx, dword [esp + 0x325c]
xor ecx, esp
mov dword [0x533b68], 0
call fcn.004c1302
add esp, 0x3260
ret 8
Function at 0x4ad830
Capabilities:
Copy file

Disassembly:
mov eax, 0x2004
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x2000], eax
cmp byte [0x4f2cb8], 0
push ebp
mov ebp, dword [sym.imp.USER32.dll_MessageBoxW]
push esi
mov esi, dword [esp + 0x2010]
je 0x4ad892
cmp byte [0x54b1d4], 0
jne 0x4ad892
push 0x24
push 0x5f0
call fcn.00475570
push eax
push 0x5f1
call fcn.00475570
push eax
mov eax, dword [0x534ca4]
push eax
call ebp
cmp eax, 6
jne 0x4ad9d8
push ebx
push edi
push 0x800
lea ecx, [esp + 0x1014]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarreg.key
lea edx, [esp + 0x1018]
push edx
call fcn.004607f0
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea eax, [esp + 0x1014]
push eax
push esi
call edi
push 1
push 0x800
lea ecx, [esp + 0x18]
test eax, eax
push ecx
setne bl
call fcn.00460a10
push 0x800
lea edx, [esp + 0x14]
push edx
call fcn.004601c0
push 0x800
push str.rarreg.key
lea eax, [esp + 0x18]
push eax
call fcn.0047f4c0
test bl, bl
je 0x4ad91c
lea ecx, [esp + 0x10]
push ecx
call fcn.0043c760
jmp 0x4ad945
push 0
lea edx, [esp + 0x14]
push edx
push esi
call edi
xor eax, eax
jmp 0x4ad930
movzx ecx, word [esp + eax + 0x10]
mov word [esp + eax + 0x1010], cx
add eax, 2
test cx, cx
jne 0x4ad930
mov eax, dword [0x534ca4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x534ca4]
mov esi, dword [sym.imp.USER32.dll_FlashWindow]
push 1
push ecx
call esi
push 1
lea edx, [esp + 0x1014]
push edx
call fcn.00420780
mov byte [0x4f2cb8], al
mov eax, dword [0x534ca4]
push 0
push eax
call esi
mov ecx, 0x53f4e8
call fcn.00451660
cmp byte [0x4f2cb8], 0
pop edi
pop ebx
je 0x4ad9b8
push 0x30
push 0x368
call fcn.00475570
push eax
push 0x367
call fcn.00475570
mov ecx, dword [0x534ca4]
push eax
push ecx
call ebp
jmp 0x4ad9d8
lea edx, [esp + 0x1008]
push edx
call fcn.0043c760
push 0x366
call fcn.00475570
push eax
call fcn.004ad030
add esp, 4
mov ecx, dword [esp + 0x2008]
pop esi
pop ebp
xor ecx, esp
call fcn.004c1302
add esp, 0x2004
ret 4
Function at 0x4ada00
Capabilities:
Copy file

Disassembly:
mov eax, 0x3024
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x3020], eax
cmp byte [0x532b51], 0
je 0x4adbde
push ebx
push 0x800
lea eax, [esp + 0x2028]
push eax
mov ecx, 0x541610
call fcn.00415320
push 1
push str.History
push str.General
call fcn.0046c8f0
test eax, eax
setne bl
test bl, bl
je 0x4ada75
push 0x800
push 0x4d79fc
lea ecx, [esp + 0x2c]
push ecx
push str.SaveArcFolder
push 0x4d96f0
call fcn.0046c8c0
cmp word [esp + 0x24], 0
jne 0x4ada87
lea edx, [esp + 0x24]
push edx
call fcn.00449230
push 0x800
lea eax, [esp + 0x1028]
push eax
lea ecx, [esp + 0x202c]
push ecx
call fcn.00460620
push eax
lea edx, [esp + 0x30]
push edx
call fcn.00460210
push 1
push 0
lea eax, [esp + 0x102c]
push eax
push 0x5af
call fcn.00475570
mov ecx, dword [0x534ca4]
push eax
push ecx
call fcn.0041c6e0
test al, al
je 0x4adbdd
push 0x800
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x102c]
push eax
call fcn.004608c0
test bl, bl
je 0x4adb06
lea ecx, [esp + 0x24]
push ecx
push str.SaveArcFolder
push 0x4d96f0
call fcn.0046c7f0
lea eax, [esp + 0x2024]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4adb10
sub eax, edx
sar eax, 1
inc eax
cmp eax, 0x7ff
jb 0x4adb2c
mov eax, 0x7ff
xor edx, edx
mov word [esp + eax*2 + 0x2024], dx
lea eax, [esp + 0x1024]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4adb40
sub eax, edx
sar eax, 1
inc eax
cmp eax, 0x7ff
jb 0x4adb5c
mov eax, 0x7ff
xor ecx, ecx
mov word [esp + eax*2 + 0x1024], cx
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 ecx, [esp + 4]
lea edx, [esp + 0x2024]
lea eax, [esp + 0x1024]
push ecx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x4adbdd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
push 0x5b0
call fcn.00475570
push eax
call fcn.004ad030
add esp, 0xc
mov ecx, 0x51ef08
call fcn.00433a70
pop ebx
mov ecx, dword [esp + 0x3020]
xor ecx, esp
call fcn.004c1302
add esp, 0x3024
ret
Function at 0x4ade00
Capabilities:
Move file

Disassembly:
mov eax, 0x1078
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x1074], eax
cmp byte [0x540502], 0
jne 0x4ae031
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
mov ecx, 0x53f4e8
xor esi, esi
call fcn.0044d180
lea eax, [esp + 0x34]
push eax
mov ecx, 0x53f4e8
call fcn.0044d180
test al, al
je 0x4ade76
jmp 0x4ade50
lea edi, [esp + 0x13]
lea ebx, [esp + 0x34]
call fcn.004a5750
test al, al
jne 0x4adf33
mov ecx, ebx
push ecx
mov ecx, 0x53f4e8
call fcn.0044d180
test al, al
jne 0x4ade50
push 0
mov ecx, 0x53f4e8
call fcn.0044d180
lea ecx, [esp + 0x34]
push ecx
mov ecx, 0x53f4e8
call fcn.0044d180
test al, al
je 0x4adf0c
lea eax, [esp + 0x34]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4adea0
sub eax, edx
sar eax, 1
lea edi, [eax + ebp + 1]
lea edx, [edi + edi + 2]
push edx
push esi
call fcn.004c1b32
mov esi, eax
add esp, 8
test esi, esi
je 0x4ae02d
lea eax, [esp + 0x34]
mov edx, eax
lea ecx, [ebp + ebp]
sub ecx, edx
lea edx, [ecx + esi]
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4adee0
lea eax, [esp + 0x34]
push eax
mov ecx, 0x53f4e8
mov ebp, edi
call fcn.0044d180
test al, al
jne 0x4ade95
test ebp, ebp
jne 0x4adf8e
push 0x30
push 0x65
call fcn.00475570
push eax
push 0x14c
call fcn.00475570
mov ecx, dword [0x534ca4]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4ae02d
cmp byte [esp + 0x108c], 0
je 0x4adf84
push 0x64
lea edx, [esp + 0x38]
push edx
call fcn.004537c0
push eax
push 0x203
call fcn.00475570
push eax
call fcn.004ad030
movzx eax, byte [esp + 0x1b]
add esp, 8
neg eax
sbb eax, eax
and eax, 0xffffff87
add eax, 0xce
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x51ef08
call fcn.00433a70
jmp 0x4ae02d
call fcn.004aa4f0
jmp 0x4ae02d
xor eax, eax
xor edx, edx
mov word [esi + ebp*2], dx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], ax
mov eax, dword [0x534ca4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
cmp byte [esp + 0x108c], dl
je 0x4adfdb
mov ecx, 0x40
mov word [esp + 0x24], cx
lea edx, [esp + 0x14]
mov edi, 1
add dword [0x533bfc], edi
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
sub dword [0x533bfc], edi
push esi
call fcn.004c1aa4
add esp, 4
test bl, bl
je 0x4ae02d
cmp dword [esp + 0x26], 0
jne 0x4ae02d
mov ecx, 0x53f4c8
call fcn.00485a50
push 0x4d79fc
mov ecx, 0x53f4e8
call fcn.0044f9e0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1074]
xor ecx, esp
call fcn.004c1302
add esp, 0x1078
ret 4
Function at 0x4b0490
Capabilities:
Get file attributes
Log keystrokes via polling

Disassembly:
mov eax, 0x100c
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x1008], eax
cmp dword [0x533bfc], 0
push ebx
mov ebx, dword [esp + 0x1014]
jne 0x4b05d4
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 0x4b0572
push 0x800
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 [0x532b51], 0
je 0x4b0522
cmp eax, dword [0x53f4e8]
je 0x4b054b
cmp eax, dword [0x53f4cc]
je 0x4b054b
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4b054b
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, 0x53f4e8
call fcn.00450cc0
cmp eax, 1
je 0x4b05d2
push 7
push str.rarreg.
lea ecx, [esp + 0x1c]
push ecx
call fcn.00460620
push eax
call fcn.00486ff0
test eax, eax
jne 0x4b0572
lea edx, [esp + 0x14]
push edx
call fcn.004ad830
jmp 0x4b05d2
push esi
push 0
call fcn.0049b350
mov ecx, 0x551474
call fcn.0047fa10
xor esi, esi
test edi, edi
jle 0x4b05b2
lea ebx, [ebx]
push 0x800
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
call ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x551474
call fcn.0047fa40
inc esi
cmp esi, edi
jl 0x4b0590
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.0049deb0
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x100c]
pop ebx
xor ecx, esp
call fcn.004c1302
add esp, 0x100c
ret 4

Function at 0x4b09f0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x2000], eax
push esi
push 0x1000
push 0
lea eax, [esp + 0x100c]
push eax
push str.rarreg.key
push 0x4d79fc
call fcn.0046c910
mov esi, eax
test esi, esi
je 0x4b0a86
push edi
push 0x800
lea ecx, [esp + 0xc]
push ecx
push str.Rar_RK
call fcn.0049f210
mov edi, eax
test edi, edi
je 0x4b0a76
push edi
push esi
lea edx, [esp + 0x1010]
push 1
push edx
call fcn.004c3ee0
push edi
call fcn.004c3d02
add esp, 0x14
lea eax, [esp + 8]
push eax
call fcn.004ad830
lea ecx, [esp + 8]
push ecx
call fcn.0043c760
push str.rarreg.key
push 0x4d79fc
call fcn.0046c470
pop edi
mov ecx, dword [esp + 0x2004]
pop esi
xor ecx, esp
call fcn.004c1302
add esp, 0x2004
ret
Function at 0x4b0aa0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1028
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x1024], eax
push esi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], 0x50000
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push str.VerInfo
push str.General
call fcn.0046c910
push 1
push 0x800
lea edx, [esp + 0x30]
push edx
call fcn.00460a10
push 0x800
lea eax, [esp + 0x2c]
push eax
call fcn.004601c0
push 0x800
push str.version.dat
lea ecx, [esp + 0x30]
push ecx
call fcn.0047f4c0
push 0x4d9470
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x18], 0
call fcn.0043caf0
mov esi, eax
test esi, esi
je 0x4b0b4d
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004c4965
push esi
call fcn.004c3d02
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x4b0bfc
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x4b0bc8
lea ecx, [esp + 0x20]
push ecx
push str.VerInfo
push str.General
call fcn.0046c870
push 0x4d83b4
lea edx, [esp + 0x2c]
push edx
call fcn.0043caf0
mov esi, eax
test esi, esi
je 0x4b0ba8
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004c3ee0
push esi
call fcn.004c3d02
add esp, 0x14
mov dword [0x533bf0], 0
pop esi
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.004c1302
add esp, 0x1028
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.0046c870
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x4b0c43
cmp dword [esp + 0x10], eax
je 0x4b0c43
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
push 0x4d83b4
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.0043caf0
mov esi, eax
test esi, esi
je 0x4b0c43
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004c3ee0
push esi
call fcn.004c3d02
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.004c1a70
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.004c2df0
push esi
push 0xe10
push edx
push eax
call fcn.004c2df0
push esi
push 0x18
push edx
push eax
call fcn.004c2df0
mov dword [0x533bf0], eax
test eax, eax
jge 0x4b0ca6
mov dword [0x533bf0], 0x168
mov ecx, dword [esp + 0x1028]
pop esi
xor ecx, esp
call fcn.004c1302
add esp, 0x1028
ret
Function at 0x4b4290
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2044
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x2040], eax
mov eax, dword [esp + 0x205c]
push ebx
mov ebx, dword [esp + 0x2064]
push ebp
mov ebp, dword [esp + 0x205c]
push esi
mov esi, dword [esp + 0x2058]
push edi
mov edi, dword [esp + 0x2060]
push 0x3c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004c1d50
add esp, 0xc
cmp byte [esp + 0x2068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x500
jne 0x4b4306
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.00460620
cmp eax, esi
jne 0x4b4340
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x1000
call fcn.0041cb70
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 [0x532b53], bl
call esi
test eax, eax
jne 0x4b4371
cmp dword [esp + 0x20], eax
je 0x4b4371
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call esi
mov byte [0x532b53], 0
test eax, eax
je 0x4b4422
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x4b4422
cmp byte [esp + 0x2068], 0
jne 0x4b441e
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4b43d2
mov eax, dword [0x57a008]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x579fc8], ecx
mov dword [eax*4 + 0x579f88], edx
inc eax
and eax, 0x8000000f
jns 0x4b43cb
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x57a008], eax
jmp 0x4b4414
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x579f88]
cmp eax, dword [esp + 0x34]
jne 0x4b4408
mov ecx, dword [esi + 0x579fc8]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x4b4408
mov edx, dword [esi + 0x579fc8]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x4b43e0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4b441e
mov dword [eax], ecx
mov al, bl
jmp 0x4b4424
xor al, al
mov ecx, dword [esp + 0x2050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c1302
add esp, 0x2044
ret 0x1c
Function at 0x4b4440
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4d652b
mov eax, dword fs:[0]
push eax
mov eax, 0x6060
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x605c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb0b4]
xor eax, esp
push eax
lea eax, [esp + 0x6074]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6088]
mov ebp, dword [esp + 0x6084]
push eax
mov edi, ecx
call fcn.00460620
mov ecx, edi
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4b44a0
sub ecx, esi
mov edx, eax
sar ecx, 1
lea ebx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x4b44b4
sub edx, ebx
sar edx, 1
lea ecx, [edx + ecx + 1]
cmp ecx, 0x1000
jae 0x4b45fc
push 0x1000
lea edx, [esp + 0x4074]
push edx
push eax
push edi
call fcn.00460210
lea ecx, [esp + 0x14]
call fcn.0047fbd0
mov dword [esp + 0x607c], 0
push 0x1000
push 0x4d79fc
lea eax, [esp + 0x1078]
push eax
push str.ViewerIgnoreModifications
push str.Viewer
call fcn.0046c8c0
cmp word [esp + 0x1070], si
je 0x4b453c
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x107c]
push edx
call fcn.0047fe60
push 0x800
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x1c]
call fcn.0047fc50
test al, al
je 0x4b45e8
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ecx]
push 0x800
lea ecx, [esp + 0x3074]
push ecx
lea edx, [esp + 0x78]
push edx
call edi
lea eax, [esp + 0x3072]
push 0x4df83c
push eax
call fcn.004c4fa6
mov esi, eax
add esp, 8
test esi, esi
je 0x4b4628
xor ecx, ecx
mov word [esi], cx
add esi, 4
cmp word [esi], cx
jne 0x4b45a5
mov esi, 0x4d7800
push 4
push ebp
lea edx, [esp + 0x3078]
push edx
call fcn.00452e00
test al, al
je 0x4b45cd
push 4
lea eax, [esp + 0x4074]
push eax
push esi
call fcn.00452e00
test al, al
jne 0x4b4631
push 0x800
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0047fc50
test al, al
jne 0x4b4560
mov dword [esp + 0x607c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401b10
xor al, al
mov ecx, dword [esp + 0x6074]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x605c]
xor ecx, esp
call fcn.004c1302
add esp, 0x606c
ret 8
lea esi, [esp + 0x3070]
jmp 0x4b45b9
mov dword [esp + 0x607c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401b10
mov al, 1
jmp 0x4b45fe
Function at 0x4b62b0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d665e
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4eb0b4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
test byte [0x58225c], 1
jne 0x4b6309
or dword [0x58225c], 1
mov dword [esp + 0x14], 0
mov ecx, 0x57e138
call fcn.004b3aa0
push 0x4d6f20
call fcn.004c42f6
add esp, 4
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x1c]
push 1
push esi
mov ecx, 0x57e138
call fcn.004b4b20
mov bl, byte [esp + 0x20]
push 0
test bl, bl
push 0x57e138
sete al
movzx ecx, al
push ecx
push 0
push 0
push esi
push 0
call fcn.004b4290
test al, al
jne 0x4b6388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x57e140]
cmp eax, 0xffffffff
je 0x4b6361
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x57e140], 0xffffffff
mov ecx, 0x58215a
call fcn.00478c30
cmp esi, 0x4c7
sete al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8
test bl, bl
je 0x4b63a5
push 0x57e138
push 0x10000
push 0x4b4c40
call fcn.004c2f9b
add esp, 0xc
jmp 0x4b63ca
mov eax, dword [0x57e140]
cmp eax, 0xffffffff
je 0x4b63c0
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x57e140], 0xffffffff
mov ecx, 0x58215a
call fcn.00478c30
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8

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

Disassembly:
push esi
push 0x532b58
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b6419
push 0x40
push 0x2bc
call fcn.00475570
push eax
push 0x2bd
call fcn.00475570
push eax
mov eax, dword [0x534ca4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
ret
push 0
push 0x532b58
mov ecx, esi
call fcn.004b5470
pop esi
ret
Function at 0x4b6430
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d668e
mov eax, dword fs:[0]
push eax
mov eax, 0x3004
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x3000], eax
push esi
mov eax, dword [0x4eb0b4]
xor eax, esp
push eax
lea eax, [esp + 0x300c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x301c]
test esi, esi
je 0x4b64b5
push 0x4df828
push esi
call fcn.00460840
test al, al
jne 0x4b648f
call fcn.004b3f70
test al, al
je 0x4b64b5
push 0x30
push 0x65
call fcn.00475570
push eax
push 0x596
call fcn.00475570
push eax
mov eax, dword [0x534ca4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4b661e
cmp byte [0x532b51], 0
jne 0x4b64f1
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004b4290
test al, al
jne 0x4b661e
push esi
push 0x201
call fcn.00475570
push eax
call fcn.004ad030
add esp, 8
jmp 0x4b661e
push 1
push 0x800
lea ecx, [esp + 0x10]
push ecx
push str.Rar_EX
call fcn.0049f2e0
test al, al
je 0x4b661e
push 0x800
lea edx, [esp + 0x200c]
push edx
call fcn.0049fd20
lea eax, [esp + 8]
push eax
call fcn.0049fcc0
push 1
call fcn.0049b270
push 0x800
push 0x550472
mov ecx, 0x541610
call fcn.00415320
mov ecx, dword [0x54181c]
mov dword [0x54d410], ecx
push 0x4d7800
mov ecx, 0x551474
call fcn.0047fa40
push 0
push 0
mov ecx, 0x541610
mov dword [0x54c400], 4
call fcn.00419d30
cmp byte [0x532b50], 0
jne 0x4b661e
lea edx, [esp + 0x1008]
push edx
push esi
call fcn.00460680
push 0x800
lea eax, [esp + 0x100c]
push eax
mov ecx, eax
push ecx
call fcn.00461be0
test byte [0x586384], 1
jne 0x4b65e6
or dword [0x586384], 1
mov dword [esp + 0x3014], 0
mov ecx, 0x582260
call fcn.004b3aa0
push 0x4d6f70
call fcn.004c42f6
add esp, 4
mov dword [esp + 0x3014], 0xffffffff
push 0
lea edx, [esp + 0x100c]
push edx
mov ecx, 0x582260
call fcn.004b4b20
lea eax, [esp + 0x2008]
push eax
call fcn.0049fcc0
push 0x582260
push 0x10000
push 0x4b4c40
call fcn.004c2f9b
add esp, 0xc
mov ecx, dword [esp + 0x300c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x3000]
xor ecx, esp
call fcn.004c1302
add esp, 0x3010
ret 4
Function at 0x4b79f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
push 0x5883a8
call fcn.00427fc0
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x5887a8], eax
mov dword [0x5887ac], edx
mov dword [0x5887b0], esi
mov cl, byte [edi]
test cl, cl
je 0x4b7a80
jmp 0x4b7a30
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5883a8]
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 + 0x5883a8]
mov dword [0x5887a8], eax
mov dword [0x5887ac], edx
mov dword [0x5887b0], esi
mov cl, byte [edi]
test cl, cl
jne 0x4b7a30
pop edi
pop esi
ret 4