joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456de0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0x1a
push 0
mov byte [esi], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x456e67
mov edx, dword [esp + 4]
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x456e67
cmp byte [esi], 0
je 0x456e67
push esi
call fcn.00456ce0
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x456e27
mov ecx, dword [0x4cad7c]
mov dword [eax], ecx
mov dx, word [0x4cad80]
mov word [eax + 4], dx
mov cl, byte [0x4cad82]
push 0
push esi
mov byte [eax + 6], cl
call fcn.00435a70
test al, al
jne 0x456e93
push 0
push 0
push 0
push esi
call fcn.00436280
test eax, eax
je 0x456e93
push 0x400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.004567a0
lea edx, [esi + 2]
cmp eax, edx
jb 0x456e90
cmp byte [esi + 1], 0x3a
jne 0x456e8f
add esi, 4
cmp eax, esi
jb 0x456e90
dec eax
mov byte [eax], 0
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
pop esi
add esp, 8
ret 4

Function at 0x456eb0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
xor ecx, ecx
push 0x1a
push ecx
mov word [esi], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x456f4d
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x456f4d
cmp word [esi], 0
je 0x456f4d
push esi
call fcn.004561a0
mov eax, esi
add eax, 0xfffffffe
jmp 0x456f00
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x456f00
mov ecx, dword [0x4c9898]
mov dword [eax], ecx
mov edx, dword [0x4c989c]
mov dword [eax + 4], edx
mov ecx, dword [0x4c98a0]
mov dword [eax + 8], ecx
mov dx, word [0x4c98a4]
push esi
push 0
mov word [eax + 0xc], dx
call fcn.00435a70
test al, al
jne 0x456f7e
push 0
push 0
push esi
push 0
call fcn.00436280
test eax, eax
je 0x456f7e
push 0x400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00456820
lea ecx, [esi + 4]
cmp eax, ecx
jb 0x456f79
cmp word [esi + 2], 0x3a
jne 0x456f76
add esi, 8
cmp eax, esi
jb 0x456f79
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
pop esi
add esp, 8
ret 4
Function at 0x456fa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 1
push 0
push 0x4cad8c
push 0x80000001
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x456ff7
lea ecx, [esp + 4]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x20]
push 0x4cad84
push eax
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
je 0x457008
push 0
push esi
call fcn.00435a70
test al, al
jne 0x45700e
push esi
call fcn.00456de0
pop esi
add esp, 8
ret 4

Function at 0x457020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push 1
xor eax, eax
push eax
push str.SoftwareWinRARPaths
push 0x80000001
mov word [esi], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x457079
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push esi
lea eax, [esp + 0x10]
push eax
push 0
push str.AppData
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
je 0x45708b
push esi
push 0
call fcn.00435a70
test al, al
jne 0x457091
push esi
call fcn.00456eb0
pop esi
add esp, 8
ret 4
Function at 0x45b650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0x20], eax
call fcn.0043d600
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc0]
push edx
push eax
push esi
call fcn.0043d620
mov edx, dword [ebp + 0x14]
mov ecx, 0x28
lea esi, [esp + 0xc0]
lea edi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x160]
push ecx
push edx
push ebx
call fcn.0043d6a0
mov eax, dword [ebp + 0x20]
lea ecx, [eax - 1]
mov eax, 0xcccccccd
mul ecx
shr edx, 4
add edx, 1
mov dword [esp + 0x18], edx
je 0x45b84b
lea edx, [esp + 0x204]
mov dword [esp + 0x10], 0
mov ebx, 1
mov dword [esp + 0xc], edx
xor eax, eax
mov ecx, 0x28
lea esi, [esp + 0x160]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x204], eax
mov dword [esp + 0x208], eax
mov dword [esp + 0x20c], eax
mov dword [esp + 0x210], eax
mov dword [esp + 0x214], eax
mov ecx, ebx
shr ecx, 0x10
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x219], cl
mov ecx, dword [ebp + 0x18]
mov edx, ebx
shr edx, 8
mov byte [esp + 0x218], al
mov byte [esp + 0x21a], dl
mov byte [esp + 0x21b], bl
mov eax, 4
test ecx, ecx
jbe 0x45b810
mov dword [esp + 0x14], ecx
jmp 0x45b770
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x220]
push edx
call fcn.0043d6a0
lea eax, [esp + 0x20]
push eax
push 0x14
lea ecx, [esp + 0x220]
push ecx
call fcn.0043d740
xor eax, eax
lea esp, [esp]
movzx edx, byte [esp + eax + 0x218]
xor byte [esp + eax + 0x204], dl
movzx ecx, byte [esp + eax + 0x219]
movzx edx, byte [esp + eax + 0x21a]
xor byte [esp + eax + 0x205], cl
xor byte [esp + eax + 0x206], dl
movzx ecx, byte [esp + eax + 0x21b]
movzx edx, byte [esp + eax + 0x21c]
xor byte [esp + eax + 0x207], cl
xor byte [esp + eax + 0x208], dl
add eax, 5
cmp eax, 0x14
jb 0x45b7a0
sub dword [esp + 0x14], 1
mov ecx, 0x28
lea esi, [esp + 0xc0]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
jne 0x45b770
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, dword [ebp + 0x20]
jae 0x45b830
mov edx, dword [esp + 0xc]
mov dl, byte [edx + eax]
mov esi, dword [esp + 0x1c]
mov byte [eax + esi], dl
inc ecx
inc eax
cmp ecx, 0x14
jb 0x45b816
mov eax, 0x14
add dword [esp + 0x10], eax
sub dword [esp + 0xc], eax
inc ebx
lea eax, [ebx - 1]
cmp eax, dword [esp + 0x18]
jb 0x45b6f5
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b102c
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4602e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebp
mov ebp, dword [esp + 0x5ac]
push edi
mov edi, dword [esp + 0x5b4]
cmp word [edi], 0
je 0x4603db
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4603db
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
jne 0x4603b8
lea ebx, [ebx]
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x1b8]
push 0x4caefc
push eax
mov edx, 0x200
call fcn.00483770
add esp, 0x10
lea ecx, [esp + 0x1b0]
push ecx
push ebp
call fcn.004602e0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
je 0x460360
mov eax, dword [esp + 0x14]
pop esi
pop ebx
test eax, eax
je 0x4603c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4603db
inc dword [0x533254]
mov ecx, dword [esp + 0x5a8]
pop edi
pop ebp
xor ecx, esp
call fcn.004b102c
add esp, 0x5a4
ret 8

Function at 0x460400
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x404
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x40c]
push esi
mov esi, dword [esp + 0x40c]
cmp esi, 0x80000001
jne 0x46046e
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x46045e
test cx, cx
mov ecx, 0x4c7884
jne 0x460443
mov ecx, 0x4c79a8
push eax
push ecx
lea eax, [esp + 0xc]
push str.SoftwareWinRAR_s_s
push eax
mov edx, 0x200
call fcn.00483770
add esp, 0x10
jmp 0x46047e
push 0x200
add eax, 2
push eax
lea ecx, [esp + 0xc]
push ecx
jmp 0x460479
push 0x200
push eax
lea edx, [esp + 0xc]
push edx
call fcn.004709a0
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
call fcn.004b102c
add esp, 0x404
ret 8
Function at 0x4604b0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x410]
push esi
mov esi, dword [esp + 0x410]
push edi
mov edi, dword [esp + 0x41c]
cmp esi, 0x80000001
jne 0x460526
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x460516
test cx, cx
mov ecx, 0x4c7884
jne 0x4604fb
mov ecx, 0x4c79a8
push eax
push ecx
lea eax, [esp + 0x14]
push str.SoftwareWinRAR_s_s
push eax
mov edx, 0x200
call fcn.00483770
add esp, 0x10
jmp 0x460536
push 0x200
add eax, 2
push eax
lea ecx, [esp + 0x14]
push ecx
jmp 0x460531
push 0x200
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004709a0
lea eax, [esp + 8]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46056d
mov edx, dword [esp + 8]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 8]
test eax, eax
je 0x46056d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
xor ecx, esp
call fcn.004b102c
add esp, 0x408
ret 0xc

Function at 0x460830
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
push eax
lea edi, [esp + 0x14]
call fcn.004606a0
mov edi, eax
test edi, edi
je 0x460888
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460853
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
ret 0x10

Function at 0x460940
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push eax
call fcn.00460770
mov esi, eax
mov dword [esp + 0x10], 4
test esi, esi
je 0x460994
push ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push esi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
je 0x460994
cmp dword [esp + 0x10], 0
jne 0x46099d
mov eax, dword [esp + 0x18]
pop esi
pop ecx
ret 0x10
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 0x10
Function at 0x4609b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push eax
call fcn.00460770
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x14], ebp
test esi, esi
je 0x460a03
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x18]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x460a03
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x460a2b
mov eax, dword [esp + 0x20]
push ebp
test eax, eax
je 0x460a1e
push eax
push ebx
call fcn.004b1530
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
push 0
push ebx
call fcn.004b14b0
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
ret 0x18
Function at 0x460e00
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
lea edi, [esp + 0x10]
mov esi, 0x80000001
mov dword [esp + 0x18], eax
call fcn.004606a0
mov esi, eax
test esi, esi
je 0x460e4a
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret 0xc

Function at 0x460e60
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
lea edi, [esp + 0x10]
mov esi, 0x80000001
call fcn.004606a0
mov esi, eax
test esi, esi
je 0x460ea5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edx
push 3
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret 0x10

Function at 0x460f30
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
mov esi, 0x80000001
call fcn.00460770
mov edi, eax
test edi, edi
jne 0x460f4c
pop edi
pop esi
ret 8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
ret 8

Function at 0x461430
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor esi, esi
xor ebx, ebx
xor byte [esi + ecx], bl
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ebx, [edx + ebx + 3]
inc esi
and ebx, 0xffffff
cmp esi, 0x480
jb 0x461436
pop esi
pop ebx
ret
Function at 0x4643c0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x8c04
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x8c00], eax
mov ecx, dword [esp + 0x8c0c]
lea eax, [esp + 0x8c10]
push eax
push ecx
lea edx, [esp + 8]
push 0x1400
push edx
call fcn.004b478b
xor eax, eax
mov word [esp + 0x280e], ax
mov eax, dword [esp + 0x8c18]
add esp, 0x10
sub eax, 0
je 0x464479
sub eax, 1
je 0x464457
sub eax, 1
jne 0x4644bd
push 0x1400
lea ecx, [esp + 0x2804]
push ecx
lea edx, [esp + 8]
push edx
call fcn.00456730
lea eax, [esp + 0x2800]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464440
push esi
sub eax, edx
push eax
push 1
lea eax, [esp + 0x280c]
push eax
jmp 0x4644b5
lea eax, [esp]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464460
sub eax, edx
push esi
sar eax, 1
push eax
push 2
lea ecx, [esp + 0xc]
jmp 0x4644b4
push 0x5000
lea edx, [esp + 0x3c04]
push edx
lea eax, [esp + 8]
push eax
call fcn.00478020
lea eax, [esp + 0x3c00]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4644a0
push esi
sub eax, edx
push eax
push 1
lea ecx, [esp + 0x3c0c]
push ecx
call fcn.004b39f8
add esp, 0x10
mov ecx, dword [esp + 0x8c00]
xor ecx, esp
call fcn.004b102c
add esp, 0x8c04
ret

Function at 0x4644e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x834
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x830], eax
cmp byte [0x51b789], 0
je 0x46452c
lea eax, [esp]
push eax
call fcn.00491270
test al, al
je 0x464572
push 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x464572
lea edx, [esp]
jmp 0x46455e
lea eax, [esp]
push eax
mov ecx, 0x5220b8
call fcn.004468e0
test al, al
je 0x464572
push 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x464572
lea edx, [esp]
push edx
push 0x557
call fcn.004671c0
push eax
call fcn.0049a620
add esp, 8
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.004b102c
add esp, 0x834
ret
Function at 0x466ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x418
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x41c]
push ebx
mov ebx, dword [esp + 0x424]
push ebp
push esi
push edi
push 5
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x508300]
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x508300]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x508300]
push esi
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.004b1137
mov edi, eax
add esp, 4
test edi, edi
jne 0x466d59
mov dword [ebx], eax
jmp 0x466e99
push esi
push ebp
push edi
call fcn.004b1530
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
add esp, 0xc
and eax, 0xffff0000
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
cmp eax, 0xffff0000
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
sete bl
call fcn.004666c0
mov ebp, dword [esp + 0x1c]
test al, al
je 0x466de0
mov ecx, edi
test bl, bl
je 0x466da6
lea ecx, [edi + 8]
movsx edx, word [ecx + 0xe]
imul edx, ebp
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx edx, word [ecx + 0x10]
imul edx, dword [esp + 0x10]
mov word [ecx + 0xe], ax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ecx + 0x10], ax
xor ecx, ecx
test bl, bl
setne cl
mov eax, 0xffff
lea ecx, [ecx*4 + 9]
cmp word [edi + ecx*2], ax
lea edx, [edi + ecx*2]
jne 0x466e03
mov eax, 2
jmp 0x466e20
mov eax, edx
lea esi, [eax + 2]
jmp 0x466e10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466e10
sub eax, esi
sar eax, 1
inc eax
lea edx, [edx + eax*2]
mov ecx, 0xffff
cmp word [edx], cx
jne 0x466e34
mov eax, 2
jmp 0x466e50
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466e40
sub eax, esi
sar eax, 1
inc eax
mov ecx, dword [esp + 0x14]
push ecx
push 1
push 0x200
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [edx + eax*2]
push edx
call fcn.004664f0
lea eax, [esp + 0x24]
push eax
call fcn.004b27f4
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [ecx], eax
cmp ebp, 0x64
jne 0x466e97
cmp dword [esp + 0x10], ebp
jne 0x466e97
push edi
call fcn.004b1201
add esp, 4
xor edi, edi
mov eax, edi
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b102c
add esp, 0x418
ret 8
Function at 0x466f90
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x1010
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x101c]
push ebp
mov ebp, dword [esp + 0x1024]
push esi
mov esi, dword [esp + 0x1020]
cmp ebx, esi
je 0x466fcc
push ebp
push esi
push ebx
call fcn.004709a0
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4670c9
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466ff2
sub eax, edx
sar eax, 1
mov ecx, 0x3ff
sub ecx, eax
add ecx, ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x81c]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.LanguageFolder
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4670be
push 0x400
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x820]
push edx
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x18]
push eax
call fcn.004561a0
push esi
call fcn.00456820
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x467070
push edi
lea edi, [esp + 0x1c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x467085
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 + 0x1c]
push ecx
push 0
call fcn.00435a70
pop edi
test al, al
je 0x4670be
push ebp
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.004709a0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1018]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b102c
add esp, 0x1010
ret 0xc
Function at 0x467280
Capabilities:
Check os version

Disassembly:
sub esp, 0x918
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x914], eax
push edi
mov edi, ecx
cmp byte [edi], 0
je 0x4672b7
mov eax, dword [0x508300]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x5082fc]
mov dword [0x508300], ecx
mov byte [edi], 0
mov eax, dword [esp + 0x924]
lea edx, [esp + 0x118]
test eax, eax
je 0x4672e1
sub edx, eax
jmp 0x4672d0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4672d0
jmp 0x4672ef
push 0x400
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [esp + 0x11c]
push eax
mov esi, str.rarlng.dll
call fcn.00456820
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x467302
push 0x400
lea ecx, [esp + 0x120]
push ecx
mov edx, ecx
push edx
call fcn.00466f90
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x18], 2
pop esi
jne 0x467369
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x467355
jne 0x467369
cmp dword [esp + 0xc], 1
jbe 0x467369
push 2
push 0
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x467377
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x508300], eax
setne al
mov byte [edi], al
test al, al
mov eax, dword [esp + 0x920]
pop edi
mov dword [0x5082fc], eax
jne 0x467399
mov dword [0x508300], eax
mov ecx, dword [esp + 0x914]
xor ecx, esp
call fcn.004b102c
add esp, 0x918
ret 8