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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x68031884]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
add ecx, 0xfffffffa
mov dword [ebp - 4], eax
lea eax, [ecx - 1]
test eax, eax
push esi
push edi
jl 0x6801757e
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x24]
sub edx, esi
jmp 0x68017570
lea esi, [edx + eax*4]
dec eax
mov esi, dword [ebp + esi - 0x24]
mov dword [ebp + eax*4 - 0x20], esi
jns 0x68017570
xor esi, esi
xor edx, edx
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x28], esi
jle 0x680175c7
jmp 0x68017590
mov edi, dword [ebp + 0x10]
inc edi
cmp esi, edi
jge 0x680175c7
cmp eax, ecx
jge 0x680175b8
lea esp, [esp]
cmp edx, 4
jge 0x680175bb
mov edi, dword [ebp + eax*4 - 0x24]
lea esi, [edx + esi*4]
inc eax
inc edx
cmp eax, ecx
mov dword [ebx + esi*4], edi
mov esi, dword [ebp - 0x28]
jl 0x680175a0
cmp edx, 4
jne 0x680175c3
inc esi
mov dword [ebp - 0x28], esi
xor edx, edx
cmp eax, ecx
jl 0x68017590
mov eax, dword [ebp + 0x10]
inc eax
cmp esi, eax
mov dword [ebp - 0x30], eax
jge 0x680176e0
mov dword [ebp - 0x2c], 0x68005ad8
lea ecx, [ecx]
movzx eax, byte [ebp + ecx*4 - 0x27]
mov al, byte [eax + 0x680028d8]
xor byte [ebp - 0x24], al
movzx eax, byte [ebp + ecx*4 - 0x26]
mov al, byte [eax + 0x680028d8]
xor byte [ebp - 0x23], al
movzx eax, byte [ebp + ecx*4 - 0x25]
mov al, byte [eax + 0x680028d8]
xor byte [ebp - 0x22], al
movzx eax, byte [ebp + ecx*4 - 0x28]
mov al, byte [eax + 0x680028d8]
xor byte [ebp - 0x21], al
mov eax, dword [ebp - 0x2c]
mov al, byte [eax]
mov edi, dword [ebp - 0x2c]
xor byte [ebp - 0x24], al
add edi, 4
cmp ecx, 8
mov dword [ebp - 0x2c], edi
mov eax, 1
je 0x68017646
cmp ecx, eax
jle 0x6801769e
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, ecx
jl 0x68017637
jmp 0x6801769e
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, 4
jl 0x68017646
movzx eax, byte [ebp - 0x18]
mov al, byte [eax + 0x680028d8]
xor byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x17]
mov al, byte [eax + 0x680028d8]
xor byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x16]
mov al, byte [eax + 0x680028d8]
xor byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x15]
mov al, byte [eax + 0x680028d8]
xor byte [ebp - 0x11], al
mov eax, 5
lea ecx, [ecx]
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, 8
jl 0x68017690
xor eax, eax
test ecx, ecx
jle 0x680176d7
cmp esi, dword [ebp - 0x30]
jge 0x680176d7
cmp eax, ecx
jge 0x680176c8
lea ecx, [ecx]
cmp edx, 4
jge 0x680176cb
mov edi, dword [ebp + eax*4 - 0x24]
lea esi, [edx + esi*4]
inc eax
inc edx
cmp eax, ecx
mov dword [ebx + esi*4], edi
mov esi, dword [ebp - 0x28]
jl 0x680176b0
cmp edx, 4
jne 0x680176d3
inc esi
mov dword [ebp - 0x28], esi
xor edx, edx
cmp eax, ecx
jl 0x680176a4
cmp esi, dword [ebp - 0x30]
jl 0x680175e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.68014cb9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x68017700
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
jle 0x680177f7
mov eax, dword [ebp + 8]
push esi
add eax, 0x16
dec ecx
push edi
lea ebx, [ebx]
movzx esi, byte [eax - 4]
mov edi, dword [esi*4 + 0x680052d8]
movzx edx, byte [eax - 3]
mov edx, dword [edx*4 + 0x680056d8]
movzx esi, byte [eax - 5]
xor edx, edi
mov edi, dword [esi*4 + 0x68004ed8]
movzx esi, byte [eax - 6]
xor edx, edi
xor edx, dword [esi*4 + 0x68004ad8]
mov dword [eax - 6], edx
movzx esi, byte [eax - 1]
mov edi, dword [esi*4 + 0x68004ed8]
movzx edx, byte [eax + 1]
mov edx, dword [edx*4 + 0x680056d8]
movzx esi, byte [eax]
xor edx, edi
mov edi, dword [esi*4 + 0x680052d8]
movzx esi, byte [eax - 2]
xor edx, edi
xor edx, dword [esi*4 + 0x68004ad8]
mov dword [eax - 2], edx
movzx esi, byte [eax + 4]
mov edi, dword [esi*4 + 0x680052d8]
movzx edx, byte [eax + 5]
mov edx, dword [edx*4 + 0x680056d8]
movzx esi, byte [eax + 3]
xor edx, edi
mov edi, dword [esi*4 + 0x68004ed8]
movzx esi, byte [eax + 2]
xor edx, edi
xor edx, dword [esi*4 + 0x68004ad8]
mov dword [eax + 2], edx
movzx esi, byte [eax + 8]
movzx edx, byte [eax + 9]
mov edi, dword [esi*4 + 0x680052d8]
movzx esi, byte [eax + 7]
mov edx, dword [edx*4 + 0x680056d8]
xor edx, edi
mov edi, dword [esi*4 + 0x68004ed8]
movzx esi, byte [eax + 6]
xor edx, edi
xor edx, dword [esi*4 + 0x68004ad8]
mov dword [eax + 6], edx
add eax, 0x10
dec ecx
jne 0x68017720
pop edi
pop esi
pop ebp
ret 8
Function at 0x68019a00
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x68019b3b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x68019b10
test eax, eax
jne 0x68019b10
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x68019a50
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x68019b3b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x68019b10
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x68019c50
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
pop ebp
ret 4

Function at 0x68019e00
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
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], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret 4
Function at 0x6801ab00
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x68031884]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x24]
and ecx, 0x3f
mov ebx, 0x40
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sub ebx, ecx
cmp ebx, 8
push edi
mov dword [ebp - 0x50], eax
ja 0x6801ab31
add ebx, 0x40
lea ecx, [ebx - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, eax
shl ecx, 3
shr edx, 0x1d
or ecx, edx
mov dword [ebp - 0x58], ecx
push 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp + ebx - 0x54]
shl eax, 3
push edx
mov byte [ebp - 0x4c], 0x80
mov dword [ebp - 0x54], eax
call fcn.680203a0
push ebx
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.6801a9d0
mov ecx, dword [ebp - 0x50]
push 8
push esi
push ecx
call fcn.680203a0
xor eax, eax
lea edi, [esi + 0x28]
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.68014cb9
mov esp, ebp
pop ebp
ret 8

Function at 0x6801abf0
Capabilities:
Hash data using sha224

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
pop ebp
ret 4

Function at 0x6801ac80
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
pop ebp
ret 4
Function at 0x6801f340
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
lea edx, [eax + 7]
shr edx, 3
lea ecx, [edx*8]
sub ecx, eax
mov eax, 0xff
sar eax, cl
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push edi
mov edi, dword [ebp + 8]
mov byte [ebp + 0x17], al
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0x80
rep movsb byte es:[edi], byte [esi]
jge 0x6801f3be
mov ecx, dword [ebp + 8]
mov edi, 1
mov esi, 0x80
sub edi, ebx
lea eax, [ecx + ebx - 1]
sub esi, ebx
lea ebx, [ebx]
xor ecx, ecx
mov cl, byte [edi + eax]
xor ebx, ebx
mov bl, byte [eax]
add ecx, ebx
and ecx, 0xff
mov cl, byte [ecx + 0x680017a0]
mov byte [eax + 1], cl
inc eax
dec esi
jne 0x6801f3a0
mov esi, dword [ebp + 8]
movzx ecx, byte [ebp + 0x17]
mov eax, esi
sub eax, edx
movzx edi, byte [eax + 0x80]
add eax, 0x80
and ecx, edi
mov cl, byte [ecx + 0x680017a0]
mov byte [eax], cl
mov ecx, 0x7f
sub ecx, edx
js 0x6801f407
lea eax, [ecx + esi + 1]
lea esi, [ecx + 1]
nop
movzx ecx, byte [edx + eax - 1]
movzx edi, byte [eax]
xor ecx, edi
mov cl, byte [ecx + 0x680017a0]
mov byte [eax - 1], cl
dec eax
dec esi
jne 0x6801f3f0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x68021fa9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20119
push esi
push 0x68006098
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebx + 0x110], esi
call dword [sym.imp._CADVAPI.DLL_RegOpenKeyExA]
mov edi, eax
cmp edi, 2
je 0x68022029
cmp edi, esi
jne 0x6802202b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x68006084
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp._CADVAPI.DLL_RegQueryValueExA]
mov edi, eax
cmp edi, esi
jne 0x68022024
cmp dword [ebp - 0xc], 2
jne 0x68022024
mov dword [ebx + 0x110], 1
jmp 0x6802202b
cmp edi, 2
jne 0x6802202b
xor edi, edi
cmp dword [ebp - 4], esi
je 0x68022039
push dword [ebp - 4]
call dword [sym.imp._CADVAPI.DLL_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x680220ab
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptProtectData]
push edi
push 0xa
xor ebx, ebx
pop edi
jmp 0x680220e4
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov ecx, eax
sub ecx, 0x6b5
je 0x6802210a
sub ecx, 6
jne 0x6802210f
cmp ebx, 5
jae 0x68022103
push edi
call dword [sym.imp._CKERNEL.DLL_Sleep]
add edi, edi
inc ebx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x680220c0
xor eax, eax
jmp 0x6802210f
mov eax, 0x6bb
jmp 0x6802210f
mov eax, 0x426
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c

Function at 0x6802211b
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x24]
test edi, edi
mov dword [ebp - 4], 0xa
je 0x6802213e
and dword [edi], 0
or dword [ebp + 0x1c], 0x41
push dword [ebp + 0x20]
mov esi, dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp._CKERNEL.DLL_GetLastError]
jmp 0x680221b1
call ebx
cmp eax, 0x6bb
jne 0x68022188
cmp dword [ebp - 8], 5
jae 0x680221c7
push dword [ebp - 4]
call dword [sym.imp._CKERNEL.DLL_Sleep]
mov eax, dword [ebp - 4]
add eax, eax
inc dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x6802219a
cmp eax, 0x52d
jne 0x680221c7
test edi, edi
je 0x680221c7
or dword [edi], 2
and dword [ebp + 0x1c], 0xfffffffe
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x68022163
test edi, edi
je 0x680221c5
call ebx
cmp eax, 0x91012
jne 0x680221c5
or dword [edi], 8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x680223ca
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push 0x20119
push esi
push 0x680060fc
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 0x10
call dword [sym.imp._CADVAPI.DLL_RegOpenKeyExA]
cmp eax, 2
jne 0x6802240b
xor edi, edi
jmp 0x680224e0
cmp eax, esi
je 0x68022416
mov edi, eax
jmp 0x680224e0
mov edi, dword [sym.imp._CADVAPI.DLL_RegQueryValueExA]
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
mov ebx, 0x680060f0
push ebx
push dword [ebp - 4]
call edi
cmp eax, 2
jne 0x6802243b
xor edi, edi
jmp 0x680224df
cmp eax, esi
je 0x68022446
mov edi, eax
jmp 0x680224df
push dword [ebp - 0xc]
call fcn.68021ec0
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x6802245a
push 8
pop edi
jmp 0x680224d2
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push esi
push ebx
push dword [ebp - 4]
call edi
cmp eax, esi
jne 0x6802248a
mov edi, dword [sym.imp._CKERNEL.DLL_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
push 2
push esi
call edi
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x6802248e
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov edi, eax
jmp 0x680224d2
lea eax, [eax + eax + 2]
push eax
call fcn.68021ec0
mov ebx, eax
cmp ebx, esi
jne 0x680224a3
push 8
pop edi
jmp 0x680224c8
push dword [ebp - 0x10]
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
push 2
push esi
call edi
test eax, eax
jne 0x680224bf
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov edi, eax
jmp 0x680224c8
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor ebx, ebx
xor edi, edi
cmp ebx, esi
je 0x680224d2
push ebx
call fcn.68021f03
cmp dword [ebp - 8], esi
je 0x680224df
push dword [ebp - 8]
call fcn.68021f03
pop ebx
cmp dword [ebp - 4], esi
je 0x680224ee
push dword [ebp - 4]
call dword [sym.imp._CADVAPI.DLL_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x680224fb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x68031884]
push ebx
mov dword [ebp - 4], eax
push esi
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call fcn.680223ca
cmp eax, ebx
jne 0x680225b4
cmp dword [ebp - 0x20], ebx
jne 0x6802258a
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
cmp eax, ebx
jne 0x680225b4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push 0x680060fc
push 0x80000002
call dword [sym.imp._CADVAPI.DLL_RegCreateKeyExA]
cmp eax, ebx
jne 0x680225b4
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
mov esi, 0x680060f0
push esi
push dword [ebp - 0x18]
call dword [sym.imp._CADVAPI.DLL_RegQueryValueExA]
cmp eax, 2
je 0x68022591
mov esi, 0x80090020
jmp 0x680225b6
mov eax, dword [ebp - 0x1c]
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x68022598
sub eax, edi
inc eax
push eax
push dword [ebp - 0x1c]
push 1
push ebx
push esi
push dword [ebp - 0x18]
call dword [sym.imp._CADVAPI.DLL_RegSetValueExA]
pop edi
mov esi, eax
cmp dword [ebp - 0x1c], ebx
je 0x680225c5
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
cmp dword [ebp - 0x20], ebx
je 0x680225d2
push dword [ebp - 0x20]
call fcn.68021f03
cmp dword [ebp - 0x18], ebx
je 0x680225e0
push dword [ebp - 0x18]
call dword [sym.imp._CADVAPI.DLL_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.68014cb9
leave
ret
Function at 0x68022c18
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x68031884]
push ebx
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x404]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x418]
push eax
push 1
push 0x2000000
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], 0x400
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x40c], bl
mov byte [ebp - 0x40b], bl
mov byte [ebp - 0x40a], bl
mov byte [ebp - 0x409], bl
mov byte [ebp - 0x408], bl
mov byte [ebp - 0x407], 5
mov dword [edi], ebx
call dword [sym.imp._CKERNEL.DLL_GetCurrentThread]
push eax
call dword [sym.imp._CADVAPI.DLL_OpenThreadToken]
test eax, eax
je 0x68022cad
call dword [sym.imp._CADVAPI.DLL_RevertToSelf]
lea eax, [ebp - 0x410]
push eax
push 8
call dword [sym.imp._CKERNEL.DLL_GetCurrentProcess]
push eax
call dword [sym.imp._CADVAPI.DLL_OpenProcessToken]
test eax, eax
jne 0x68022cd4
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov edi, eax
jmp 0x68022dba
cmp dword [ebp - 0x418], ebx
je 0x68022ced
push dword [ebp - 0x418]
push ebx
call dword [sym.imp._CADVAPI.DLL_SetThreadToken]
test eax, eax
je 0x68022cc7
mov esi, dword [sym.imp._CADVAPI.DLL_GetTokenInformation]
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x404]
push eax
push 1
push dword [ebp - 0x410]
call esi
test eax, eax
jne 0x68022d5c
call dword [sym.imp._CKERNEL.DLL_GetLastError]
cmp eax, 0x7a
jne 0x68022ccd
push dword [ebp - 0x414]
call fcn.68021ec0
cmp eax, ebx
mov dword [ebp - 0x420], eax
jne 0x68022d3a
push 8
pop edi
jmp 0x68022da7
lea ecx, [ebp - 0x414]
push ecx
push dword [ebp - 0x414]
mov dword [ebp - 0x424], eax
push eax
push 1
push dword [ebp - 0x410]
call esi
test eax, eax
je 0x68022d81
lea eax, [ebp - 0x41c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp._CADVAPI.DLL_AllocateAndInitializeSid]
test eax, eax
jne 0x68022d8b
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov edi, eax
jmp 0x68022da7
mov eax, dword [ebp - 0x424]
push dword [eax]
push dword [ebp - 0x41c]
call dword [sym.imp._CADVAPI.DLL_EqualSid]
test eax, eax
je 0x68022da5
mov dword [edi], esi
xor edi, edi
cmp dword [ebp - 0x420], ebx
je 0x68022dba
push dword [ebp - 0x420]
call fcn.68021f03
cmp dword [ebp - 0x41c], ebx
je 0x68022dce
push dword [ebp - 0x41c]
call dword [sym.imp._CADVAPI.DLL_FreeSid]
cmp dword [ebp - 0x418], ebx
mov esi, dword [sym.imp._CKERNEL.DLL_CloseHandle]
je 0x68022de4
push dword [ebp - 0x418]
call esi
cmp dword [ebp - 0x410], ebx
je 0x68022df4
push dword [ebp - 0x410]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.68014cb9
leave
ret 4
Function at 0x68022e0a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x68031884]
push ebx
mov dword [ebp - 4], eax
push esi
xor ebx, ebx
lea eax, [ebp - 0x404]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x410]
push eax
push 8
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], 0x400
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x40c], bl
mov byte [ebp - 0x40b], bl
mov byte [ebp - 0x40a], bl
mov byte [ebp - 0x409], bl
mov byte [ebp - 0x408], bl
mov byte [ebp - 0x407], 5
mov dword [edi], ebx
call fcn.68022047
cmp eax, ebx
jne 0x68022eb9
mov esi, dword [sym.imp._CADVAPI.DLL_GetTokenInformation]
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x404]
push eax
push 1
push dword [ebp - 0x410]
call esi
test eax, eax
jne 0x68022efc
call dword [sym.imp._CKERNEL.DLL_GetLastError]
cmp eax, 0x7a
je 0x68022ec0
mov esi, eax
jmp 0x68022f5a
push dword [ebp - 0x414]
call fcn.68021ec0
cmp eax, ebx
mov dword [ebp - 0x41c], eax
jne 0x68022eda
push 8
pop esi
jmp 0x68022f47
lea ecx, [ebp - 0x414]
push ecx
push dword [ebp - 0x414]
mov dword [ebp - 0x420], eax
push eax
push 1
push dword [ebp - 0x410]
call esi
test eax, eax
je 0x68022f21
lea eax, [ebp - 0x418]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp._CADVAPI.DLL_AllocateAndInitializeSid]
test eax, eax
jne 0x68022f2b
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov esi, eax
jmp 0x68022f47
mov eax, dword [ebp - 0x420]
push dword [eax]
push dword [ebp - 0x418]
call dword [sym.imp._CADVAPI.DLL_EqualSid]
test eax, eax
je 0x68022f45
mov dword [edi], esi
xor esi, esi
cmp dword [ebp - 0x41c], ebx
je 0x68022f5a
push dword [ebp - 0x41c]
call fcn.68021f03
cmp dword [ebp - 0x418], ebx
je 0x68022f6e
push dword [ebp - 0x418]
call dword [sym.imp._CADVAPI.DLL_FreeSid]
cmp dword [ebp - 0x410], ebx
je 0x68022f82
push dword [ebp - 0x410]
call dword [sym.imp._CKERNEL.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.68014cb9
leave
ret 4