joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402090
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 8]
push esi
xor ebx, ebx
xor esi, esi
push eax
push 0x20008
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40219c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push edx
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0
mov byte [esp + 0x46], 0
mov byte [esp + 0x47], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x49], 5
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40219c
mov ecx, dword [esp + 0xc]
push ebp
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [esp + 0x24], ebx
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.0040a1f5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x402180
mov eax, dword [esi]
xor edi, edi
cmp eax, ebx
jbe 0x402180
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
push eax
push ecx
call ebx
test eax, eax
jne 0x402178
mov eax, dword [esi]
inc edi
add ebp, 8
cmp edi, eax
jb 0x40215d
jmp 0x402180
mov dword [esp + 0x1c], 1
push esi
call fcn.0040a21e
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [esp + 0x1c]
pop edi
xor ebx, ebx
pop ebp
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4021ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x4067cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x415d88
cmp edx, dword [eax]
je 0x4067ef
add eax, 8
inc ecx
cmp eax, 0x415e18
jl 0x4067e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x415d88]
jne 0x40691d
mov eax, dword [0x418874]
cmp eax, 1
je 0x4068f7
test eax, eax
jne 0x406820
cmp dword [0x4157b0], 1
je 0x4068f7
cmp edx, 0xfc
je 0x40691d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406857
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405250
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405340
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40689a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405340
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4118cc
push edi
call fcn.00405150
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405250
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405260
lea eax, [ebp - 0xa0]
push 0x4118ac
push eax
call fcn.00405260
push dword [esi + 0x415d8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405260
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004082bb
add esp, 0x2c
pop edi
jmp 0x40691d
lea eax, [ebp + 8]
lea esi, [esi + 0x415d8c]
push 0
push eax
push dword [esi]
call fcn.00405340
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40f255
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40f283
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f2a1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040f1bb
jmp 0x40f2a1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f2a1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040f1bb
test edi, edi
mov eax, edi
jne 0x40f28b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001918e
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
push edi
xor edi, edi
movzx edx, byte [edi + 0x10124018]
mov ecx, edx
mov eax, edx
shr ecx, 7
imul esi, ecx, 0x1b000000
shl eax, 0x19
imul ecx, ecx, 0x11b
xor esi, eax
mov eax, edx
shl eax, 8
or eax, edx
shl eax, 8
or esi, eax
lea eax, [edx + edx]
xor ecx, eax
xor eax, eax
xor ecx, edx
or eax, esi
or ecx, esi
mov dword [edi*8 + 0x10166070], eax
mov dword [edi*8 + 0x10166074], ecx
inc edi
cmp edi, 0x100
jl 0x10019192
xorps xmm0, xmm0
pop edi
movlpd qword [0x10166878], xmm0
movlpd qword [0x10166870], xmm0
mov byte [0x10166892], 1
pop esi
ret

Function at 0x100191fe
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
movzx edi, byte [edx + 0x10123f18]
mov dword [esp + 0x10], edi
mov eax, edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 3
xor ecx, dword [esp + 0x10]
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
imul eax, edi, 0x11b
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 2
xor ecx, dword [esp + 0x10]
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x101669f0], eax
mov dword [edx*8 + 0x101669f4], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x1001920b
pop edi
pop esi
pop ebp
mov byte [0x10166893], 1
pop ebx
add esp, 0x10
ret
Function at 0x1001ab95
Capabilities:
Hash data using sha256

Disassembly:
push ecx
push esi
push edi
mov edx, ecx
mov dword [esp + 8], edx
push 0x10
and dword [edx + 4], 0
lea eax, [edx + 0x10]
and dword [edx + 8], 0
lea ecx, [edx + 0x68]
mov byte [eax + 0x41], 1
mov edi, 0x3fffffff
mov dword [eax + 0x48], edi
mov dword [eax + 0x50], eax
pop esi
mov dword [eax + 0x4c], esi
mov eax, ecx
mov dword [ecx + 0x54], esi
and eax, 0xf
mov byte [ecx + 0x49], 1
add eax, ecx
mov dword [ecx + 0x50], edi
mov esi, 0x10125640
mov dword [ecx + 0x58], eax
mov eax, edx
mov edi, dword [edx + 0xc0]
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [edx], vtable.CryptoPP::SHA256.0
pop esi
pop ecx
ret
Function at 0x1001f2fb
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x1001f344
mov ecx, dword [esp + 0xc]
push ebp
push 4
pop ebp
cmp esi, ebp
jb 0x1001f32d
push ebx
mov ebx, esi
shr ebx, 2
mov eax, dword [edx]
sub esi, ebp
xor eax, dword [ecx]
add edx, ebp
mov dword [edi], eax
add ecx, ebp
add edi, ebp
sub ebx, 1
jne 0x1001f319
pop ebx
pop ebp
test esi, esi
je 0x1001f344
sub edx, ecx
sub edi, ecx
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
inc ecx
sub esi, 1
jne 0x1001f336
pop edi
pop esi
ret

Function at 0x1001f347
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov ebx, ecx
xor ecx, ecx
mov esi, edx
cmp edi, 4
jb 0x1001f372
mov edx, edi
shr edx, 2
mov eax, dword [ebx]
sub edi, 4
xor eax, dword [esi]
add ebx, 4
or ecx, eax
add esi, 4
sub edx, 1
jne 0x1001f35e
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test edi, edi
je 0x1001f3a5
sub ebx, esi
movzx ecx, byte [ebx + esi]
movzx eax, byte [esi]
xor ecx, eax
or edx, ecx
inc esi
sub edi, 1
jne 0x1001f394
pop edi
test edx, edx
pop esi
sete al
pop ebx
ret

Function at 0x1001fcbf
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
movups xmm0, xmmword [eax]
lea edx, [ecx - 1]
push edi
pxor xmm0, xmmword [esi]
movups xmmword [eax], xmm0
cmp edx, 1
jbe 0x1001fd04
add edx, 0xfffffffe
lea edi, [esi + 0x10]
shr edx, 1
inc edx
aesenc xmm0, xmmword [edi]
movups xmmword [eax], xmm0
lea edi, [edi + 0x20]
aesenc xmm0, xmmword [edi - 0x10]
movups xmmword [eax], xmm0
sub edx, 1
jne 0x1001fceb
add ecx, ecx
pop edi
aesenc xmm0, xmmword [esi + ecx*8 - 0x10]
movups xmmword [eax], xmm0
aesenclast xmm0, xmmword [esi + ecx*8]
movups xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001fd1f
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push esi
movups xmm1, xmmword [eax]
mov eax, dword [ebp + 8]
movaps xmm0, xmm1
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x1c]
pxor xmm0, xmmword [eax]
movups xmmword [eax], xmm0
movaps xmm0, xmm1
pxor xmm0, xmmword [ecx]
movups xmmword [ecx], xmm0
movaps xmm0, xmm1
pxor xmm0, xmmword [edx]
movups xmmword [edx], xmm0
pxor xmm1, xmmword [esi]
movups xmmword [esi], xmm1
cmp edi, 1
jbe 0x1001fdbc
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [edi - 1]
mov edi, dword [esp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
sub dword [esp + 8], 1
movups xmm1, xmmword [edi]
lea edi, [edi + 0x10]
movups xmm0, xmmword [eax]
aesenc xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx]
aesenc xmm0, xmm1
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx]
aesenc xmm0, xmm1
movups xmmword [edx], xmm0
movups xmm0, xmmword [esi]
aesenc xmm0, xmm1
movups xmmword [esi], xmm0
jne 0x1001fd80
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
add edi, edi
movups xmm0, xmmword [eax]
movups xmm1, xmmword [esi + edi*8]
mov esi, dword [ebp + 0x14]
aesenclast xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx]
aesenclast xmm0, xmm1
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx]
aesenclast xmm0, xmm1
movups xmmword [edx], xmm0
movups xmm0, xmmword [esi]
aesenclast xmm0, xmm1
pop edi
movups xmmword [esi], xmm0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001fdfa
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
push edi
push ecx
push esi
movups xmm0, xmmword [ecx + edi - 0x10]
movaps xmmword [esp + 0x2c], xmm0
call fcn.100ce860
movaps xmm1, xmmword [esp + 0x2c]
mov edx, edi
shr edx, 2
add esp, 0xc
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
lea eax, [edx + 7]
mov dword [esp + 0x18], 0x10124134
shl eax, 4
add eax, esi
xor ecx, 1
mov dword [esp + 0x1c], eax
jmp 0x1001fed3
cmp edi, 0x18
jne 0x1001fe71
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x1001feb6
cmp edi, 0x20
jne 0x1001feaf
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x1001feb6
pinsrd xmm1, dword [esi + 0x1c], 3
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [eax]
xor ecx, dword [esi]
add dword [esp + 0x18], 4
lea eax, [esi + edx*4]
mov dword [eax], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + edx*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
lea eax, [esi + 0x10]
lea eax, [eax + edx*4]
cmp eax, dword [esp + 0x1c]
jne 0x1001fe53
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001ff10
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
movups xmm1, xmmword [ecx]
mov eax, edx
add eax, eax
lea edx, [edx*4 - 4]
push 4
movups xmm0, xmmword [ecx + eax*8]
movups xmmword [ecx], xmm0
movups xmmword [ecx + eax*8], xmm1
pop eax
cmp edx, eax
jbe 0x1001ff54
aesimc xmm0, xmmword [ecx + edx*4]
aesimc xmm1, xmmword [ecx + eax*4]
movups xmmword [ecx + eax*4], xmm0
add eax, 4
movups xmmword [ecx + edx*4], xmm1
sub edx, 4
cmp eax, edx
jb 0x1001ff36
aesimc xmm0, xmmword [ecx + eax*4]
movups xmmword [ecx + eax*4], xmm0
mov esp, ebp
pop ebp
ret
Function at 0x10021d30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [0x1015f1d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x368], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp eax, 0x40
jne 0x10021d67
mov ebx, eax
jmp 0x10021db3
jbe 0x10021d81
lea ecx, [ebp - 0x24]
mov ebx, 0x20
push ecx
push eax
push edi
call fcn.10022100
add esp, 0xc
lea edi, [ebp - 0x24]
jmp 0x10021d83
mov ebx, eax
mov esi, 0x40
lea eax, [ebp - 0xc4]
sub esi, ebx
add eax, ebx
push esi
push 0x36
push eax
call fcn.100cede0
push esi
lea eax, [ebp - 0x84]
add eax, ebx
push 0x5c
push eax
call fcn.100cede0
add esp, 0x18
test ebx, ebx
jle 0x10021ddd
lea eax, [ebp - 0xc4]
sub edi, eax
xor eax, eax
nop dword [eax]
lea esi, [ebp - 0xc4]
add esi, eax
inc eax
mov dl, byte [edi + esi]
mov cl, dl
xor dl, 0x5c
xor cl, 0x36
mov byte [esi + 0x40], dl
mov byte [esi], cl
cmp eax, ebx
jl 0x10021dc0
lea eax, [ebp - 0x364]
push eax
call fcn.10022570
push 0x40
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.100225e0
lea eax, [ebp - 0x2bc]
push eax
call fcn.10022570
push 0x40
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.100225e0
push dword [ebp + 0x14]
mov ecx, 0x2a
lea esi, [ebp - 0x364]
push dword [ebp - 0x368]
lea edi, [ebp - 0x214]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x364]
mov ecx, 0x2a
lea esi, [ebp - 0x2bc]
lea edi, [ebp - 0x16c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100225e0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.100223a0
push 0x20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.100225e0
add esp, 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.100223a0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x36c]
call fcn.100ce860
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100476aa
mov esp, ebp
pop ebp
ret
Function at 0x10023870
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10106868
lea esp, [esp + 4]
nop
nop
cmp dword [ebp + 8], 0
je 0x10023a0b
cmp dword [ebp + 0xc], 0
je 0x10023a0b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10023a0b
mov eax, dword [ebp + 0x14]
test al, 3
jne 0x10023a0b
push edi
xor edi, edi
test eax, eax
jle 0x100239ff
add esi, 2
push ebx
nop dword [eax + eax]
mov cl, byte [esi - 2]
lea ebx, [ecx - 0x41]
cmp bl, 0x19
jbe 0x100238f9
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x100238d8
lea ebx, [ecx - 0x47]
jmp 0x100238f9
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x100238e5
lea ebx, [ecx + 4]
jmp 0x100238f9
cmp cl, 0x2b
je 0x100238f7
cmp cl, 0x2f
je 0x100238f3
xor bl, bl
jmp 0x100238f9
mov bl, 0x3f
jmp 0x100238f9
mov bl, 0x3e
mov cl, byte [esi - 1]
lea edx, [ecx - 0x41]
cmp dl, 0x19
jbe 0x10023932
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x10023911
lea edx, [ecx - 0x47]
jmp 0x10023932
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x1002391e
lea edx, [ecx + 4]
jmp 0x10023932
cmp cl, 0x2b
je 0x10023930
cmp cl, 0x2f
je 0x1002392c
xor dl, dl
jmp 0x10023932
mov dl, 0x3f
jmp 0x10023932
mov dl, 0x3e
mov cl, byte [esi]
mov al, cl
sub al, 0x41
cmp al, 0x19
jbe 0x1002396a
mov al, cl
sub al, 0x61
cmp al, 0x19
mov al, cl
ja 0x1002394a
sub al, 0x47
jmp 0x1002396a
sub al, 0x30
cmp al, 9
ja 0x10023956
mov al, cl
add al, 4
jmp 0x1002396a
cmp cl, 0x2b
je 0x10023968
cmp cl, 0x2f
je 0x10023964
xor al, al
jmp 0x1002396a
mov al, 0x3f
jmp 0x1002396a
mov al, 0x3e
mov ch, byte [esi + 1]
mov ah, ch
sub ah, 0x41
cmp ah, 0x19
jbe 0x100239ad
mov cl, ch
sub cl, 0x61
cmp cl, 0x19
ja 0x10023988
mov ah, ch
sub ah, 0x47
jmp 0x100239ad
mov cl, ch
sub cl, 0x30
cmp cl, 9
ja 0x10023999
mov ah, ch
add ah, 4
jmp 0x100239ad
cmp ch, 0x2b
je 0x100239ab
cmp ch, 0x2f
je 0x100239a7
xor ah, ah
jmp 0x100239ad
mov ah, 0x3f
jmp 0x100239ad
mov ah, 0x3e
mov cl, dl
shl bl, 2
shr cl, 4
inc edi
or cl, bl
shl dl, 4
mov ebx, dword [ebp + 8]
mov byte [ebx], cl
mov cl, al
shr cl, 2
or cl, dl
mov byte [ebx + 1], cl
cmp byte [esi], 0x3d
je 0x100239fe
shl al, 6
inc edi
or al, ah
mov byte [ebx + 2], al
add ebx, 3
cmp byte [esi + 1], 0x3d
mov dword [ebp + 8], ebx
je 0x100239fe
mov eax, dword [ebp + 0x14]
inc edi
sub eax, 4
add esi, 4
mov dword [ebp + 0x14], eax
cmp edi, dword [ebp + 0xc]
jae 0x100239fe
test eax, eax
jg 0x100238c0
pop ebx
nop
nop
nop
nop
nop
nop
mov eax, edi
pop edi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10023a10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x10106898
lea esp, [esp + 4]
nop
nop
mov edi, dword [ebp + 8]
test edi, edi
je 0x10023bc5
cmp dword [ebp + 0xc], 0
je 0x10023bc5
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10023bc5
cmp dword [ebp + 0x14], 0
je 0x10023bc5
push esi
call fcn.10023bd0
add esp, 4
cmp eax, 0xffffffff
mov eax, dword [ebp + 0x14]
je 0x10023a64
add esi, 3
sub eax, 3
mov dword [ebp + 0x14], eax
test al, 3
jne 0x10023bc5
push ebx
xor ebx, ebx
mov dword [ebp + 8], ebx
test eax, eax
jle 0x10023bb8
add esi, 2
nop dword [eax]
mov cl, byte [esi - 2]
lea ebx, [ecx - 0x30]
cmp bl, 9
jbe 0x10023ab9
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x10023a98
lea ebx, [ecx - 0x37]
jmp 0x10023ab9
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x10023aa5
lea ebx, [ecx - 0x3d]
jmp 0x10023ab9
cmp cl, 0x2b
je 0x10023ab7
cmp cl, 0x2f
je 0x10023ab3
xor bl, bl
jmp 0x10023ab9
mov bl, 0x3f
jmp 0x10023ab9
mov bl, 0x3e
mov cl, byte [esi - 1]
lea edx, [ecx - 0x30]
cmp dl, 9
jbe 0x10023af2
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x10023ad1
lea edx, [ecx - 0x37]
jmp 0x10023af2
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x10023ade
lea edx, [ecx - 0x3d]
jmp 0x10023af2
cmp cl, 0x2b
je 0x10023af0
cmp cl, 0x2f
je 0x10023aec
xor dl, dl
jmp 0x10023af2
mov dl, 0x3f
jmp 0x10023af2
mov dl, 0x3e
mov ah, byte [esi]
mov cl, ah
sub cl, 0x30
cmp cl, 9
jbe 0x10023b30
mov al, ah
sub al, 0x41
cmp al, 0x19
ja 0x10023b0d
mov cl, ah
sub cl, 0x37
jmp 0x10023b30
mov al, ah
sub al, 0x61
cmp al, 0x19
ja 0x10023b1c
mov cl, ah
sub cl, 0x3d
jmp 0x10023b30
cmp ah, 0x2b
je 0x10023b2e
cmp ah, 0x2f
je 0x10023b2a
xor cl, cl
jmp 0x10023b30
mov cl, 0x3f
jmp 0x10023b30
mov cl, 0x3e
mov ch, byte [esi + 1]
mov ah, ch
sub ah, 0x30
cmp ah, 9
jbe 0x10023b6f
mov al, ch
sub al, 0x41
cmp al, 0x19
ja 0x10023b4c
mov ah, ch
sub ah, 0x37
jmp 0x10023b6f
mov al, ch
sub al, 0x61
cmp al, 0x19
ja 0x10023b5b
mov ah, ch
sub ah, 0x3d
jmp 0x10023b6f
cmp ch, 0x2b
je 0x10023b6d
cmp ch, 0x2f
je 0x10023b69
xor ah, ah
jmp 0x10023b6f
mov ah, 0x3f
jmp 0x10023b6f
mov ah, 0x3e
mov al, dl
shl bl, 2
shr al, 4
add esi, 4
or al, bl
shl dl, 4
mov byte [edi], al
mov al, cl
shr al, 2
or al, dl
shl cl, 6
mov edx, dword [ebp + 8]
or cl, ah
mov byte [edi + 1], al
add edx, 3
mov eax, dword [ebp + 0x14]
mov byte [edi + 2], cl
sub eax, 4
add edi, 3
mov dword [ebp + 0x14], eax
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jae 0x10023bb5
test eax, eax
jg 0x10023a80
mov ebx, dword [ebp + 8]
nop
nop
nop
nop
nop
nop
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10025c70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fbfe4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1015f1d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x10025d37
push 0x40
call fcn.1004713b
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10025d26
mov dword [eax + 4], 0
xorps xmm0, xmm0
mov dword [eax], vtable.tutorial::BeginAuthSessionViaCredentialsResponse.0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x10], 0x10165750
mov dword [eax + 0x14], 0x10165750
mov dword [eax + 0x18], 0x10165750
mov dword [eax + 0x1c], 0x10165750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x101604f4
push 0x40
mov dword [ebp - 0x10], ecx
call fcn.1004d7f0
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.10025b40
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret