joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f026
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x456c64
je 0x43f0e2
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43f0ca
mov esi, dword [ebx + 4]
jmp 0x43f0c4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43f0b4
cmp dword [ebp - 0xc], 4
jne 0x43f0b4
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x43f0ac
or dword [eax + 0x9c], ecx
jmp 0x43f0b4
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x43f078
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x43f05b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x43f4a5
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x443bc8
call fcn.004252f4
sub esp, 0x228
mov eax, dword [0x4573c0]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x228]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x43f5b3
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x43f587
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00403c90
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0043f4a5
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004010f0
test bl, bl
jne 0x43f587
or dword [ebp - 4], 0xffffffff
jmp 0x43f4f2
cmp esi, 0x103
je 0x43f597
cmp esi, 0x3f2
jne 0x43f5a7
push dword [edi]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423e28
leave
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d004]
jne 0x40100a
repz ret
jmp fcn.004014cd

Function at 0x4074fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403f44
and dword [ebp - 0x14], 0
cmp dword [0x42fe88], 0
mov dword [ebp - 0x18], eax
jne 0x4075b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407659
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407659
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42fe88], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42fe8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42fe90], eax
call edi
push eax
call esi
mov dword [0x42fe98], eax
test eax, eax
je 0x4075b1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42fe94], eax
mov eax, dword [0x42fe94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40760a
cmp dword [0x42fe98], ecx
je 0x40760a
push eax
call esi
push dword [0x42fe98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40760a
test ebx, ebx
je 0x40760a
call edi
test eax, eax
je 0x407601
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407601
test byte [ebp - 8], 1
jne 0x40760a
or dword [ebp + 0x10], 0x200000
jmp 0x40763d
mov eax, dword [0x42fe8c]
cmp eax, dword [ebp - 0x18]
je 0x40763d
push eax
call esi
test eax, eax
je 0x40763d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40763d
mov eax, dword [0x42fe90]
cmp eax, dword [ebp - 0x18]
je 0x40763d
push eax
call esi
test eax, eax
je 0x40763d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42fe88]
call esi
test eax, eax
je 0x407659
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40765b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x429bf0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42e2f0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1f02038]
push edi
mov edi, dword [0x1f02314]
push eax
call fcn.00429b00
add esp, 4
cmp dword [0x1f02314], 0x2f
jne 0x429c4d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00429b50
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40907f
pop dword [ebp - 0x14]
mov eax, 0x84970740
add eax, 0x7ba9893f
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3e8fa
push 0
mov eax, 0x15066fb
add eax, 0xfef079dd
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x5812adbc
add ecx, 0xa7edafb2
mov edx, eax
mov esi, 0xe741b383
sub esi, 0xe70077bf
add esi, dword [ebp - 0x14]
mov ebx, 0x8b66f0e1
sub ebx, 0xa95488ff
mov edi, dword [esi]
add dword [ebp - 0x10], edi
sub edi, ebx
xor dword [ebp - 0xc], 0xb3a8adba
mov dword [edx], edi
sub dword [ebp - 0xc], 0xb993ca0f
add edx, 4
add esi, 0xa35c222c
sub esi, 0xa35c2228
loop 0x4090de
add eax, 0x1688b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xee773b2d
sub ecx, 0xee373b2d
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x405f2e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdb4], 0
push esi
jne 0x405f65
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f3f
mov dword [ecx*4 + 0x42bdb0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f3a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f96
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdb0]
xor eax, esi
inc ecx
dec edx
jne 0x405f78
pop edi
not eax
pop esi
ret 0xc

Function at 0x401995
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403010]
jne 0x40199f
repz ret
jmp fcn.00401cd8
Function at 0xac1609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0xac1a90
call fcn.00ac17b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0xac2370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0xac13c4
cmp eax, esi
jne 0xac13b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0xac13c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0xac139e
xor esi, esi
inc esi
mov eax, dword [0xac236c]
cmp eax, esi
jne 0xac13da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0xac1409
mov eax, dword [0xac236c]
test eax, eax
jne 0xac1403
mov dword [0xac236c], esi
push 0xac10b8
push 0xac10ac
call fcn.00ac1300
pop ecx
pop ecx
test eax, eax
je 0xac1409
jmp 0xac152d
mov dword [0xac2034], esi
mov eax, dword [0xac236c]
cmp eax, esi
jne 0xac142d
push 0xac10a8
push 0xac10a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0xac236c], 2
cmp dword [ebp - 0x20], ebx
jne 0xac143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0xac2374], ebx
je 0xac145b
push 0xac2374
call fcn.00ac1729
pop ecx
test eax, eax
je 0xac145b
push ebx
push 2
push ebx
call dword [0xac2374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0xac152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0xac14c5
cmp cx, bx
je 0xac1480
cmp dword [ebp - 0x1c], ebx
jne 0xac14c5
movzx ecx, word [eax]
cmp cx, bx
je 0xac1495
cmp cx, 0x20
ja 0xac1495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0xac1480
test byte [ebp - 0x40], 1
je 0xac14a1
movzx ecx, word [ebp - 0x3c]
jmp 0xac14a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0xac0000
call main
mov dword [0xac2030], eax
cmp dword [0xac2024], ebx
jne 0xac150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0xac14d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0xac146a
cmp dword [0xac2034], ebx
jne 0xac1518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0xac2030]
jmp 0xac1539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00ac17f9
ret
call fcn.00ac1901
jmp 0xac1361
Function at 0x401c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00401890
push eax
push esi
push dword [ebp + 8]
call fcn.00401845
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00401890
push eax
push esi
push dword [ebp + 8]
call fcn.00401845
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
inc ebp
in al, 0x2b
Function at 0x405b8f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405c9f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405bbc
dec eax
je 0x405bb1
dec eax
jne 0x405bbc
push 0xfffffffffffffff4
jmp 0x405bb3
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x405c0b
cmp dword [ebp + 0xc], edi
jbe 0x405c26
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405be3
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x405c26
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405bd3
jmp 0x405c22
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x405c99
cmp byte [esi + 0x14], 0
je 0x405c99
cmp dword [esi + 0xc], 0
jne 0x405c99
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x415e7c
push eax
mov ecx, edi
call 0x40352c
test al, al
je 0x405c83
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405bc4
test eax, eax
jbe 0x405bc4
push 0
mov ecx, esi
call fcn.00405595
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405af0
jmp 0x405bc4
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.004037b6
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.004074bc
test eax, eax
je 0x405db9
mov eax, dword [esp + 8]
test eax, eax
je 0x405db9
cmp word [eax], 0
je 0x405db9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x405dd6
cmp dword [esp + 4], 0
je 0x405dd4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405dd4
xor eax, eax
inc eax
jmp 0x405dd6
xor eax, eax
ret 8

Function at 0x405e04
Capabilities:
Get file attributes

Disassembly:
call fcn.004074bc
test eax, eax
je 0x405e24
mov eax, dword [esp + 8]
test eax, eax
je 0x405e24
cmp word [eax], 0
je 0x405e24
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405e2e
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x405e31
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004074bc
test eax, eax
je 0x405e56
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405e56
cmp word [eax], 0
je 0x405e56
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405e68
cmp dword [ebp + 8], 0
je 0x405e6f
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405e71
xor al, al
pop ebp
ret 0xc
Function at 0x40c30d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c328
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c332
mov byte [eax], 0
test edi, edi
je 0x40c3db
movzx eax, word [edi]
test ax, ax
je 0x40c3db
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c36b
cmp dword [ebp + 0xc], 0
je 0x40c377
test esi, esi
jne 0x40c377
test ebx, ebx
je 0x40c367
mov byte [ebx], 1
mov esi, edx
jmp 0x40c386
cmp ax, 0xd
je 0x40c399
cmp ax, 0xa
je 0x40c39b
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c391
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c34b
jmp 0x40c39b
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c39b
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c3d6
mov word [ebx], ax
test esi, esi
je 0x40c3d6
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040ea9d
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c3dd
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c422
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00412857
cmp byte [0x41d315], 0
jne 0x40c4b0
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407c5f
push eax
call fcn.0040f39b
test eax, eax
jne 0x40c4b0
push 0x4137ec
call fcn.00412844
lea eax, [ebp - 0x820]
push eax
call fcn.0040b07a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040ad4b
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c64e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x41c210], bl
je 0x40c6ce
cmp word [0x41b0d8], bx
je 0x40c6ce
push esi
push 0x41b0d8
lea esi, [ebp - 0x808]
call fcn.0040c613
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c6ce
push dword [ebp + 8]
call fcn.0040b07a
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4
Function at 0x40c6d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x41c210], 0
je 0x40c77a
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040c613
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c77a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c771
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c755
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040ea9d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40c8a2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x41c0e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x41c0e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x41c0ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41c0e0], eax
je 0x40c8d2
xor eax, eax
inc eax
jmp 0x40c8fb
cmp byte [0x41c0e7], 0
je 0x40c8e0
push 2
pop eax
jmp 0x40c8fb
push dword [ebp + 8]
push 0x40baae
push dword [0x41c200]
push str.REPLACEFILEDLG
push dword [0x415e74]
call esi
dec eax
je 0x40c94d
dec eax
je 0x40c95f
dec eax
je 0x40c946
dec eax
jne 0x40c92a
push dword [ebp + 8]
push 0x40bdfa
push dword [0x41c200]
push str.RENAMEDLG
push dword [0x415e74]
call esi
test eax, eax
je 0x40c8ac
mov al, 0x52
jmp 0x40c95a
dec eax
je 0x40c93b
dec eax
mov al, 0x4e
jne 0x40c95a
mov byte [0x41c0e7], 1
jmp 0x40c95a
mov byte [0x41c1f2], 1
mov al, 0x43
jmp 0x40c95a
mov byte [0x41c0e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40c95a
Function at 0x40e97f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00402de0
mov ecx, 0x415e7c
jmp fcn.00403391

Function at 0x412857
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40b6e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004cb070
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.004027e0
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.004027e0
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.004250a0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004250a0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004250a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x432d60
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 8]
call fcn.0040b910
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040b7e0
lea ecx, [ebp - 0x18]
call fcn.0040b840
movzx edx, al
test edx, edx
je 0x432dd8
lea ecx, [ebp - 0x18]
call fcn.0040b870
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 0
je 0x432dd8
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040b890
push eax
call fcn.00441b10
add esp, 4
cmp eax, 0x53b2070f
jne 0x432dd6
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b8c0
jmp 0x432de9
jmp 0x432d97
lea ecx, [ebp - 8]
call fcn.0040b930
movzx ecx, al
test ecx, ecx
jne 0x432d6e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x462e33
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5a3054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and edx, 0xfffffffe
push edi
mov edi, dword [ebx + 8]
movups xmm6, xmmword [esi]
cmp edx, edi
jae 0x462f35
lea ecx, [edx + 1]
xorps xmm5, xmm5
xorps xmm7, xmm7
shl ecx, 4
pslldq xmm7, 8
add ecx, esi
psrldq xmm5, 8
movups xmm4, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x20]
movaps xmm3, xmm4
movaps xmm0, xmm4
pclmulqdq xmm0, xmm6, 1
pclmulqdq xmm3, xmm6, 0x10
pxor xmm3, xmm0
movaps xmm1, xmm4
pclmulqdq xmm1, xmm6, 0
movaps xmm0, xmm3
mov eax, edx
pslldq xmm0, 8
add edx, 2
pxor xmm1, xmm0
psrldq xmm3, 8
movaps xmm2, xmm1
pshufd xmm0, xmm1, 0x4e
pclmulqdq xmm2, xmmword [0x57a930], 0
pxor xmm2, xmm0
shr eax, 1
movaps xmm1, xmm2
pshufd xmm0, xmm2, 0x4e
pclmulqdq xmm1, xmmword [0x57a930], 0
pxor xmm1, xmm0
add eax, eax
pclmulqdq xmm4, xmm6, 0x11
pxor xmm4, xmm3
pxor xmm4, xmm1
movups xmmword [ecx - 0x30], xmm4
movups xmm3, xmmword [esi + eax*8]
movaps xmm0, xmm3
pclmulqdq xmm0, xmm3, 0
pxor xmm0, xmm7
movaps xmm1, xmm0
pshufd xmm0, xmm0, 0x4e
pclmulqdq xmm1, xmmword [0x57a930], 0
pxor xmm1, xmm0
pshufd xmm0, xmm1, 0x4e
movaps xmm2, xmm1
pclmulqdq xmm2, xmmword [0x57a930], 0
pxor xmm2, xmm0
pclmulqdq xmm3, xmm3, 0x11
pxor xmm3, xmm5
pxor xmm2, xmm3
movups xmmword [ecx - 0x20], xmm2
cmp edx, edi
jb 0x462e60
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045fc86
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4

Function at 0x463340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp + 8], 0
push esi
nop word [eax + eax]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + eax]
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + eax]
inc eax
mov ecx, dword [ebp + 8]
xor esi, edx
or ecx, esi
mov dword [ebp + 8], ecx
cmp eax, 0x10
jl 0x463360
mov eax, dword [ebp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
pop esi
mov esp, ebp
pop ebp
ret