joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4912e6
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
ret

Function at 0x491495
Capabilities:
Acquire debug privileges

Disassembly:
push 0x24
mov eax, 0x5916e6
call fcn.005692da
mov esi, ecx
push str.SeDebugPrivilege
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call fcn.00407be0
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00407bb0
mov byte [esi + 0x18], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00407cb0
mov ecx, esi
call fcn.0049fc22
mov eax, esi
call fcn.00569289
ret

Function at 0x491508
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x591744
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x108c
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x1088], eax
push ebx
push esi
push edi
mov eax, dword [0x600f80]
xor eax, esp
push eax
lea eax, [esp + 0x10a0]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x10], edi
push eax
push 0x1000
lea eax, [esp + 0x9c]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x4915a0
lea eax, [esp + 0x24]
push eax
call fcn.004921b9
push ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x10b0], ebx
call fcn.00495842
push 0x5fa010
lea eax, [esp + 0x40]
push eax
call fcn.005491a6
mov esi, dword [esp + 0x14]
shr esi, 2
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00492e7b
mov dword [edi], eax
lea ebx, [esp + 0x94]
mov dword [esp + 0x10a8], 1
mov eax, ebx
lea esi, [eax + esi*4]
cmp eax, esi
je 0x4915ef
push ebx
mov ecx, edi
call fcn.00492f3a
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.00492f5a
add ebx, 4
cmp ebx, esi
jne 0x4915ce
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00492125
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
mov ecx, edi
call fcn.00492125
mov eax, edi
mov ecx, dword [esp + 0x10a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1088]
xor ecx, esp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x49165c
Capabilities:
Get process image filename

Disassembly:
push 0x1c4
mov eax, 0x5917e1
call fcn.005692da
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1d0], edi
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x1c8], ebx
call fcn.00491495
push esi
push ebx
push 0x410
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1cc], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x4916e7
push 0x5dbe89
mov ecx, edi
call fcn.00407be0
mov dword [ebp - 0x1c8], 1
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x138]
call fcn.0049fdc8
lea ecx, [ebp - 0x138]
call fcn.00407cb0
mov eax, edi
call fcn.00569289
ret
push 0x103
lea eax, [ebp - 0x11b]
mov byte [ebp - 0x11c], bl
push ebx
push eax
call fcn.00540250
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0x104
push eax
push ebx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
lea eax, [ebp - 0x11c]
je 0x491742
push eax
mov ecx, edi
call fcn.00407be0
push esi
mov dword [ebp - 0x1c8], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 4
jmp 0x4916c9
push 0x104
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
test eax, eax
je 0x4917bb
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x168]
call fcn.00407be0
lea edx, [ebp - 0x168]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x150]
call fcn.004917ea
lea ecx, [ebp - 0x168]
call fcn.00407cb0
lea eax, [ebp - 0x150]
mov ecx, edi
push eax
call fcn.00407c40
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x1c8], 1
call fcn.00407cb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 6
jmp 0x4916c9
lea eax, [ebp - 0x150]
push eax
call fcn.00492322
push ecx
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 7
call fcn.00495842
push 0x5fa010
lea eax, [ebp - 0x1c4]
push eax
call fcn.005491a6
int3
Function at 0x4917ea
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x591814
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x600f80]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [esp + 0x10], ebx
and dword [esp + 0x18], 0
lea eax, [esp + 0xd4]
push eax
push 0x103
mov byte [esp + 0xdc], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x491912
mov ax, word [0x5e66cc]
lea edi, [esp + 0xd4]
mov word [esp + 0xd0], ax
xor ebx, ebx
mov al, byte [0x5e66ce]
mov byte [esp + 0xd2], al
mov al, byte [edi]
mov byte [esp + 0xd0], al
lea eax, [esp + 0x1dc]
push 0x104
push eax
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4918fb
lea eax, [esp + 0x1dc]
push eax
call fcn.00544490
mov dword [esp + 0x18], eax
pop ecx
cmp eax, 0x104
jae 0x4918fb
cmp dword [esi + 0x14], 0x10
jb 0x4918c8
mov ecx, dword [esi]
jmp 0x4918ca
mov ecx, esi
push eax
lea eax, [esp + 0x1e0]
push eax
push ecx
call fcn.0055ecb2
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x4918fb
cmp dword [esi + 0x14], 0x10
jb 0x4918ef
mov eax, dword [esi]
jmp 0x4918f1
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx], 0x5c
je 0x491944
mov al, byte [edi]
inc edi
test al, al
jne 0x4918fb
test ebx, ebx
jne 0x49190e
cmp byte [edi], bl
jne 0x49187d
mov ebx, dword [esp + 0x10]
push 0x5dbe89
mov ecx, ebx
call fcn.00407be0
mov eax, ebx
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
push ecx
push ecx
lea ecx, [esp + 0x24]
call fcn.00432ff0
and dword [esp + 0x2f8], 0
cmp dword [esi + 0x14], 0x10
jb 0x49195f
mov esi, dword [esi]
add esi, dword [esp + 0x14]
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x2c]
call fcn.0041b540
mov edx, esi
mov ecx, eax
call fcn.0041b540
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push esi
call fcn.00433150
lea ecx, [esp + 0x1c]
call fcn.0042fd00
mov eax, esi
jmp 0x491920
Function at 0x491997
Capabilities:
Get file attributes

Disassembly:
push 0x12c
mov eax, 0x5918ab
call fcn.00569346
mov ebx, ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x94], ebx
call fcn.00491495
and dword [ebp - 4], 0
cmp dword [ebx + 0x14], 0x10
jb 0x4919c4
mov eax, dword [ebx]
jmp 0x4919c6
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or edi, 0xffffffff
cmp eax, edi
jne 0x491a75
cmp dword [0x606ca0], 0
jl 0x491a69
call fcn.004107c0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
cmp dword [ecx + eax + 0x38], 0
je 0x491a69
lea eax, [ebp - 0x44]
push eax
call fcn.004925bb
mov edi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.004924b9
mov esi, eax
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call fcn.00410a10
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0041b8b0
mov edx, esi
mov ecx, eax
call fcn.0041b2e0
mov edx, ebx
mov ecx, eax
call fcn.0041b2e0
mov edx, edi
mov ecx, eax
call fcn.0041b2e0
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call fcn.0041b7f0
lea ecx, [ebp - 0x2c]
call fcn.00407cb0
lea ecx, [ebp - 0x44]
call fcn.00407cb0
or edi, 0xffffffff
mov dword [ebp - 4], 4
jmp 0x491c10
lea ecx, [ebp - 0x84]
call fcn.00491508
mov eax, dword [ebp - 0x84]
mov esi, dword [eax]
mov dword [ebp - 0x7c], esi
cmp esi, eax
je 0x491be8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
mov edx, dword [esi + 0x10]
call fcn.0049165c
mov edx, ebx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.0049febe
lea ecx, [ebp - 0x2c]
test al, al
je 0x491af2
mov edi, dword [esi + 0x10]
call fcn.00407cb0
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x84]
push eax
push dword [eax]
lea eax, [ebp - 0x88]
push eax
call fcn.00492ad9
push dword [ebp - 0x84]
call fcn.0053e195
pop ecx
mov dword [ebp - 4], 8
jmp 0x491c10
call fcn.00407cb0
jmp 0x491bcb
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 5
call fcn.00492b3d
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0x7c]
jmp 0x491a8b
push eax
push dword [eax]
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x84]
call fcn.00492ad9
push dword [ebp - 0x84]
call fcn.0053e195
pop ecx
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x60]
call fcn.0049fdc8
lea ecx, [ebp - 0x60]
call fcn.00407cb0
mov eax, edi
call fcn.00569298
ret
Function at 0x491d81
Capabilities:
Get file size
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59196e
mov eax, dword fs:[0]
push eax
mov eax, 0x1150
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10a4], ebx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10ac], eax
push 0xfff
push eax
mov byte [ebp - 0x1014], al
lea eax, [ebp - 0x1013]
push eax
mov dword [ebp - 0x10b8], ebx
call fcn.00540250
add esp, 0xc
mov dword [ebx + 0x14], 0xf
xor edi, edi
mov ecx, ebx
mov dword [ebx + 0x10], edi
push edi
call fcn.004084e0
mov dword [ebp - 4], edi
mov dword [ebp - 0x10ac], 1
test esi, esi
jne 0x491e3c
lea eax, [ebp - 0x1044]
push eax
call fcn.004927d7
push eax
lea ecx, [ebp - 0x1020]
mov dword [ebp - 4], 1
call fcn.0040cdb0
push 0x5f9d6c
lea eax, [ebp - 0x1020]
push eax
call fcn.005491a6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 0x10a0], eax
lea eax, [ebp - 0x10a0]
push eax
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x10a0], 0
je 0x491fa2
push edi
lea eax, [ebp - 0x10a8]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x491ef7
mov edi, dword [ebp - 0x10a8]
test edi, edi
je 0x491fa2
lea eax, [ebp - 0x10b0]
mov ecx, ebx
push eax
call fcn.00420600
lea ecx, [ebp - 0x1014]
add ecx, edi
push ecx
lea ecx, [ebp - 0x1014]
push ecx
push dword [eax]
lea eax, [ebp - 0x10b4]
mov ecx, ebx
push eax
call fcn.00492ea6
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 0x10a0], eax
lea eax, [ebp - 0x10a0]
push eax
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x10a0], edi
jne 0x491e69
jmp 0x491fa2
cmp dword [0x606ca0], 4
jl 0x491fa2
call fcn.004107c0
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 0x38], 0
je 0x491fa2
push ecx
lea ecx, [ebp - 0x109c]
call fcn.004957df
mov esi, eax
lea eax, [ebp - 0x102c]
mov dword [ebp - 4], 2
push eax
call fcn.0049296e
mov ebx, eax
lea ecx, [ebp - 0x115c]
mov byte [ebp - 4], 3
call fcn.00410a10
mov edi, eax
mov byte [ebp - 4], 4
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
push 4
mov ecx, edi
mov esi, eax
call fcn.0041b8b0
mov edx, ebx
mov ecx, eax
call fcn.0041b2e0
mov edx, esi
mov ecx, eax
call fcn.0041b540
lea ecx, [ebp - 0x115c]
mov byte [ebp - 4], 3
call fcn.0041b7f0
lea ecx, [ebp - 0x102c]
call fcn.00407cb0
lea ecx, [ebp - 0x109c]
call fcn.0043bd00
mov ebx, dword [ebp - 0x10a4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x491fc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
xorps xmm0, xmm0
push edi
push 0x40
push eax
mov dword [ebp - 0x20], eax
mov ebx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
movdqu xmmword [ebp - 0x40], xmm0
call fcn.00540250
mov esi, str.S_1_16_12288
lea edi, [ebp - 0x18]
xor eax, eax
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push 0xf01ff
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4920da
lea eax, [ebp - 0x1c]
push eax
push 1
push 2
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4920da
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
test eax, eax
je 0x4920da
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
add eax, 8
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x19
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x4920da
call fcn.004952e7
push 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0xc
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x4920da
xor eax, eax
mov dword [ebp - 0x5c], 1
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], edi
je 0x4920ea
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x3c], edi
je 0x4920f4
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x1c], edi
je 0x492107
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x20], edi
je 0x492111
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x494767
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
lea ecx, [ebp - 0x214]
push edi
push ecx
push eax
mov edi, edx
mov dword [ebp - 0x208], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x4948ad
push esi
push ebx
call fcn.0053eb1f
pop ecx
mov esi, eax
push esi
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x208]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x4947cd
push esi
call fcn.0053e16e
xor eax, eax
jmp 0x4948ab
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.VarFileInfoTranslation
push esi
call ebx
test eax, eax
je 0x4947c0
cmp dword [ebp - 0x218], 0
jne 0x4947fd
xor edi, edi
jmp 0x4948a3
mov ecx, dword [ebp - 0x20c]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04hX_04hXProductVersion
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.0053d0d6
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call ebx
push dword [ebp - 0x210]
mov dword [ebp - 0x208], eax
push dword [ebp - 0x20c]
push edi
call fcn.005406f0
mov ecx, dword [ebp - 0x210]
xor ebx, ebx
push edi
mov byte [edi + ecx - 1], bl
call fcn.00544490
add esp, 0x10
test eax, eax
je 0x49489d
lea eax, [edi + ebx]
cmp byte [eax], 0x20
jne 0x494891
push edi
call fcn.00544490
sub eax, ebx
push eax
lea eax, [edi + 1]
add eax, ebx
push eax
lea eax, [edi + ebx]
push eax
call fcn.0053d100
add esp, 0x10
push edi
inc ebx
call fcn.00544490
pop ecx
cmp ebx, eax
jb 0x49486e
mov edi, dword [ebp - 0x208]
push esi
call fcn.0053e16e
mov eax, edi
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x496609
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
push 0x10
mov eax, dword [ebx + 4]
lea esi, [ebx + 8]
shl eax, 4
lea edi, [ebx + 0xf8]
add esi, eax
push esi
push edi
call fcn.005406f0
xor eax, eax
add esp, 0xc
inc eax
add edi, 0x10
sub esi, 0x10
mov dword [ebp - 4], eax
cmp dword [ebx + 4], eax
jbe 0x4967a0
mov edx, dword [esi]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x5e0de0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5e09e0]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5e05e0]
movzx eax, byte [esi + 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5df9e0]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 5]
mov ecx, dword [ecx*4 + 0x5e0de0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5e09e0]
movzx eax, byte [esi + 6]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5df9e0]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5e05e0]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 9]
mov ecx, dword [ecx*4 + 0x5e0de0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5e09e0]
movzx eax, byte [esi + 0xa]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5df9e0]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5e05e0]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0xc]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 0xd]
mov ecx, dword [ecx*4 + 0x5e0de0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5e09e0]
movzx eax, byte [esi + 0xe]
sub esi, 0x10
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5df9e0]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5e05e0]
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], ecx
add edi, 0x10
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 4]
jb 0x496644
push 0x10
push esi
push edi
call fcn.005406f0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x498bc9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
test ebx, ebx
jne 0x498bdf
cmp dword [esi + 8], edi
ja 0x498c3c
push dword [esi + 0xc0]
lea ecx, [esi + 0x14]
call fcn.004a046b
push dword [esi + 0xc4]
lea ecx, [esi + 0x4c]
call fcn.004a046b
push dword [esi + 0xc8]
lea ecx, [esi + 0x84]
call fcn.004a046b
cmp dword [esi + 8], edi
jbe 0x498c35
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0xc4]
mov dl, byte [eax + edi]
mov eax, dword [esi + 0xc0]
xor dl, byte [ecx + edi]
xor dl, byte [eax + edi]
mov byte [edi + ebx], dl
inc edi
cmp edi, dword [esi + 8]
jb 0x498c11
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x5fa37c
lea eax, [ebp + 8]
mov dword [ebp + 8], str.Invalid_tag
push eax
call fcn.005491a6
int3

Function at 0x498d5b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
push edi
mov edi, ecx
push 3
lea eax, [ebx + 2]
cdq
pop ecx
idiv ecx
shl eax, 2
mov dword [ebp - 4], eax
test edi, edi
je 0x498e7b
test ebx, ebx
js 0x498e7b
push esi
mov esi, dword [ebp + 8]
add edi, ebx
add esi, eax
mov eax, ebx
cdq
idiv ecx
mov byte [esi], 0
dec edx
je 0x498dd7
dec edx
jne 0x498e01
sub edi, 2
mov byte [esi - 1], 0x3d
sub esi, 4
sub ebx, 2
push 3
movzx eax, byte [edi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx ecx, byte [edi]
pop eax
and ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 4
shr eax, 4
or ecx, eax
push 3
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
pop ecx
jmp 0x498df0
dec edi
mov word [esi - 2], 0x3d3d
sub esi, 4
dec ebx
movzx eax, byte [edi]
and eax, ecx
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
test ebx, ebx
jle 0x498e75
xor edx, edx
lea eax, [ebx - 1]
inc edi
add esi, 2
div ecx
lea edx, [eax + 1]
sub edi, ecx
lea esi, [esi - 4]
push 3
movzx ecx, byte [edi + 1]
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 0xf
shl ecx, 2
shr eax, 6
or ecx, eax
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edi - 1]
pop eax
and ecx, eax
movzx eax, byte [edi]
shl ecx, 4
shr eax, 4
or ecx, eax
push 3
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 1], al
movzx ecx, byte [edi - 1]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 2], cl
pop ecx
dec edx
jne 0x498e13
mov eax, dword [ebp - 4]
pop esi
jmp 0x498e7d
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret