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

Disassembly:
xor ecx, ecx
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x5d6c50], cl
inc ecx
cmp ecx, 0x100
jl 0x4b6a02
push ebx
xor edx, edx
push esi
lea esp, [esp]
mov al, byte [edx + str.cw]
mov bl, 2
mov byte [edx*4 + 0x5d7951], al
mov cl, al
mov byte [edx*4 + 0x5d7950], al
xor ah, ah
mov byte [edx*4 + 0x5d7553], al
mov byte [edx*4 + 0x5d7550], al
mov byte [edx*4 + 0x5d7153], al
mov byte [edx*4 + 0x5d7152], al
mov byte [edx*4 + 0x5d6d52], al
mov byte [edx*4 + 0x5d6d51], al
mov ch, cl
test bl, 1
je 0x4b6a6d
xor ah, cl
add cl, cl
test ch, ch
jns 0x4b6a76
xor cl, 0x1b
shr bl, 1
jne 0x4b6a64
mov byte [edx*4 + 0x5d7953], ah
mov cl, 3
mov byte [edx*4 + 0x5d7552], ah
xor bl, bl
mov byte [edx*4 + 0x5d7151], ah
mov byte [edx*4 + 0x5d6d50], ah
lea ebx, [ebx]
mov ah, al
test cl, 1
je 0x4b6aa9
xor bl, al
add al, al
test ah, ah
jns 0x4b6ab1
xor al, 0x1b
shr cl, 1
jne 0x4b6aa0
mov cl, byte [edx + 0x5d6c50]
xor ah, ah
mov byte [edx*4 + 0x5d7952], bl
mov al, cl
mov byte [edx*4 + 0x5d7551], bl
mov byte [edx*4 + 0x5d7150], bl
mov byte [edx*4 + 0x5d6d53], bl
mov bl, 0xb
lea ecx, [ecx]
mov ch, al
test bl, 1
je 0x4b6ae9
xor ah, al
add al, al
test ch, ch
jns 0x4b6af1
xor al, 0x1b
shr bl, 1
jne 0x4b6ae0
movzx esi, cl
mov al, cl
mov byte [edx*4 + 0x5d8952], ah
xor bl, bl
mov byte [edx*4 + 0x5d8551], ah
mov byte [edx*4 + 0x5d8150], ah
mov byte [edx*4 + 0x5d7d53], ah
mov byte [esi*4 + 0x5d9952], ah
mov byte [esi*4 + 0x5d9551], ah
mov byte [esi*4 + 0x5d9150], ah
mov byte [esi*4 + 0x5d8d53], ah
mov ah, 9
mov ch, al
test ah, 1
je 0x4b6b3f
xor bl, al
add al, al
test ch, ch
jns 0x4b6b47
xor al, 0x1b
shr ah, 1
jne 0x4b6b36
mov byte [edx*4 + 0x5d8950], bl
mov ah, 0xd
mov byte [edx*4 + 0x5d8553], bl
mov al, cl
mov byte [edx*4 + 0x5d8152], bl
mov byte [edx*4 + 0x5d7d51], bl
mov byte [esi*4 + 0x5d9950], bl
mov byte [esi*4 + 0x5d9553], bl
mov byte [esi*4 + 0x5d9152], bl
mov byte [esi*4 + 0x5d8d51], bl
xor bl, bl
lea esp, [esp]
mov ch, al
test ah, 1
je 0x4b6b99
xor bl, al
add al, al
test ch, ch
jns 0x4b6ba1
xor al, 0x1b
shr ah, 1
jne 0x4b6b90
mov byte [edx*4 + 0x5d8951], bl
xor al, al
mov byte [edx*4 + 0x5d8550], bl
mov byte [edx*4 + 0x5d8153], bl
mov byte [edx*4 + 0x5d7d52], bl
mov byte [esi*4 + 0x5d9951], bl
mov byte [esi*4 + 0x5d9550], bl
mov byte [esi*4 + 0x5d9153], bl
mov byte [esi*4 + 0x5d8d52], bl
mov bl, 0xe
mov ah, cl
test bl, 1
je 0x4b6bea
xor al, cl
add cl, cl
test ah, ah
jns 0x4b6bf3
xor cl, 0x1b
shr bl, 1
jne 0x4b6be1
mov byte [edx*4 + 0x5d8953], al
mov byte [edx*4 + 0x5d8552], al
mov byte [edx*4 + 0x5d8151], al
mov byte [edx*4 + 0x5d7d50], al
inc edx
mov byte [esi*4 + 0x5d9953], al
mov byte [esi*4 + 0x5d9552], al
mov byte [esi*4 + 0x5d9151], al
mov byte [esi*4 + 0x5d8d50], al
cmp edx, 0x100
jl 0x4b6a20
pop esi
pop ebx
ret
Function at 0x4b8d20
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 0x4b8d42
push ebx
push 0
push ebp
call fcn.00531c60
add esp, 0xc
push ebx
push ebp
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
push edi
call fcn.004b8a70
test al, al
jne 0x4b8e00
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4b8dc3
cmp dword [esi + 0x24], ebx
je 0x4b8d92
push dword [esi + 0x20]
call fcn.0052f90c
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052f903
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
xor edi, edi
test ebx, ebx
je 0x4b8dbb
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 0x4b8da0
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 0x4b8e00
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 0x4b8de0
lea esp, [esp]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x4b9cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1054
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1050], eax
push ebx
push esi
mov esi, dword [esp + 0x1060]
mov ebx, ecx
cmp byte [esi], 0
je 0x4b9ede
push ebp
push edi
lea edi, [ebx + 0x101e]
push edi
call fcn.004a2d90
mov ebp, eax
cmp ebp, edi
jbe 0x4b9d55
xor eax, eax
push edi
mov word [ebp - 2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x5c
mov word [ebp - 2], cx
cmp eax, 0xffffffff
je 0x4b9d55
test eax, 0x400
je 0x4b9d55
mov byte [esi], 0
push str.System_Volume_Information_
push edi
call fcn.00531fcb
add esp, 8
test eax, eax
jne 0x4b9ed9
cmp byte [esi], al
je 0x4b9edc
mov ecx, dword [ebx + 0x40e8]
test ecx, ecx
je 0x4b9d90
push 1
push 1
push eax
push edi
call fcn.0047f4c0
test al, al
jne 0x4b9ed9
cmp byte [esi], 0
je 0x4b9edc
mov ecx, dword [ebx + 0x30d8]
test ecx, ecx
je 0x4b9da9
push edi
call fcn.004bd180
mov esi, dword [ebx + 0x30dc]
test esi, esi
je 0x4b9e3e
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 0x30e4]
inc ecx
mov dword [esp + 0x10], eax
mov dword [esi + 4], ecx
cmp ecx, dword [esi + 8]
jbe 0x4b9e31
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4b9df5
cmp ecx, eax
jbe 0x4b9df5
push eax
push str.Maximum_allowed_array_size___u__is_exceeded
push 0x5d281c
call fcn.00487480
add esp, 0xc
mov ecx, 0x5d281c
call fcn.004875a0
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
shr eax, 2
add eax, 0x20
add eax, dword [esi + 8]
cmp ebx, eax
ja 0x4b9e0a
mov ebx, eax
lea eax, [ebx*4]
push eax
push dword [esi]
call fcn.00537b8a
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4b9e2c
mov ecx, 0x5d281c
call fcn.004875a0
mov dword [esi], ebp
mov dword [esi + 8], ebx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 - 4], edx
push 0x800
lea eax, [esp + 0x64]
push eax
push edi
call fcn.004a0f30
xor eax, eax
mov dword [esp + 0x18], 0x557718
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x1c], 0x557718
mov dword [esp + 0x20], 0x557718
mov dword [esp + 0x24], 0x557718
mov dword [esp + 0x28], 0x557718
mov dword [esp + 0x2c], 0x557718
mov dword [esp + 0x30], 0x557718
mov dword [esp + 0x5c], 0x57
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], 1
call fcn.004bed70
mov ecx, 0x5d281c
call fcn.00487dd0
jmp 0x4b9edc
mov byte [esi], 0
pop edi
pop ebp
mov ecx, dword [esp + 0x1058]
pop esi
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x1054
ret 4
Function at 0x4ba260
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
cmp eax, ebx
jb 0x4ba273
mov eax, ebx
mov edi, dword [esp + 0x20]
add eax, eax
push eax
push dword [esp + 0x1c]
push edi
call fcn.00531230
mov ebp, dword [0x5d9d58]
add esp, 0xc
add ebx, ebx
test ebp, ebp
jne 0x4ba2fd
cmp byte [0x5d9d54], 0
jne 0x4ba2fd
push str.Crypt32.dll
call fcn.004bdac0
mov dword [0x5d9d50], eax
test eax, eax
je 0x4ba2e8
push str.CryptProtectMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptUnprotectMemory
push dword [0x5d9d50]
mov dword [0x5d9d58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [0x5d9d58]
mov esi, eax
mov dword [0x5d9d5c], esi
mov byte [0x5d9d54], 1
jmp 0x4ba303
mov esi, dword [0x5d9d5c]
mov ebp, dword [0x5d9d58]
mov byte [0x5d9d54], 1
jmp 0x4ba303
mov esi, dword [0x5d9d5c]
mov eax, ebx
and eax, 0xfffffff0
cmp byte [esp + 0x28], 0
je 0x4ba355
test ebp, ebp
je 0x4ba372
push 0
push eax
push edi
mov ecx, ebp
call dword [0x55670c]
call ebp
test eax, eax
jne 0x4ba394
push str.CryptProtectMemory_failed
push 0x5d281c
call fcn.00487480
add esp, 8
mov ecx, 0x5d281c
call fcn.00487dd0
push 2
mov ecx, 0x5d281c
call fcn.00487440
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
test esi, esi
je 0x4ba372
push 0
push eax
push edi
mov ecx, esi
call dword [0x55670c]
call esi
test eax, eax
jne 0x4ba394
push str.CryptUnprotectMemory_failed
jmp 0x4ba32a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x4ba394
add al, 0x4b
lea ecx, [edx + edi]
add al, dl
inc edx
xor byte [ecx], al
mov eax, dword [esp + 0x10]
cmp edx, ebx
jb 0x4ba382
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x4ba3a0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [0x5d9d58]
test edi, edi
jne 0x4ba418
cmp byte [0x5d9d54], 0
jne 0x4ba418
push str.Crypt32.dll
call fcn.004bdac0
mov dword [0x5d9d50], eax
test eax, eax
je 0x4ba403
push str.CryptProtectMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptUnprotectMemory
push dword [0x5d9d50]
mov dword [0x5d9d58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [0x5d9d58]
mov esi, eax
mov dword [0x5d9d5c], esi
mov byte [0x5d9d54], 1
jmp 0x4ba41e
mov esi, dword [0x5d9d5c]
mov edi, dword [0x5d9d58]
mov byte [0x5d9d54], 1
jmp 0x4ba41e
mov esi, dword [0x5d9d5c]
mov ebx, dword [esp + 0x18]
mov eax, ebx
movzx ecx, byte [esp + 0x20]
and eax, 0xfffffff0
cmp byte [esp + 0x1c], 0
je 0x4ba47a
test edi, edi
je 0x4ba499
push ecx
push eax
push dword [esp + 0x1c]
mov ecx, edi
call dword [0x55670c]
call edi
test eax, eax
jne 0x4ba4c2
push str.CryptProtectMemory_failed
push 0x5d281c
call fcn.00487480
add esp, 8
mov ecx, 0x5d281c
call fcn.00487dd0
push 2
mov ecx, 0x5d281c
call fcn.00487440
pop edi
pop esi
pop ebx
pop ecx
ret 0x10
test esi, esi
je 0x4ba499
push ecx
push eax
push dword [esp + 0x1c]
mov ecx, esi
call dword [0x55670c]
call esi
test eax, eax
jne 0x4ba4c2
push str.CryptUnprotectMemory_failed
jmp 0x4ba450
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x4ba4c2
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 0x4ba4b0
pop edi
pop esi
pop ebx
pop ecx
ret 0x10
Function at 0x4bbbf0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x4c
mov eax, dword [0x58bb30]
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 0x4bbc84
jbe 0x4bbc63
cmp edi, 0x40
jae 0x4bbc4e
mov eax, 0x40
lea ecx, [esi + 0x20]
sub eax, edi
add ecx, edi
push eax
push 0
push ecx
call fcn.00531c60
add esp, 0xc
push 1
lea ebx, [esi + 0x20]
xor edi, edi
push ebx
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004baad0
jmp 0x4bbc66
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.00531c60
mov eax, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4bbc87
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.004baad0
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.0052f708
add esp, 0x4c
ret 8

Function at 0x4bbd10
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 0x4bbf60
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 0x4bbfc4
jbe 0x4bbfac
cmp esi, 0x40
jae 0x4bbfa4
mov eax, 0x40
lea ecx, [edi + 0x28]
sub eax, esi
add ecx, esi
push eax
push 0
push ecx
call fcn.00531c60
add esp, 0xc
push edi
xor esi, esi
call fcn.004bc310
mov eax, 0x38
sub eax, esi
push eax
lea eax, [edi + 0x28]
add eax, esi
push 0
push eax
call fcn.00531c60
add esp, 0xc
bswap ebp
bswap ebx
push edi
mov dword [edi + 0x60], ebp
mov dword [edi + 0x64], ebx
call fcn.004bc310
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 0x4bc070
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 0x4bc310
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x13c
mov eax, dword [0x58bb30]
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 0x4bc338
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 0x4bc355
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 0x4bc3d0
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 + 0x567968]
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 0x4bc3d0
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.0052f708
add esp, 0x13c
ret 4
Function at 0x4bda30
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x58bb30]
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 0x4bdaa0
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.0052f708
add esp, 0x14
ret

Function at 0x4bdac0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1000], eax
push 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 0x4bdb0c
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0052f708
add esp, 0x1004
ret 4
push 0x800
lea eax, [esp + 8]
push eax
push esi
push eax
call fcn.004a25d0
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.0052f708
add esp, 0x1004
ret 4

Function at 0x4bdc20
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
mov eax, dword [0x58bb30]
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 0x4bdc7e
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 0x4bdc90
push SysReAllocString
push 5
jmp 0x4bdcde
cmp eax, 3
jne 0x4bdcb1
push 0
push 0
push 0
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0052f708
add esp, 0x18
ret 4
cmp eax, 2
jne 0x4bdcd2
push 0
push 0
push 1
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0052f708
add esp, 0x18
ret 4
cmp eax, 4
jne 0x4bdce4
push SysReAllocString
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0052f708
add esp, 0x18
ret 4
Function at 0x4bdfb0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x4be03d
push ebx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x4be03c
push ebp
push edi
lea edi, [esi + 4]
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4be0e0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x4be018
push str.CreateThread_failed
push 0x5d281c
call fcn.00487480
add esp, 8
mov ecx, 0x5d281c
call fcn.00487dd0
push 2
mov ecx, 0x5d281c
call fcn.00487440
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x5ddd74]
test eax, eax
je 0x4be032
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x4bdfd0
pop edi
pop ebp
pop ebx
cmp dword [esi + 0x108], 0x40
jb 0x4be04d
mov ecx, esi
call fcn.004be1a0
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 0x4ce680
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebx
mov ebx, dword [esp + 0x5ac]
push edi
mov edi, dword [esp + 0x5b4]
call fcn.00495590
test eax, eax
jne 0x4ce6bd
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4ce7b1
push esi
mov edi, edi
cmp word [edi], 0
mov dword [0x5dfbd0], 0
je 0x4ce7b0
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 0x4ce7a3
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 0x4ce77b
jmp 0x4ce720
lea eax, [esp + 0x1c]
push eax
push edi
push 0x567d44
lea eax, [esp + 0x1b8]
push 0x200
push eax
call fcn.00404ce0
add esp, 0x14
lea eax, [esp + 0x1ac]
push eax
push ebx
call fcn.004cead0
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 0x4ce720
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ce78a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4ce7a3
mov eax, dword [0x5dfbd0]
inc eax
mov dword [0x5dfbd0], eax
jmp 0x4ce7a8
mov eax, dword [0x5dfbd0]
test eax, eax
jne 0x4ce6c0
pop esi
mov ecx, dword [esp + 0x5a8]
pop edi
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x5a4
ret 8