joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491b20
Capabilities:
Delete directory

Disassembly:
mov eax, 0x2068
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x2064], eax
push ebx
push esi
mov esi, dword [esp + 0x2074]
lea eax, [esp + 0x1008]
push 0x832
push eax
push esi
call fcn.00491530
test al, al
je 0x491b9e
lea eax, [esp + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x491b9a
push 0x800
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.004a21d0
test al, al
je 0x491b9a
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x491bda
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x491bd2
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004a21d0
test al, al
je 0x491bd2
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x491bda
xor al, al
jmp 0x491bdc
mov al, 1
mov ecx, dword [esp + 0x206c]
pop esi
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x2068
ret 4
Function at 0x491c00
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x30a8]
mov eax, 0x30a8
call fcn.0052f720
push 0xffffffffffffffff
push 0x550625
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp + 0x30a4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x30b0]
lea ecx, [ebp]
mov dword [ebp - 0x18], esi
call fcn.0048ea10
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 1
push esi
call fcn.0048f200
test al, al
je 0x491d43
lea ecx, [ebp]
call fcn.0048f0c0
push 0x10000
mov dword [ebp - 0x24], 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x10000
call fcn.00537b8a
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x491cb8
mov ecx, 0x5d281c
call fcn.004875a0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x10000
mov byte [ebp - 4], 1
push 0x10000
push 0
push ebx
call fcn.00531c60
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x10], esi
jl 0x491d09
jg 0x491ce6
cmp dword [ebp - 0x14], esi
jbe 0x491d09
push 0x10000
push ebx
lea ecx, [ebp]
call fcn.0048fd00
add esi, 0x10000
adc edi, 0
cmp edi, dword [ebp - 0x10]
jl 0x491ce6
jg 0x491d09
cmp esi, dword [ebp - 0x14]
jb 0x491ce6
lea ecx, [ebp]
call fcn.0048f140
push 0
push 0
push 0
lea ecx, [ebp]
call fcn.0048f870
lea ecx, [ebp]
call fcn.0048fba0
lea ecx, [ebp]
call fcn.0048ec90
mov byte [ebp - 4], 0
test ebx, ebx
je 0x491d40
push ebx
call fcn.00537b6f
add esp, 4
mov esi, dword [ebp - 0x18]
push 0x832
lea eax, [ebp + 0x1040]
push eax
push esi
call fcn.00491530
test al, al
je 0x491da1
lea eax, [ebp + 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x491d9d
push 0x800
lea eax, [ebp + 0x20a4]
push eax
lea eax, [ebp + 0x1040]
push eax
call fcn.004a21d0
test al, al
je 0x491d9d
lea eax, [ebp + 0x20a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x491ddd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x491dd9
push 0x800
lea eax, [ebp + 0x20a4]
push eax
push esi
call fcn.004a21d0
test al, al
je 0x491dd9
lea eax, [ebp + 0x20a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
je 0x491ddf
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0048ea60
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 + 0x30a4]
xor ecx, ebp
call fcn.0052f708
lea esp, [ebp + 0x30a8]
pop ebp
ret 4
Function at 0x4928d0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1268]
push edi
mov edi, dword [esp + 0x1264]
push eax
cmp edi, 0xffffffff
jne 0x49297c
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4929a1
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.004a21d0
test al, al
je 0x49294d
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4929a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x49296f
cmp eax, 3
je 0x49296f
cmp eax, 0x12
je 0x49296f
mov al, 1
mov byte [esi + 0x1044], al
jmp 0x492a6c
xor al, al
mov byte [esi + 0x1044], al
jmp 0x492a6c
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4929a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [esi + 0x1044], cl
jmp 0x492a6e
push 0x800
push ebx
push esi
call fcn.004bd090
push 0x800
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.004a2ea0
mov ecx, dword [esp + 0x28]
xor eax, eax
add eax, dword [esp + 0x2c]
mov dword [esi + 0x1000], eax
mov eax, dword [esp + 0xc]
adc ecx, 0
mov dword [esi + 0x1008], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1004], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x102c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1034], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1038], eax
lea eax, [esp + 0x20]
mov dword [esi + 0x103c], ecx
lea ecx, [esi + 0x1010]
push eax
call fcn.004bed40
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x1018]
call fcn.004bed40
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x1020]
call fcn.004bed40
test dword [esp + 0xc], 0x400
je 0x492a64
cmp dword [esp + 0x30], 0xa0000003
jne 0x492a64
mov al, 1
jmp 0x492a66
xor al, al
mov byte [esi + 0x100e], al
mov eax, edi
mov ecx, dword [esp + 0x125c]
pop edi
mov dword [esi + 0x1040], 0
pop esi
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x1254
ret 0xc
Function at 0x494f80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5508cd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x44
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00531c60
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x24], 0
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea esi, [edi + 0x44]
mov eax, dword [ebp - 0x78]
mov dword [edi], eax
mov eax, dword [ebp - 0x74]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x54]
mov dword [edi + 0x10], eax
mov ax, word [ebp - 0x64]
mov word [edi + 0x14], ax
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x18], eax
movzx eax, byte [ebp - 0x5c]
mov byte [edi + 0x1c], al
movzx eax, byte [ebp - 0x5b]
mov byte [edi + 0x1d], al
movzx eax, byte [ebp - 0x5a]
mov byte [edi + 0x1e], al
mov eax, dword [ebp - 0x58]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x2c], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edi + 0x40], eax
lea eax, [ebp - 0x34]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 0x3c], ecx
cmp esi, eax
je 0x4950b5
mov ecx, esi
call fcn.00403590
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f708
mov esp, ebp
pop ebp
ret
Function at 0x495220
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x5d2834], 0
jne 0x4952b0
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x49528f
jne 0x49526c
cmp dword [esp + 0xc], 0x55f0
jb 0x49526c
call fcn.004952d0
test al, al
je 0x49528f
xor al, al
mov byte [0x5d2834], 1
mov byte [0x5d2835], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0052f708
add esp, 0x118
ret
mov al, 1
mov byte [0x5d2835], al
mov byte [0x5d2834], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0052f708
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, byte [0x5d2835]
xor ecx, esp
call fcn.0052f708
add esp, 0x118
ret
Function at 0x4a1c00
Capabilities:
Get common file path

Disassembly:
sub esp, 8
call fcn.004cff10
test al, al
jne 0x4a1c12
add esp, 8
ret 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edi, dword [esp + 0x18]
xor eax, eax
xor bl, bl
mov word [edi], ax
lea eax, [esp + 0xc]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4a1c8a
push edi
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4a1c8a
cmp word [edi], 0
je 0x4a1c8a
mov esi, dword [esp + 0x1c]
push esi
push edi
call fcn.004a0eb0
push esi
push 0x55affc
push edi
call fcn.004bd030
push edi
call fcn.00490c30
mov bl, al
test bl, bl
jne 0x4a1c8a
cmp byte [esp + 0x20], al
je 0x4a1c8a
push 0
push 0
push edi
call fcn.004911a0
test eax, eax
sete bl
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55670c]
call esi
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 0xc
Function at 0x4a1f20
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0xc
xor eax, eax
push ebp
push edi
mov edi, dword [esp + 0x18]
mov word [edi], ax
lea eax, [esp + 8]
push eax
push 1
push 0
push 0x5674dc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [esp + 0x1c]
test eax, eax
jne 0x4a1f79
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.AppData
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [edi], 0
je 0x4a1f8d
push edi
call fcn.00490c30
test al, al
jne 0x4a209b
call fcn.004cff10
test al, al
je 0x4a2027
push ebx
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
xor eax, eax
xor bl, bl
mov word [edi], ax
lea eax, [esp + 0x14]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4a2009
push edi
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4a2009
cmp word [edi], 0
je 0x4a2009
push ebp
push edi
call fcn.004a0eb0
push ebp
push 0x55affc
push edi
call fcn.004bd030
push edi
call fcn.00490c30
mov bl, al
test bl, bl
jne 0x4a2009
cmp byte [esp + 0x28], al
je 0x4a2009
push 0
push 0
push edi
call fcn.004911a0
test eax, eax
sete bl
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55670c]
call esi
pop esi
test bl, bl
pop ebx
jne 0x4a209b
push ebp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2036
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x4a2065
lea ecx, [edi + eax*2]
nop
movzx edx, word [ecx]
cmp edx, 0x5c
je 0x4a2077
cmp edx, 0x2f
je 0x4a2077
sub ecx, 2
sub eax, 1
jns 0x4a2050
cmp word [edi], 0
je 0x4a207c
cmp word [edi + 2], 0x3a
jne 0x4a207c
lea ecx, [edi + 4]
jmp 0x4a208c
add ecx, 2
jmp 0x4a207e
mov ecx, edi
lea eax, [edi + 4]
cmp ecx, eax
jb 0x4a2096
cmp word [edi + 2], 0x3a
jne 0x4a2093
lea eax, [edi + 8]
cmp ecx, eax
jb 0x4a2096
sub ecx, 2
xor eax, eax
mov word [ecx], ax
pop edi
pop ebp
add esp, 0xc
ret 0xc
Function at 0x4a21d0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x1010]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1018]
movzx eax, word [edi]
test ax, ax
je 0x4a23d4
push eax
call fcn.004bce40
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a2211
movzx eax, word [edi]
lea ebp, [edi + 2]
sub esi, ecx
sar esi, 1
cmp eax, 0x5c
jne 0x4a2231
cmp word [ebp], ax
je 0x4a2264
push eax
call fcn.004bce40
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x4a22fb
cmp word [ebp], 0x3a
jne 0x4a22fb
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x4a2264
cmp eax, 0x2f
jne 0x4a22fb
movzx eax, word [edi]
push eax
call fcn.004bce40
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x4a22ad
cmp word [ebp], 0x3a
jne 0x4a22ad
lea eax, [esi + 4]
mov esi, dword [esp + 0x1020]
cmp esi, eax
jbe 0x4a23d4
push esi
push 0x557b84
push ebx
call fcn.004bd090
push esi
push edi
push ebx
call fcn.004bd030
mov al, 1
jmp 0x4a23d6
cmp word [edi], 0x5c
jne 0x4a23d4
cmp word [ebp], 0x5c
jne 0x4a23d4
lea eax, [esi + 6]
mov esi, dword [esp + 0x1020]
cmp esi, eax
jbe 0x4a23d4
push esi
push 0x557b84
push ebx
call fcn.004bd090
push esi
push 0x5675a4
push ebx
call fcn.004bd030
push esi
push ebp
push ebx
call fcn.004bd030
mov al, 1
jmp 0x4a23d6
lea eax, [esp + 0x10]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4a23d4
cmp eax, 0x7ff
ja 0x4a23d4
movzx eax, word [edi]
cmp eax, 0x5c
je 0x4a239b
cmp eax, 0x2f
je 0x4a239b
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.004a0eb0
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2341
sub ecx, edx
lea eax, [esi + 4]
mov esi, dword [esp + 0x1020]
sar ecx, 1
add eax, ecx
cmp esi, eax
jbe 0x4a23d4
push esi
push 0x557b84
push ebx
call fcn.004bd090
push esi
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004bd030
cmp word [edi], 0x2e
jne 0x4a238f
movzx eax, word [ebp]
push eax
call fcn.004a2560
test al, al
je 0x4a238f
add edi, 4
push esi
push edi
push ebx
call fcn.004bd030
mov al, 1
jmp 0x4a23d6
lea eax, [esi + 6]
mov esi, dword [esp + 0x1020]
cmp esi, eax
jbe 0x4a23d4
push esi
push 0x557b84
push ebx
call fcn.004bd090
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push esi
push eax
push ebx
call fcn.004bd030
push esi
push edi
push ebx
call fcn.004bd030
mov al, 1
jmp 0x4a23d6
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x1004
ret 0xc
Function at 0x4a6db0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, 1
push esi
mov esi, dword [esp + 0xc]
xor cl, cl
cmp esi, eax
jbe 0x4a6dcc
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x4a6dc4
cmp cl, byte [edx]
jne 0x4a6e0d
push esi
push edx
push 0xffffffffffffffff
call fcn.004826b0
xor edx, edx
not eax
xor ecx, ecx
nop
cmp dword [ecx + 0x58944c], eax
jne 0x4a6df0
cmp dword [ecx + 0x589448], esi
je 0x4a6dfd
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x4a6de0
pop esi
ret 0xc
lea eax, [edx + edx*2]
mov ecx, dword [eax*4 + 0x589450]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
pop esi
ret 0xc
Function at 0x4b5cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x41c
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
push edi
mov edi, dword [esp + 0x428]
mov dword [esp + 0x14], ecx
mov dword [eax], 0x28
cmp byte [ecx + 0x50], 0
mov dword [esp + 0x18], eax
je 0x4b5cfe
or dword [eax + 4], 0x800
cmp dword [ecx + 0x24], 0
jbe 0x4b5ee6
mov eax, dword [esp + 0x42c]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b5ee6
push ebx
push ebp
add edi, 0x14
push esi
mov eax, dword [edi - 8]
push 5
push eax
push dword [0x5d2758]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x5d2758]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [0x5d2758]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
call fcn.00538da8
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b5d6d
mov dword [edi], eax
jmp 0x4b5eba
push ebx
push ebp
push esi
call fcn.00531230
movzx ebp, word [esi + 2]
lea eax, [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], 0
mov ecx, 0x5d27b8
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
call fcn.004b4dd0
mov edx, dword [esp + 0x14]
test al, al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
je 0x4b5dff
mov ebx, esi
cmp ebp, 0xffff
jne 0x4b5dc5
lea ebx, [esi + 8]
movsx ecx, word [ebx + 0xe]
mov eax, 0x51eb851f
imul ecx, edx
imul ecx
movsx ecx, word [ebx + 0x10]
imul ecx, dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ebx + 0xe], ax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ebx + 0x10], ax
xor edx, edx
cmp ebp, 0xffff
mov ebp, 0xffff
sete dl
lea edx, [edx*8 + 0x12]
add edx, esi
cmp word [edx], bp
jne 0x4b5e24
mov ecx, 2
jmp 0x4b5e40
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b5e30
sub ecx, ebx
sar ecx, 1
inc ecx
cmp word [edx + ecx*2], bp
lea ebx, [edx + ecx*2]
jne 0x4b5e50
mov ebp, 2
jmp 0x4b5e67
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b5e55
sub eax, edx
sar eax, 1
lea ebp, [eax + 1]
push 0x200
lea eax, [esp + 0x2c]
mov ecx, 0x5d27b8
push eax
push str.CAPTION
push dword [esp + 0x24]
call fcn.004b4e80
test al, al
lea eax, [esp + 0x28]
jne 0x4b5e8f
lea eax, [ebx + ebp*2]
push eax
call fcn.005384bb
add esp, 4
mov dword [edi], eax
cmp dword [esp + 0x14], 0x64
jne 0x4b5eb3
cmp dword [esp + 0x10], 0x64
jne 0x4b5eb3
push esi
call fcn.00537b6f
add esp, 4
jmp 0x4b5eba
or dword [edi - 0x10], 1
mov dword [edi - 8], esi
cmp dword [edi], 0
je 0x4b5ec3
or dword [edi - 0x10], 8
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x50], 0
je 0x4b5ed5
mov eax, dword [esp + 0x24]
or dword [eax + 4], 0x10
add edi, 0x38
sub dword [esp + 0x1c], 1
jne 0x4b5d21
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
pop edi
xor ecx, esp
call fcn.0052f708
add esp, 0x41c
ret 0xc
Function at 0x4b6660
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2010
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x200c], eax
push esi
mov esi, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
cmp edi, esi
je 0x4b669a
push dword [esp + 0x2024]
push esi
push edi
call fcn.004bd090
push 0x31
push dword [0x5894a0]
call fcn.00531ea0
add esp, 8
test eax, eax
je 0x4b678f
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b678f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4b66e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b66e0
sub ecx, edx
mov eax, 0x7ff
sar ecx, 1
sub eax, ecx
add eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1018]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.LanguageFolder
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b6785
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x800
push eax
lea eax, [esp + 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x800
lea eax, [esp + 0x18]
push eax
call fcn.004a0eb0
push 0x800
push esi
call fcn.004a2d90
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004bd030
lea eax, [esp + 0x14]
push eax
call fcn.00490c30
test al, al
je 0x4b6785
push dword [esp + 0x2024]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004bd090
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0x2010
ret 0xc

Function at 0x4b67b0
Capabilities:
Check os version

Disassembly:
mov eax, 0x1120
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x111c], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1130]
cmp byte [esi], 0
je 0x4b67f1
push dword [0x5d2758]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x5d275c]
mov dword [0x5d2758], eax
mov byte [esi], 0
lea eax, [esp + 0x124]
push 0x800
test edi, edi
je 0x4b680a
push edi
push eax
call fcn.004bd090
jmp 0x4b6813
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarlng.dll
lea eax, [esp + 0x12c]
push eax
call fcn.004a2ea0
push 0x800
lea eax, [esp + 0x128]
push eax
push eax
call fcn.004b6660
lea eax, [esp + 8]
mov dword [esp + 8], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x18], 2
jne 0x4b687f
cmp dword [esp + 0xc], 5
ja 0x4b686b
jne 0x4b687f
cmp word [esp + 0x11c], 2
jb 0x4b687f
push 2
push 0
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4b688d
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x5d2758], eax
pop edi
setne al
mov byte [esi], al
test al, al
mov eax, dword [esp + 0x1128]
pop esi
mov dword [0x5d275c], eax
jne 0x4b68b0
mov dword [0x5d2758], eax
mov ecx, dword [esp + 0x111c]
xor ecx, esp
call fcn.0052f708
add esp, 0x1120
ret 8