joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9dc0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
xor ecx, ecx
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x5bad30], cl
inc ecx
cmp ecx, 0x100
jl 0x4a9dc2
push ebx
xor edx, edx
push esi
lea esp, [esp]
mov al, byte [edx + str.cw]
mov bl, 2
mov byte [edx*4 + 0x5bba31], al
mov cl, al
mov byte [edx*4 + 0x5bba30], al
xor ah, ah
mov byte [edx*4 + 0x5bb633], al
mov byte [edx*4 + 0x5bb630], al
mov byte [edx*4 + 0x5bb233], al
mov byte [edx*4 + 0x5bb232], al
mov byte [edx*4 + 0x5bae32], al
mov byte [edx*4 + 0x5bae31], al
mov ch, cl
test bl, 1
je 0x4a9e2d
xor ah, cl
add cl, cl
test ch, ch
jns 0x4a9e36
xor cl, 0x1b
shr bl, 1
jne 0x4a9e24
mov byte [edx*4 + 0x5bba33], ah
mov cl, 3
mov byte [edx*4 + 0x5bb632], ah
xor bl, bl
mov byte [edx*4 + 0x5bb231], ah
mov byte [edx*4 + 0x5bae30], ah
lea ebx, [ebx]
mov ah, al
test cl, 1
je 0x4a9e69
xor bl, al
add al, al
test ah, ah
jns 0x4a9e71
xor al, 0x1b
shr cl, 1
jne 0x4a9e60
mov cl, byte [edx + 0x5bad30]
xor ah, ah
mov byte [edx*4 + 0x5bba32], bl
mov al, cl
mov byte [edx*4 + 0x5bb631], bl
mov byte [edx*4 + 0x5bb230], bl
mov byte [edx*4 + 0x5bae33], bl
mov bl, 0xb
lea ecx, [ecx]
mov ch, al
test bl, 1
je 0x4a9ea9
xor ah, al
add al, al
test ch, ch
jns 0x4a9eb1
xor al, 0x1b
shr bl, 1
jne 0x4a9ea0
movzx esi, cl
mov al, cl
mov byte [edx*4 + 0x5bca32], ah
xor bl, bl
mov byte [edx*4 + 0x5bc631], ah
mov byte [edx*4 + 0x5bc230], ah
mov byte [edx*4 + 0x5bbe33], ah
mov byte [esi*4 + 0x5bda32], ah
mov byte [esi*4 + 0x5bd631], ah
mov byte [esi*4 + 0x5bd230], ah
mov byte [esi*4 + 0x5bce33], ah
mov ah, 9
mov ch, al
test ah, 1
je 0x4a9eff
xor bl, al
add al, al
test ch, ch
jns 0x4a9f07
xor al, 0x1b
shr ah, 1
jne 0x4a9ef6
mov byte [edx*4 + 0x5bca30], bl
mov ah, 0xd
mov byte [edx*4 + 0x5bc633], bl
mov al, cl
mov byte [edx*4 + 0x5bc232], bl
mov byte [edx*4 + 0x5bbe31], bl
mov byte [esi*4 + 0x5bda30], bl
mov byte [esi*4 + 0x5bd633], bl
mov byte [esi*4 + 0x5bd232], bl
mov byte [esi*4 + 0x5bce31], bl
xor bl, bl
lea esp, [esp]
mov ch, al
test ah, 1
je 0x4a9f59
xor bl, al
add al, al
test ch, ch
jns 0x4a9f61
xor al, 0x1b
shr ah, 1
jne 0x4a9f50
mov byte [edx*4 + 0x5bca31], bl
xor al, al
mov byte [edx*4 + 0x5bc630], bl
mov byte [edx*4 + 0x5bc233], bl
mov byte [edx*4 + 0x5bbe32], bl
mov byte [esi*4 + 0x5bda31], bl
mov byte [esi*4 + 0x5bd630], bl
mov byte [esi*4 + 0x5bd233], bl
mov byte [esi*4 + 0x5bce32], bl
mov bl, 0xe
mov ah, cl
test bl, 1
je 0x4a9faa
xor al, cl
add cl, cl
test ah, ah
jns 0x4a9fb3
xor cl, 0x1b
shr bl, 1
jne 0x4a9fa1
mov byte [edx*4 + 0x5bca33], al
mov byte [edx*4 + 0x5bc632], al
mov byte [edx*4 + 0x5bc231], al
mov byte [edx*4 + 0x5bbe30], al
inc edx
mov byte [esi*4 + 0x5bda33], al
mov byte [esi*4 + 0x5bd632], al
mov byte [esi*4 + 0x5bd231], al
mov byte [esi*4 + 0x5bce30], al
cmp edx, 0x100
jl 0x4a9de0
pop esi
pop ebx
ret
Function at 0x4ac0e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edi, edi
jne 0x4ac102
push ebx
push 0
push ebp
call fcn.005201d0
add esp, 0xc
push ebx
push ebp
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
push edi
call fcn.004abe30
test al, al
jne 0x4ac1c0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4ac183
cmp dword [esi + 0x24], ebx
je 0x4ac152
push dword [esi + 0x20]
call fcn.0051de88
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051de7f
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
xor edi, edi
test ebx, ebx
je 0x4ac17b
mov ebp, dword [esp + 0x1c]
lea esp, [esp]
movzx edx, word [edi + ebp]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + edx*4]
mov dword [ecx + edi*4], eax
add edi, 2
cmp edi, ebx
jb 0x4ac160
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
xor edx, edx
imul ecx, eax
mov eax, dword [esi + 0x1c]
add ecx, edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 4]
mov edi, dword [eax + ecx*4]
test ebx, ebx
je 0x4ac1c0
lea ecx, [ecx]
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + edx*4]
mov eax, dword [esi]
add ecx, edi
mov ax, word [eax + ecx*4]
xor word [edx + ebp], ax
add edx, 2
cmp edx, ebx
jb 0x4ac1a0
lea esp, [esp]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x4ad520
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, ecx
push edi
cmp eax, ebx
jb 0x4ad537
mov eax, ebx
mov edi, dword [esp + 0x24]
add eax, eax
push eax
push dword [esp + 0x20]
push edi
call fcn.0051f6b0
mov al, byte [esi + 0x101]
add esp, 0xc
mov ebp, dword [0x5bde38]
add ebx, ebx
mov byte [esp + 0x13], al
test ebp, ebp
jne 0x4ad5cb
cmp byte [0x5bde34], 0
jne 0x4ad5cb
push str.Crypt32.dll
call fcn.004b0da0
mov dword [0x5bde30], eax
test eax, eax
je 0x4ad5b6
push str.CryptProtectMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptUnprotectMemory
push dword [0x5bde30]
mov dword [0x5bde38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [0x5bde38]
mov esi, eax
mov dword [0x5bde3c], esi
mov byte [0x5bde34], 1
jmp 0x4ad5d1
mov esi, dword [0x5bde3c]
mov ebp, dword [0x5bde38]
mov byte [0x5bde34], 1
jmp 0x4ad5d1
mov esi, dword [0x5bde3c]
xor ecx, ecx
mov eax, ebx
and eax, 0xfffffff0
cmp byte [esp + 0x13], cl
setne cl
cmp byte [esp + 0x2c], 0
je 0x4ad62d
test ebp, ebp
je 0x4ad649
push ecx
push eax
push edi
mov ecx, ebp
call dword [0x541740]
call ebp
test eax, eax
jne 0x4ad672
push str.CryptProtectMemory_failed
push 0x5b68fc
call fcn.0047af10
add esp, 8
mov ecx, 0x5b68fc
call fcn.0047b860
push 2
mov ecx, 0x5b68fc
call fcn.0047aed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
test esi, esi
je 0x4ad649
push ecx
push eax
push edi
mov ecx, esi
call dword [0x541740]
call esi
test eax, eax
jne 0x4ad672
push str.CryptUnprotectMemory_failed
jmp 0x4ad600
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x4ad672
lea esp, [esp]
add al, 0x4b
lea ecx, [edx + edi]
add al, dl
inc edx
xor byte [ecx], al
mov eax, dword [esp + 0x14]
cmp edx, ebx
jb 0x4ad660
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
Function at 0x4ad680
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [0x5bde38]
test edi, edi
jne 0x4ad6f8
cmp byte [0x5bde34], 0
jne 0x4ad6f8
push str.Crypt32.dll
call fcn.004b0da0
mov dword [0x5bde30], eax
test eax, eax
je 0x4ad6e3
push str.CryptProtectMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptUnprotectMemory
push dword [0x5bde30]
mov dword [0x5bde38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [0x5bde38]
mov esi, eax
mov dword [0x5bde3c], esi
mov byte [0x5bde34], 1
jmp 0x4ad6fe
mov esi, dword [0x5bde3c]
mov edi, dword [0x5bde38]
mov byte [0x5bde34], 1
jmp 0x4ad6fe
mov esi, dword [0x5bde3c]
mov ebx, dword [esp + 0x18]
mov eax, ebx
movzx ecx, byte [esp + 0x20]
and eax, 0xfffffff0
cmp byte [esp + 0x1c], 0
je 0x4ad75a
test edi, edi
je 0x4ad779
push ecx
push eax
push dword [esp + 0x1c]
mov ecx, edi
call dword [0x541740]
call edi
test eax, eax
jne 0x4ad7a2
push str.CryptProtectMemory_failed
push 0x5b68fc
call fcn.0047af10
add esp, 8
mov ecx, 0x5b68fc
call fcn.0047b860
push 2
mov ecx, 0x5b68fc
call fcn.0047aed0
pop edi
pop esi
pop ebx
pop ecx
ret 0x10
test esi, esi
je 0x4ad779
push ecx
push eax
push dword [esp + 0x1c]
mov ecx, esi
call dword [0x541740]
call esi
test eax, eax
jne 0x4ad7a2
push str.CryptUnprotectMemory_failed
jmp 0x4ad730
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x4ad7a2
mov esi, dword [esp + 0x14]
lea ecx, [ecx]
add al, 0x4b
lea ecx, [edx + esi]
add al, dl
inc edx
xor byte [ecx], al
mov eax, dword [esp + 0xc]
cmp edx, ebx
jb 0x4ad790
pop edi
pop esi
pop ebx
pop ecx
ret 0x10
Function at 0x4aeec0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x4c
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov dword [esp + 0x14], eax
mov edi, dword [esi + 0x18]
mov ebp, edi
mov eax, dword [esi + 0x1c]
and edi, 0x3f
shld eax, ebp, 3
shl ebp, 3
mov byte [esi + edi + 0x20], 0x80
inc edi
mov dword [esp + 0x10], eax
cmp edi, 0x38
je 0x4aef54
jbe 0x4aef33
cmp edi, 0x40
jae 0x4aef1e
mov eax, 0x40
lea ecx, [esi + 0x20]
sub eax, edi
add ecx, edi
push eax
push 0
push ecx
call fcn.005201d0
add esp, 0xc
push 1
lea ebx, [esi + 0x20]
xor edi, edi
push ebx
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004adda0
jmp 0x4aef36
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edi
push eax
lea eax, [esi + 0x20]
add eax, edi
push 0
push eax
call fcn.005201d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4aef57
lea ebx, [esi + 0x20]
bswap eax
push 1
mov dword [esi + 0x58], eax
lea eax, [esp + 0x1c]
push ebx
push eax
bswap ebp
push esi
mov dword [esi + 0x5c], ebp
call fcn.004adda0
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x4c
ret 8

Function at 0x4aefe0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x4af230
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x20]
mov ebx, esi
mov ebp, dword [edi + 0x24]
and esi, 0x3f
shld ebp, ebx, 3
shl ebx, 3
mov byte [esi + edi + 0x28], 0x80
inc esi
cmp esi, 0x38
je 0x4af294
jbe 0x4af27c
cmp esi, 0x40
jae 0x4af274
mov eax, 0x40
lea ecx, [edi + 0x28]
sub eax, esi
add ecx, esi
push eax
push 0
push ecx
call fcn.005201d0
add esp, 0xc
push edi
xor esi, esi
call fcn.004af5e0
mov eax, 0x38
sub eax, esi
push eax
lea eax, [edi + 0x28]
add eax, esi
push 0
push eax
call fcn.005201d0
add esp, 0xc
bswap ebp
bswap ebx
push edi
mov dword [edi + 0x60], ebp
mov dword [edi + 0x64], ebx
call fcn.004af5e0
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
bswap eax
mov dword [ecx], eax
mov eax, dword [edi + 4]
bswap eax
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
bswap eax
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
bswap eax
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x10]
bswap eax
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x14]
bswap eax
mov dword [ecx + 0x14], eax
mov eax, dword [edi + 0x18]
bswap eax
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x1c]
bswap eax
mov dword [ecx + 0x1c], eax
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4af340
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
ret 4
Function at 0x4af5e0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x13c
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
mov ebp, dword [esp + 0x148]
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x2c], ebp
lea edx, [ebp + 0x28]
mov eax, dword [edx]
lea edx, [edx + 4]
bswap eax
mov dword [esp + ecx*4 + 0x48], eax
inc ecx
cmp ecx, 0x10
jb 0x4af608
lea eax, [esp + 0x80]
mov ebx, 0x30
mov edx, dword [eax - 0x34]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov edi, edx
mov ecx, edx
rol edi, 0xe
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
rol ecx, 0xd
rol edx, 0xf
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebx, 1
jne 0x4af625
mov eax, dword [ebp]
mov ebx, eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x14]
xor ebp, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
jmp 0x4af6a0
mov dword [esp + 0x34], eax
mov eax, edi
rol eax, 7
mov dword [esp + 0x44], esi
mov esi, edi
ror esi, 0xb
xor esi, eax
mov dword [esp + 0x38], ecx
mov eax, edi
mov dword [esp + 0x40], edx
ror eax, 6
mov ecx, edi
xor esi, eax
mov dword [esp + 0x24], edi
not ecx
mov dword [esp + 0x3c], edi
and ecx, dword [esp + 0x14]
mov eax, edx
and eax, edi
mov dword [esp + 0x30], ebx
xor ecx, eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add esi, ecx
add esi, dword [ebp + 0x5526d8]
add esi, dword [esp + ebp + 0x48]
add ebp, 4
add esi, dword [esp + 0x18]
mov dword [esp + 0x18], eax
add edi, esi
mov dword [esp + 0x14], edx
mov eax, ebx
rol eax, 0xa
mov edx, ebx
ror edx, 0xd
xor edx, eax
mov eax, ebx
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
and eax, dword [esp + 0x10]
xor ecx, dword [esp + 0x10]
and ecx, ebx
xor ecx, eax
mov eax, dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
lea ebx, [edx + esi]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
cmp ebp, 0x100
jb 0x4af6a0
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x148]
add eax, ebx
add dword [ebp + 0x10], edi
mov dword [ebp], eax
mov eax, dword [esp + 0x30]
add dword [ebp + 4], eax
mov eax, dword [esp + 0x34]
add dword [ebp + 8], eax
mov eax, dword [esp + 0x38]
add dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
add dword [ebp + 0x14], eax
mov eax, dword [esp + 0x40]
add dword [ebp + 0x18], eax
mov eax, dword [esp + 0x44]
add dword [ebp + 0x1c], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x13c
ret 4
Function at 0x4b0d10
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov word [esp + 0x34], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp], eax
test eax, eax
je 0x4b0d80
lea eax, [esp]
push eax
push dword [esp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 4]
neg eax
sbb eax, eax
and dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp]
test eax, eax
mov ecx, dword [esp + 0x10]
setne al
xor ecx, esp
call fcn.0051dca8
add esp, 0x14
ret

Function at 0x4b0da0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
lea eax, [esp + 4]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4b0dec
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 4
push 0x800
lea eax, [esp + 8]
push eax
push esi
push eax
call fcn.00495090
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 4

Function at 0x4b0f00
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4b0f5e
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x4b0f70
push SysReAllocString
push 5
jmp 0x4b0fbe
cmp eax, 3
jne 0x4b0f91
push 0
push 0
push 0
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0051dca8
add esp, 0x18
ret 4
cmp eax, 2
jne 0x4b0fb2
push 0
push 0
push 1
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0051dca8
add esp, 0x18
ret 4
cmp eax, 4
jne 0x4b0fc4
push SysReAllocString
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0051dca8
add esp, 0x18
ret 4
Function at 0x4b1280
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x4b130d
push ebx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x4b130c
push ebp
push edi
lea edi, [esi + 4]
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4b13b0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x4b12e8
push str.CreateThread_failed
push 0x5b68fc
call fcn.0047af10
add esp, 8
mov ecx, 0x5b68fc
call fcn.0047b860
push 2
mov ecx, 0x5b68fc
call fcn.0047aed0
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x5c1e54]
test eax, eax
je 0x4b1302
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x4b12a0
pop edi
pop ebp
pop ebx
cmp dword [esi + 0x108], 0x40
jb 0x4b131d
mov ecx, esi
call fcn.004b1470
mov ecx, dword [esi + 0x30c]
mov eax, dword [esp + 0xc]
mov dword [esi + ecx*8 + 0x10c], eax
mov ecx, dword [esi + 0x30c]
mov eax, dword [esp + 0x10]
mov dword [esi + ecx*8 + 0x110], eax
mov eax, dword [esi + 0x30c]
inc eax
and eax, 0x3f
inc dword [esi + 0x108]
mov dword [esi + 0x30c], eax
pop esi
pop ecx
ret 8
Function at 0x4c20b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebx
mov ebx, dword [esp + 0x5ac]
push edi
mov edi, dword [esp + 0x5b4]
call fcn.004881b0
test eax, eax
jne 0x4c20ed
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4c21e1
push esi
mov edi, edi
cmp word [edi], 0
mov dword [0x5c3cb0], 0
je 0x4c21e0
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c21d3
xor esi, esi
mov dword [esp + 0xc], 0xc8
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4c21ab
jmp 0x4c2150
lea eax, [esp + 0x1c]
push eax
push edi
push 0x552ab4
lea eax, [esp + 0x1b8]
push 0x200
push eax
call fcn.00402c90
add esp, 0x14
lea eax, [esp + 0x1ac]
push eax
push ebx
call fcn.004c2500
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0xc8
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
inc esi
push eax
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4c2150
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c21ba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4c21d3
mov eax, dword [0x5c3cb0]
inc eax
mov dword [0x5c3cb0], eax
jmp 0x4c21d8
mov eax, dword [0x5c3cb0]
test eax, eax
jne 0x4c20f0
pop esi
mov ecx, dword [esp + 0x5a8]
pop edi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x5a4
ret 8
Function at 0x4c2500
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebx
mov ebx, dword [esp + 0x5ac]
push esi
mov esi, dword [esp + 0x5b4]
cmp word [esi], 0
je 0x4c25f3
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c25f3
push edi
xor edi, edi
mov dword [esp + 0xc], 0xc8
lea eax, [esp + 0x14]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push edi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4c25d1
lea eax, [esp + 0x1c]
push eax
push esi
push 0x552ab4
lea eax, [esp + 0x1b8]
push 0x200
push eax
call fcn.00402c90
add esp, 0x14
lea eax, [esp + 0x1ac]
push eax
push ebx
call fcn.004c2500
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0xc8
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
inc edi
push eax
lea eax, [esp + 0x30]
push eax
push edi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4c2576
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
je 0x4c25e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4c25f3
inc dword [0x5c3cb0]
mov ecx, dword [esp + 0x5a8]
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x5a4
ret 8

Function at 0x4c2610
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x404
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push 0x54266c
push edi
push esi
call fcn.004c0e90
test al, al
jne 0x4c2665
push 0x200
lea eax, [esp + 0xc]
push eax
push edi
push esi
call fcn.004c37d0
test al, al
je 0x4c2665
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x404
ret 8

Function at 0x4c2680
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x404
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push 0x54266c
push esi
push SysReAllocString
call fcn.004c0e90
test al, al
jne 0x4c2705
movzx eax, word [esi]
cmp eax, 0x5c
je 0x4c26e2
test ax, ax
mov eax, 0x542618
jne 0x4c26c7
mov eax, 0x54266c
push esi
push eax
push str.SoftwareWinRAR_s_s
lea eax, [esp + 0x10]
push 0x200
push eax
call fcn.00402c90
add esp, 0x14
jmp 0x4c26f5
push 0x200
lea eax, [esi + 2]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004b0360
lea eax, [esp + 4]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x404
ret 4