joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4648b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4ea93c]
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.00443720
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc0]
push edx
push eax
push esi
call fcn.00443740
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.004437c0
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 0x464aab
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 0x464a70
mov dword [esp + 0x14], ecx
jmp 0x4649d0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x220]
push edx
call fcn.004437c0
lea eax, [esp + 0x20]
push eax
push 0x14
lea ecx, [esp + 0x220]
push ecx
call fcn.00443860
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 0x464a00
sub dword [esp + 0x14], 1
mov ecx, 0x28
lea esi, [esp + 0xc0]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
jne 0x4649d0
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, dword [ebp + 0x20]
jae 0x464a90
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 0x464a76
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 0x464955
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bfc52
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x465ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, ebp
cmp ebp, 0x8000
jb 0x465cc5
mov eax, 0x8000
mov edi, dword [esp + 0x10]
push ebx
push eax
mov eax, dword [esi + 0xc]
push edi
push eax
call fcn.004c0c90
mov eax, 1
add esp, 0xc
xor bl, bl
cmp ebp, eax
jbe 0x465ceb
xor bl, byte [eax + edi]
inc eax
cmp eax, ebp
jb 0x465ce3
push 8
mov ecx, esi
call fcn.004418a0
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x14], 0
cmp bl, byte [edi]
pop ebx
jne 0x465d2c
push ebp
push edi
push 0xffffffffffffffff
call fcn.004279c0
xor edx, edx
not eax
xor ecx, ecx
cmp dword [ecx + 0x4e9644], eax
jne 0x465d23
cmp dword [ecx + 0x4e9640], ebp
je 0x465d9b
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x465d13
push 1
mov ecx, esi
call fcn.00465c10
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
mov dword [esi + 0x14], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi]
lea eax, [eax + edx*8]
lea ecx, [eax + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, 3
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
lea edx, [eax + 0x1c]
xor ecx, ecx
mov dword [eax], 0x16
mov dword [eax + 0x24], edx
cmp dword [esi + 0x14], ecx
jle 0x465d95
xor edx, edx
lea esp, [esp]
mov eax, dword [esi]
add eax, edx
cmp dword [eax + 0x14], 0
jne 0x465d80
lea edi, [eax + 0xc]
mov dword [eax + 0x14], edi
cmp dword [eax + 0x24], 0
jne 0x465d8c
lea edi, [eax + 0x1c]
mov dword [eax + 0x24], edi
inc ecx
add edx, 0x28
cmp ecx, dword [esi + 0x14]
jl 0x465d70
pop edi
pop esi
pop ebp
ret 0xc
lea ecx, [edx + edx*2]
mov edi, dword [ecx*4 + 0x4e9648]
test edi, edi
je 0x465d2c
push 1
mov ecx, esi
call fcn.00465c10
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
lea edx, [eax + 1]
mov dword [esi + 0x14], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
lea ecx, [eax + 0xc]
mov dword [ecx], edi
pop edi
mov dword [eax + 0x14], ecx
mov ecx, 3
lea edx, [eax + 0x1c]
pop esi
mov dword [eax], 0x28
mov dword [eax + 0x24], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
pop ebp
ret 0xc
Function at 0x46b0e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x4ea93c]
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 0x46b1db
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 0x46b1db
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 0x46b1b8
lea ebx, [ebx]
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x1b8]
push 0x4da238
push eax
mov edx, 0x200
call fcn.0043a6e0
add esp, 0x10
lea ecx, [esp + 0x1b0]
push ecx
push ebp
call fcn.0046b0e0
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 0x46b160
mov eax, dword [esp + 0x14]
pop esi
pop ebx
test eax, eax
je 0x46b1c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x46b1db
inc dword [0x55fca4]
mov ecx, dword [esp + 0x5a8]
pop edi
pop ebp
xor ecx, esp
call fcn.004bfc52
add esp, 0x5a4
ret 8

Function at 0x46b200
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x404
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x40c]
push esi
mov esi, dword [esp + 0x40c]
cmp esi, 0x80000001
jne 0x46b26e
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x46b25e
test cx, cx
mov ecx, 0x4d68d8
jne 0x46b243
mov ecx, 0x4d69fc
push eax
push ecx
lea eax, [esp + 0xc]
push str.SoftwareWinRAR_s_s
push eax
mov edx, 0x200
call fcn.0043a6e0
add esp, 0x10
jmp 0x46b27e
push 0x200
add eax, 2
push eax
lea ecx, [esp + 0xc]
push ecx
jmp 0x46b279
push 0x200
push eax
lea edx, [esp + 0xc]
push edx
call fcn.0047e340
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.004bfc52
add esp, 0x404
ret 8
Function at 0x46b2b0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x4ea93c]
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 0x46b326
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x46b316
test cx, cx
mov ecx, 0x4d68d8
jne 0x46b2fb
mov ecx, 0x4d69fc
push eax
push ecx
lea eax, [esp + 0x14]
push str.SoftwareWinRAR_s_s
push eax
mov edx, 0x200
call fcn.0043a6e0
add esp, 0x10
jmp 0x46b336
push 0x200
add eax, 2
push eax
lea ecx, [esp + 0x14]
push ecx
jmp 0x46b331
push 0x200
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0047e340
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 0x46b36d
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 0x46b36d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
xor ecx, esp
call fcn.004bfc52
add esp, 0x408
ret 0xc

Function at 0x46b630
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.0046b4a0
mov edi, eax
test edi, edi
je 0x46b688
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b653
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 0x46b740
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.0046b570
mov esi, eax
mov dword [esp + 0x10], 4
test esi, esi
je 0x46b794
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 0x46b794
cmp dword [esp + 0x10], 0
jne 0x46b79d
mov eax, dword [esp + 0x18]
pop esi
pop ecx
ret 0x10
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 0x10
Function at 0x46b7b0
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.0046b570
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x14], ebp
test esi, esi
je 0x46b803
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 0x46b803
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x46b82b
mov eax, dword [esp + 0x20]
push ebp
test eax, eax
je 0x46b81e
push eax
push ebx
call fcn.004c0c90
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
push 0
push ebx
call fcn.004c05a0
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
ret 0x18
Function at 0x46bc00
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.0046b4a0
mov esi, eax
test esi, esi
je 0x46bc4a
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 0x46bc60
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.0046b4a0
mov esi, eax
test esi, esi
je 0x46bca5
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 0x46bd30
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
mov esi, 0x80000001
call fcn.0046b570
mov edi, eax
test edi, edi
jne 0x46bd4c
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 0x46c100
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 0x46c106
pop esi
pop ebx
ret
Function at 0x471790
Capabilities:
Write file on windows

Disassembly:
mov eax, 0xa804
call fcn.004bfc70
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0xa800], eax
mov ecx, dword [esp + 0xa80c]
lea eax, [esp + 0xa810]
push eax
push ecx
lea edx, [esp + 8]
push 0x1800
push edx
call fcn.004c3959
xor eax, eax
mov word [esp + 0x300e], ax
mov eax, dword [esp + 0xa818]
add esp, 0x10
sub eax, 0
je 0x471849
sub eax, 1
je 0x471827
sub eax, 1
jne 0x47188d
push 0x1800
lea ecx, [esp + 0x3004]
push ecx
lea edx, [esp + 8]
push edx
call fcn.004859b0
lea eax, [esp + 0x3000]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x471810
push esi
sub eax, edx
push eax
push 1
lea eax, [esp + 0x300c]
push eax
jmp 0x471885
lea eax, [esp]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471830
sub eax, edx
push esi
sar eax, 1
push eax
push 2
lea ecx, [esp + 0xc]
jmp 0x471884
push 0x6000
lea edx, [esp + 0x4804]
push edx
lea eax, [esp + 8]
push eax
call fcn.00485ac0
lea eax, [esp + 0x4800]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x471870
push esi
sub eax, edx
push eax
push 1
lea ecx, [esp + 0x480c]
push ecx
call fcn.004c2576
add esp, 0x10
mov ecx, dword [esp + 0xa800]
xor ecx, esp
call fcn.004bfc52
add esp, 0xa804
ret

Function at 0x4718b0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1054
call fcn.004bfc70
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x1050], eax
cmp byte [0x5323f1], 0
je 0x471906
push 0x800
lea eax, [esp + 4]
push eax
call fcn.004a28a0
test al, al
je 0x47194c
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 0x47194c
lea edx, [esp]
jmp 0x471938
lea eax, [esp]
push eax
mov ecx, 0x53ed88
call fcn.0044c750
test al, al
je 0x47194c
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 0x47194c
lea edx, [esp]
push edx
push 0x557
call fcn.004744a0
push eax
call fcn.004ab990
add esp, 8
mov ecx, dword [esp + 0x1050]
xor ecx, esp
call fcn.004bfc52
add esp, 0x1054
ret
Function at 0x4740d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x418
mov eax, dword [0x4ea93c]
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 [0x51e7a4]
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x51e7a4]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x51e7a4]
push esi
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.004c0bc4
mov edi, eax
add esp, 4
test edi, edi
jne 0x474149
mov dword [ebx], eax
jmp 0x474289
push esi
push ebp
push edi
call fcn.004c0c90
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.00473ab0
mov ebp, dword [esp + 0x1c]
test al, al
je 0x4741d0
mov ecx, edi
test bl, bl
je 0x474196
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 0x4741f3
mov eax, 2
jmp 0x474210
mov eax, edx
lea esi, [eax + 2]
jmp 0x474200
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474200
sub eax, esi
sar eax, 1
inc eax
lea edx, [edx + eax*2]
mov ecx, 0xffff
cmp word [edx], cx
jne 0x474224
mov eax, 2
jmp 0x474240
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474230
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.004738e0
lea eax, [esp + 0x24]
push eax
call fcn.004c1986
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [ecx], eax
cmp ebp, 0x64
jne 0x474287
cmp dword [esp + 0x10], ebp
jne 0x474287
push edi
call fcn.004bff04
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.004bfc52
add esp, 0x418
ret 8
Function at 0x474370
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2010
call fcn.004bfc70
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2020]
push esi
mov esi, dword [esp + 0x201c]
push edi
mov edi, dword [esp + 0x2024]
cmp edi, esi
je 0x4743ac
push ebx
push esi
push edi
call fcn.0047e340
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 0x47447d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4743d2
sub eax, edx
sar eax, 1
mov ecx, 0x7ff
sub ecx, eax
add ecx, ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x101c]
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 0x474472
push 0x800
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1020]
push edx
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x800
lea eax, [esp + 0x1c]
push eax
call fcn.0045f4a0
push 0x800
push esi
call fcn.0045f900
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0047e380
lea edx, [esp + 0x18]
push edx
call fcn.0043c780
test al, al
je 0x474472
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0047e340
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bfc52
add esp, 0x2010
ret 0xc

Function at 0x474560
Capabilities:
Check os version

Disassembly:
mov eax, 0x1118
call fcn.004bfc70
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x1114], eax
push esi
mov esi, ecx
cmp byte [esi], 0
je 0x47459b
mov eax, dword [0x51e7a4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x51e7a0]
mov dword [0x51e7a4], ecx
mov byte [esi], 0
mov eax, dword [esp + 0x1124]
lea edx, [esp + 0x118]
test eax, eax
je 0x4745c1
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4745b0
jmp 0x4745cf
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarlng.dll
lea eax, [esp + 0x120]
push eax
call fcn.0045fad0
push 0x800
lea ecx, [esp + 0x11c]
push ecx
mov edx, ecx
push edx
call fcn.00474370
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 2
jne 0x47463b
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x474627
jne 0x47463b
cmp dword [esp + 0xc], 1
jbe 0x47463b
push 2
push 0
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x474649
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x51e7a4], eax
setne al
mov byte [esi], al
test al, al
mov eax, dword [esp + 0x1120]
pop esi
mov dword [0x51e7a0], eax
jne 0x47466b
mov dword [0x51e7a4], eax
mov ecx, dword [esp + 0x1114]
xor ecx, esp
call fcn.004bfc52
add esp, 0x1118
ret 8
Function at 0x4748d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
push edi
mov ebp, ecx
mov edi, 1
cmp dword [ebp], edi
jle 0x474a0a
push ebx
push esi
lea esi, [ebp + 0x24]
lea ecx, [ebp + 0x28]
jmp 0x474900
xor eax, eax
jmp 0x474910
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x562cf0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x5630f0]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x5634f0]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x5638f0]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x562cf0]
xor dl, byte [eax + ebx*4 + 0x5630f0]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x5634f0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x5638f0]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x562cf0]
xor dl, byte [eax + ebx*4 + 0x5630f0]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x5634f0]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x5638f0]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x18], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x562cf0]
xor dl, byte [eax + ebx*4 + 0x5630f0]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x5634f0]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x5638f0]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x1b], dl
jl 0x474910
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
inc edi
add ecx, 0x10
add esi, 0x10
cmp edi, dword [ebp]
jl 0x474900
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
xor ecx, esp
call fcn.004bfc52
add esp, 0x14
ret
Function at 0x475580
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
mov ebx, ecx
test eax, eax
ja 0x4755b9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004bfc52
add esp, 0x18
ret 0xc
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 8]
mov edx, dword [esi + 8]
xor edx, dword [ebx + 0xc]
shr eax, 4
push ebp
mov ebp, eax
mov eax, dword [esi]
xor eax, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0x10]
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00474a20
add esi, 0x10
add ebp, 0xffffffff
je 0x47563e
nop
mov edx, dword [edi]
xor edx, dword [esi]
mov eax, dword [edi + 4]
xor eax, dword [esi + 4]
mov ecx, dword [edi + 8]
xor ecx, dword [esi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
xor edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
add edi, 0x10
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], edx
call fcn.00474a20
add esi, 0x10
sub ebp, 1
jne 0x475600
mov ecx, dword [edi]
mov dword [ebx + 4], ecx
mov edx, dword [edi + 4]
mov dword [ebx + 8], edx
mov eax, dword [edi + 8]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
shl eax, 4
call fcn.004bfc52
add esp, 0x18
ret 0xc