joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f66e0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2008
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2004], eax
cmp byte [esp + 0x2024], 0
push ebx
mov ebx, dword [esp + 0x201c]
push ebp
mov ebp, dword [esp + 0x2018]
push esi
mov esi, dword [esp + 0x2020]
push edi
mov edi, dword [esp + 0x201c]
je 0x4f677d
push 0x800
push esi
push edi
push str.DefFolder
push str.Extraction
call fcn.004c3190
cmp word [edi], 0
jne 0x4f6748
push ebp
push esi
push edi
call fcn.004b0360
jmp 0x4f677d
push 0x800
lea eax, [esp + 0x1018]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4f6778
cmp eax, 0x800
jae 0x4f6778
push ebp
lea eax, [esp + 0x1018]
push eax
push edi
call fcn.004b0360
jmp 0x4f677d
xor eax, eax
mov word [edi], ax
movzx eax, word [edi]
mov ecx, eax
mov dword [esp + 0x10], ecx
test ax, ax
jne 0x4f6797
push ebp
push edi
mov ecx, 0x5a84b0
call fcn.00452420
push ebp
push edi
call fcn.00493970
push 0x800
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.004b0360
mov ax, word [esp + 0x14]
xor ebx, ebx
test ax, ax
je 0x4f67ff
xor ecx, ecx
movzx edx, ax
lea esi, [esp + 0x14]
lea ebp, [ebx + 0x5f]
cmp dx, 0x25
jne 0x4f67e4
lea eax, [esp + 0x16]
add eax, ecx
push 0x25
push eax
call fcn.0051f225
add esp, 8
test eax, eax
je 0x4f67e4
mov word [esi], bp
inc ebx
lea esi, [esp + 0x14]
lea ecx, [ebx + ebx]
add esi, ecx
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x4f67c6
mov ebp, dword [esp + 0x2020]
lea eax, [esp + 0x14]
push eax
call fcn.00494860
mov esi, eax
test esi, esi
je 0x4f689a
lea eax, [esp + 0x14]
cmp esi, eax
jbe 0x4f689a
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x14]
push eax
call fcn.00494860
mov ebx, eax
test ebx, ebx
je 0x4f6879
lea eax, [esp + 0x14]
cmp ebx, eax
jbe 0x4f6879
cmp byte [esp + 0x2030], 0
je 0x4f6865
cmp word [esi + 2], 0
je 0x4f6865
movzx eax, word [esi + 4]
push eax
call fcn.004aff30
test al, al
jne 0x4f6865
movzx eax, word [esi - 2]
push eax
call fcn.004aff30
test al, al
jne 0x4f6874
push str..tar
push ebx
call fcn.004b4410
test eax, eax
jne 0x4f6879
xor eax, eax
mov word [ebx], ax
sub esi, 2
lea eax, [esp + 0x14]
cmp esi, eax
jbe 0x4f689a
cmp word [esi], 0x2e
jne 0x4f689a
xor eax, eax
mov word [esi], ax
sub esi, 2
lea eax, [esp + 0x14]
cmp esi, eax
ja 0x4f6884
push 0x800
lea eax, [esp + 0x18]
push eax
call fcn.00495850
push eax
push 0x5e2b48
call fcn.004b0360
push 0x5e2b48
call fcn.004ece20
push 0
push 0x5e2b48
call fcn.00495580
cmp byte [esp + 0x202c], 0
jne 0x4f68dc
cmp word [esp + 0x10], 0
je 0x4f6903
push 1
push str.AppendName
push str.Extraction
call fcn.004c2f20
test eax, eax
je 0x4f6903
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.00495850
push eax
push edi
call fcn.004b0300
push edi
call fcn.004ece20
push 0
push edi
call fcn.00495580
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x2008
ret 0x1c
Function at 0x4f6930
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1008
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x100c]
lea ecx, [esp]
push 0x800
push ecx
push eax
mov ecx, 0x5a84b0
call fcn.00452e10
push 0x802
lea eax, [esp + 4]
push eax
call fcn.00493970
push 0x802
push 0x542b18
lea eax, [esp + 8]
push eax
call fcn.004b0300
push 1
push 0x54266c
push 0
lea eax, [esp + 0xc]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1008
ret 4

Function at 0x4f79a0
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
mov eax, 0x325c
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x3258], eax
cmp byte [esp + 0x3264], 0
push ebx
mov bh, byte [esp + 0x3264]
mov dword [0x57a0e8], 1
je 0x4f7b0e
push edi
push 0
push 0x800
lea eax, [esp + 0x1268]
push eax
call fcn.004ec500
push 0x800
lea eax, [esp + 0x1264]
push eax
call fcn.00493970
lea eax, [esp + 0x1260]
push eax
push str._sRar_
lea eax, [esp + 0x2268]
push 0x800
push eax
call fcn.00402c90
add esp, 0x10
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f7b06
push esi
jmp 0x4f7a50
cmp dword [0x57a0e8], 1
jne 0x4f7b05
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1264]
sub esi, dword [esp + 0x1c]
push 0x800
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.004b0360
push 0x800
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.004b0300
test byte [esp + 0x14], 0x10
je 0x4f7ae4
push 6
lea eax, [esp + 0x44]
push str.Rar_DI
push eax
call fcn.00526778
add esp, 0xc
test eax, eax
lea eax, [esp + 0x264]
sete bl
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4f7af1
cmp esi, 8
jb 0x4f7ad1
test bh, bh
je 0x4f7ad5
test bl, bl
je 0x4f7af1
lea eax, [esp + 0x264]
push eax
call fcn.004ebc90
jmp 0x4f7af1
lea eax, [esp + 0x264]
push eax
call fcn.004ebbc0
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4f7a50
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
test bh, bh
pop ebx
jne 0x4f7bac
call fcn.00472b60
test al, al
je 0x4f7bac
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
call fcn.00472b70
test al, al
je 0x4f7b44
mov byte [esp], 1
jmp 0x4f7ba4
push 0xfff
push 0
lea eax, [esp + 0x1260]
push eax
push str.rarkey
push 0x54266c
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004c2d50
test eax, eax
jne 0x4f7b91
push 0x1000
push eax
lea eax, [esp + 0x1260]
push eax
push str.rarkey
push 0x54266c
call fcn.004c2fc0
test eax, eax
jne 0x4f7b91
mov byte [esp], al
jmp 0x4f7ba4
push 1
push eax
lea eax, [esp + 0x1260]
push eax
call fcn.00472210
mov byte [esp], al
push dword [esp]
call fcn.00472db0
mov ecx, dword [esp + 0x3258]
xor ecx, esp
mov dword [0x57a0e8], 0
call fcn.0051dca8
add esp, 0x325c
ret 8
Function at 0x4ff800
Capabilities:
Copy file

Disassembly:
mov eax, 0x2008
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2004], eax
push esi
push edi
mov edi, dword [esp + 0x2014]
call fcn.00472b60
test al, al
je 0x4ff861
cmp byte [0x58fc50], 0
jne 0x4ff861
push 0x5f0
call fcn.004a9c90
push 0x5f1
mov esi, eax
call fcn.004a9c90
push 0x24
push esi
push eax
push dword [0x57a0c8]
call fcn.004edd90
cmp eax, 6
jne 0x4ff9a3
push 0x800
lea eax, [esp + 0x1010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarreg.key
lea eax, [esp + 0x1014]
push eax
call fcn.00495960
push 0
lea eax, [esp + 0x1010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
mov esi, eax
lea eax, [esp + 0x10]
push 0x800
push eax
call fcn.004949d0
push 0x800
lea eax, [esp + 0x10]
push eax
call fcn.00493970
push 0x800
push str.rarreg.key
lea eax, [esp + 0x14]
push eax
call fcn.004b0300
lea eax, [esp + 0xc]
test esi, esi
je 0x4ff8e4
push eax
call fcn.004831b0
jmp 0x4ff905
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1014]
push eax
call fcn.004b0360
push dword [0x57a0c8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [0x57a0c8]
call dword [sym.imp.USER32.dll_FlashWindow]
push 1
lea eax, [esp + 0x1010]
push eax
call fcn.00472990
mov byte [esp + 8], al
push dword [esp + 8]
call fcn.00472db0
push 0
push dword [0x57a0c8]
call dword [sym.imp.USER32.dll_FlashWindow]
mov ecx, 0x5a84b0
call fcn.00456a40
call fcn.00472b60
test al, al
je 0x4ff983
push 0x368
call fcn.004a9c90
push 0x367
mov esi, eax
call fcn.004a9c90
push 0x40
push esi
push eax
push dword [0x57a0c8]
call fcn.004edd90
jmp 0x4ff9a3
lea eax, [esp + 0x100c]
push eax
call fcn.004831b0
push 0x366
call fcn.004a9c90
push eax
call fcn.004f27d0
add esp, 4
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x2008
ret 4
Function at 0x5039b0
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x35e4
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x35e0], eax
cmp dword [0x572624], 0xffffffff
push ebx
mov ebx, dword [esp + 0x35f8]
push esi
mov esi, dword [esp + 0x35f0]
push edi
mov edi, dword [esp + 0x35f8]
jne 0x503a57
push 0x4001
push 0x2b4
lea eax, [esp + 0x8c]
push eax
push 0
push 0x542b18
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x88]
mov dword [0x5e7764], eax
lea eax, [esp + 0x25ec]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x8c]
push eax
push 0
lea eax, [esp + 0x25fc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x88]
mov dword [0x572624], eax
push ebp
push 0x800
push edi
lea eax, [esp + 0x5f8]
push eax
call fcn.004b0360
push 0x800
lea eax, [esp + 0x5f4]
push eax
push eax
call fcn.00495a20
movzx eax, word [esi]
lea ecx, [esp + 0x5f0]
mov ebp, eax
mov dword [esp + 0x10], 3
test ax, ax
mov dword [esp + 0x14], 0x40000000
mov dword [esp + 0x18], 0
lea eax, [esp + 0x33c]
mov dword [esp + 0x24], ecx
je 0x503af2
push 0x4011
push 0x2b4
push eax
movzx eax, byte [esp + 0x360c]
shl eax, 4
push eax
mov eax, ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x340]
push 0x800
mov dword [esp + 0x30], eax
lea eax, [esp + 0x15f4]
push esi
push eax
call fcn.004b0360
jmp 0x503b50
push 0x4001
push 0x2b4
push eax
push 0
lea eax, [esp + 0x600]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x340]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x5f0]
push 0x800
push eax
lea eax, [esp + 0x15f8]
push eax
call fcn.004b0360
lea eax, [esp + 0x15f0]
push eax
call fcn.004958c0
lea eax, [esp + 0x5f0]
push eax
call fcn.00495850
mov dword [esp + 0x24], eax
push 0x66
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x104d
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [esp + 0x10], 3
lea eax, [esp + 0x15f0]
mov dword [esp + 0x14], edi
test bp, bp
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], eax
pop ebp
je 0x503ba6
mov ecx, dword [0x572624]
mov dword [esp + 0x28], ecx
jmp 0x503baf
mov eax, dword [0x5e7764]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x104c
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x48]
mov dword [esp + 0x50], 2
push eax
push edi
push 0x1074
push esi
mov dword [esp + 0x6c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
jne 0x503c06
lea eax, [esp + 0x48]
mov dword [esp + 0x58], 1
push eax
push edi
push 0x102b
push esi
mov dword [esp + 0x64], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x5e3c3c]
pop edi
inc eax
mov dword [0x5e3c3c], eax
pop esi
pop ebx
cmp eax, 1
jne 0x503c32
push 0x4f5
call fcn.004a9c90
push eax
push 2
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [esp + 0x35e0]
xor ecx, esp
call fcn.0051dca8
add esp, 0x35e4
ret 0x10
Function at 0x506020
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1028
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1024], eax
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x60b00
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea eax, [esp + 0xc]
push eax
push str.VerInfo
push 0x542a58
call fcn.004c2fc0
push 1
push 0x800
lea eax, [esp + 0x30]
push eax
call fcn.004949d0
push 0x800
lea eax, [esp + 0x2c]
push eax
call fcn.00493970
push 0x800
push str.version.dat
lea eax, [esp + 0x30]
push eax
call fcn.004b0300
push 0x54599c
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 0
push eax
call fcn.00484ad0
mov esi, eax
test esi, esi
je 0x5060cd
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00529db5
push esi
call fcn.00526918
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x506196
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x506162
lea eax, [esp + 0x20]
push eax
push str.VerInfo
push 0x542a58
call fcn.004c3e60
call fcn.004c3aa0
test al, al
jne 0x506131
push 0x542cac
lea eax, [esp + 0x2c]
push eax
call fcn.00484ad0
mov esi, eax
test esi, esi
je 0x506131
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00526d9e
push esi
call fcn.00526918
add esp, 0x14
call fcn.004c3ab0
movzx eax, al
neg eax
pop esi
sbb eax, eax
and eax, 0xfffffe98
add eax, 0x168
mov dword [0x57b108], eax
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1028
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push str.VerInfo
push 0x542a58
mov dword [esp + 0x14], ecx
call fcn.004c3e60
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x5061e6
cmp dword [esp + 0x10], eax
je 0x5061e6
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
call fcn.004c3aa0
test al, al
jne 0x5061e6
push 0x542cac
lea eax, [esp + 0x2c]
push eax
call fcn.00484ad0
mov esi, eax
test esi, esi
je 0x5061e6
push esi
push 0xc
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00526d9e
push esi
call fcn.00526918
add esp, 0x14
mov eax, dword [esp + 0x24]
xor ecx, ecx
sub ecx, ecx
push 0xc9
sbb eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
push 0x2a69c000
sbb eax, 0
add ecx, dword [esp + 0x28]
adc eax, 0
push eax
push ecx
call fcn.0051dcf0
mov dword [0x57b108], eax
test eax, eax
jns 0x506224
mov dword [0x57b108], 0x168
mov ecx, dword [esp + 0x1028]
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1028
ret
Function at 0x508850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540121
mov eax, dword fs:[0]
push eax
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.005095c0
test al, al
je 0x5088b4
push 0x65
call fcn.004a9c90
push 0x596
mov esi, eax
call fcn.004a9c90
push 0x30
push esi
push eax
push dword [0x57a0c8]
call fcn.004edd90
jmp 0x5089c0
cmp byte [0x57a0e0], 0
jne 0x5088f0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.00509e00
test al, al
jne 0x5089c0
push esi
push 0x201
call fcn.004a9c90
push eax
call fcn.004f27d0
add esp, 8
jmp 0x5089c0
push 1
call fcn.004e7810
push 1
push 0x800
push 0x58aad6
push str.Rar_EX
call fcn.004ec930
test al, al
je 0x5089c0
push 0x800
push 0x59701a
mov ecx, 0x5a57a8
call fcn.00406e80
mov eax, dword [0x5a57ac]
mov ecx, 0x59801c
push 0x5428ac
mov dword [0x591fc0], eax
call fcn.004b0450
push 0x800
lea eax, [ebp - 0x1010]
mov dword [0x590fac], 2
push eax
push esi
push 0x58aad6
call fcn.00495090
push 0
push 0
mov ecx, 0x5a57a8
call fcn.00406960
cmp byte [0x57a0e3], 0
jne 0x5089c0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x618b48]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5f3ffc]
cmp eax, dword [ecx + 4]
jg 0x5089dc
push 0
lea eax, [ebp - 0x1010]
mov ecx, 0x5efed8
push eax
call fcn.00508de0
push 0x5efed8
push 0x10000
push 0x5079a0
call fcn.0052713c
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dca8
mov esp, ebp
pop ebp
ret 4
push 0x5f3ffc
call fcn.0051e56a
add esp, 4
cmp dword [0x5f3ffc], 0xffffffff
jne 0x508996
mov dword [ebp - 4], 0
mov ecx, 0x5efed8
call fcn.00506e40
push 0x540db0
call fcn.0051e364
mov dword [ebp - 4], 0xffffffff
push 0x5f3ffc
call fcn.0051e520
add esp, 8
jmp 0x508996
Function at 0x508bd0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6064]
mov eax, 0x6064
call fcn.0051dcc0
push 0xffffffffffffffff
push 0x540165
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp + 0x6060], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x6074]
mov edi, dword [ebp + 0x606c]
mov esi, dword [ebp + 0x6070]
push eax
call fcn.00495850
mov edx, esi
mov ebx, eax
lea eax, [edx + 2]
lea ebx, [ebx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x508c30
mov ecx, ebx
sub edx, eax
sar edx, 1
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x508c47
sub ecx, dword [ebp - 0x10]
lea eax, [edx + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x1000
jb 0x508c6a
xor al, al
jmp 0x508daa
push 0x1000
lea eax, [ebp + 0x60]
push eax
push ebx
push esi
call fcn.00495090
lea ecx, [ebp]
call fcn.004b03b0
mov dword [ebp - 4], 0
lea eax, [ebp + 0x2060]
push 0x1000
push 0x54266c
push eax
push str.ViewerIgnoreModifications
push 0x5431d4
call fcn.004c3190
cmp word [ebp + 0x2060], 0
je 0x508cc7
push 0
push 0
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2060]
push eax
call fcn.004cc2d0
push 0x800
lea eax, [ebp + 0x4060]
push eax
lea ecx, [ebp]
call fcn.004b0550
test al, al
je 0x508d7a
push 0x800
lea eax, [ebp + 0x5060]
push eax
lea eax, [ebp + 0x4060]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x508d5e
cmp eax, 0x800
jae 0x508d5e
lea eax, [ebp + 0x5062]
push 0x5576e4
push eax
call fcn.0052053b
mov esi, eax
add esp, 8
test esi, esi
je 0x508d48
xor eax, eax
mov word [esi], ax
add esi, 4
cmp word [esi], ax
jne 0x508d33
mov esi, 0x5428ac
push 5
push edi
lea eax, [ebp + 0x5060]
push eax
call fcn.00488c80
test al, al
je 0x508d5e
jmp 0x508d4e
lea esi, [ebp + 0x5060]
push 5
lea eax, [ebp + 0x60]
push eax
push esi
call fcn.00488c80
test al, al
jne 0x508dcf
push 0x800
lea eax, [ebp + 0x4060]
push eax
lea ecx, [ebp]
call fcn.004b0550
test al, al
jne 0x508ce3
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp]
test ecx, ecx
je 0x508da8
cmp byte [ebp + 0x10], 0
je 0x508d9f
mov eax, dword [ebp + 8]
add eax, eax
push eax
push ecx
call fcn.004ad810
mov ecx, dword [ebp]
push ecx
call fcn.00525b95
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6060]
xor ecx, ebp
call fcn.0051dca8
lea esp, [ebp + 0x6064]
pop ebp
ret 0xc
mov bl, 1
jmp 0x508d7c
Function at 0x509e00
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2044
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2040], eax
mov eax, dword [esp + 0x2054]
push ebx
mov bl, byte [esp + 0x205c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2064]
mov dword [esp + 0x10], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x500
push ebp
mov ebp, dword [esp + 0x2058]
push esi
mov esi, dword [esp + 0x2058]
push edi
mov edi, dword [esp + 0x206c]
test bl, bl
jne 0x509ea6
mov dword [esp + 0x18], 0x540
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
call fcn.00494860
test eax, eax
je 0x509ec5
cmp word [eax], 0x2e
jne 0x509ed2
cmp word [eax + 2], 0
jne 0x509ed2
or dword [esp + 0x18], 1
mov dword [esp + 0x3c], 0x542b18
mov eax, dword [esp + 0x10]
push esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
call fcn.00495850
cmp eax, esi
jne 0x509f17
push 0x542900
push esi
call fcn.004939b0
test al, al
jne 0x509f17
push esi
push str.._s
lea eax, [esp + 0x58]
push 0x1000
push eax
call fcn.00402c90
lea eax, [esp + 0x60]
add esp, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], 1
push eax
mov byte [0x57a0e1], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
jne 0x509f6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x509f51
test edi, edi
je 0x509f4a
mov dword [edi], esi
mov al, 1
jmp 0x50a015
cmp dword [esp + 0x20], 0
je 0x509f6d
lea eax, [esp + 0x14]
mov dword [esp + 0x20], 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
mov byte [0x57a0e1], 0
test esi, esi
je 0x50a013
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x50a013
test bl, bl
jne 0x50a00f
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x509fc7
mov ecx, dword [0x5e7c80]
mov eax, dword [esp + 0x34]
mov dword [ecx*4 + 0x5e7c40], eax
lea eax, [ecx + 1]
mov dword [ecx*4 + 0x5e7c00], edx
and eax, 0x8000000f
jns 0x509fc0
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x5e7c80], eax
jmp 0x50a009
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x5e7c40]
cmp eax, dword [esp + 0x34]
jne 0x50a001
push 0
push dword [esi + 0x5e7c00]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x509ffd
mov edx, dword [esi + 0x5e7c00]
mov dword [esp + 0x4c], edx
jmp 0x50a001
mov edx, dword [esp + 0x4c]
add esi, 4
cmp esi, 0x40
jl 0x509fd0
test edi, edi
je 0x50a00f
mov dword [edi], edx
mov al, 1
jmp 0x50a015
xor al, al
mov ecx, dword [esp + 0x2050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x2044
ret 0x1c
Function at 0x50a3b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54027b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x572844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
jne 0x50a530
push 2
push 0x5431c8
push 0x5431d4
call fcn.004c2f20
mov esi, eax
cmp esi, 3
jne 0x50a424
push edi
push 0x5097c0
push dword [0x57a0c8]
push 0x55770c
push dword [0x5b6818]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
cmp esi, 0xffffffff
je 0x50a53b
test esi, esi
je 0x50a468
push edi
call fcn.005095c0
test al, al
je 0x50a468
push 0x65
call fcn.004a9c90
push 0x596
mov esi, eax
call fcn.004a9c90
push 0x30
push esi
push eax
push dword [0x57a0c8]
call fcn.004edd90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub esi, 0
je 0x50a530
sub esi, 1
je 0x50a598
sub esi, 1
jne 0x50a53b
push str.rarreg.key
push edi
call fcn.00495850
push eax
call fcn.004b4410
test eax, eax
je 0x50a53b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x618b48]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5efed4]
cmp eax, dword [ecx + 4]
jg 0x50a5ad
push 1
push edi
mov ecx, 0x5ebdb0
call fcn.00508de0
mov al, byte [ebp + 0xc]
push 0
push 0x5ebdb0
xor al, 1
movzx eax, al
push eax
push 0
push 0
push edi
push 0
call fcn.00509e00
test al, al
jne 0x50a552
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x5ebdb8]
mov esi, eax
cmp edx, 0xffffffff
je 0x50a50d
push edx
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x5ebdb8], 0xffffffff
mov ecx, 0x5efdd2
call fcn.004ad310
cmp esi, 0x4c7
je 0x50a53b
push 0
push dword [ebp + 0xc]
mov ecx, ebx
push edi
call fcn.00508530
test al, al
jne 0x50a53b
push dword [ebp + 0xc]
push edi
mov ecx, ebx
call fcn.00508f30
mov byte [ebx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0xc], 0
je 0x50a571
push 0x5ebdb0
push 0x10000
push 0x5079a0
call fcn.0052713c
add esp, 0xc
jmp 0x50a53b
mov eax, dword [0x5ebdb8]
cmp eax, 0xffffffff
je 0x50a58c
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x5ebdb8], 0xffffffff
mov ecx, 0x5efdd2
call fcn.004ad310
jmp 0x50a53b
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push 0
push esi
push edi
call fcn.00508530
test al, al
jne 0x50a53b
push esi
jmp 0x50a533
push 0x5efed4
call fcn.0051e56a
add esp, 4
cmp dword [0x5efed4], 0xffffffff
jne 0x50a4bc
mov dword [ebp - 4], 0
mov ecx, 0x5efdd2
call fcn.004ad2f0
mov byte [ebp - 4], 0
push 0x540d10
call fcn.0051e364
mov dword [ebp - 4], 0xffffffff
push 0x5efed4
call fcn.0051e520
add esp, 8
jmp 0x50a4bc