joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cde20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5a77d0]
push esi
test eax, eax
je 0x4cde5a
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x4cde5a
mov eax, dword [0x5a77d0]
test eax, eax
je 0x4cde43
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4cde5a
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4ce050
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x5a77d0]
test eax, eax
je 0x4ce0d8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x4ce0d7
mov ecx, dword [0x5a77d0]
test ecx, ecx
jne 0x4ce076
xor eax, eax
jmp 0x4ce07f
push ecx
call esi
mov ecx, dword [0x5a77d0]
cmp byte [eax + 0x18], 0
je 0x4ce0d7
test ecx, ecx
je 0x4ce0d7
push ecx
call esi
test eax, eax
je 0x4ce0d7
mov eax, dword [0x5a77d0]
test eax, eax
je 0x4ce09c
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4ce0d7
mov eax, dword [0x5a77d0]
test eax, eax
je 0x4ce0b8
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x58f1f0
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.00516926
pop esi
pop ecx
ret

Function at 0x4ce800
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x54d898
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5a1574]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x4cde00
push 0x5a77c8
call fcn.004ce140
mov eax, dword [0x5a77d0]
add esp, 8
test eax, eax
je 0x4ce85a
mov ecx, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.00514bdf
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea edx, [esp + 4]
push edx
mov dword [esp + 0x20], 0
call fcn.0046a220
int3
Function at 0x4ce890
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x54d8c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a1574]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x5a77d0]
test eax, eax
jne 0x4ce8c2
xor esi, esi
jmp 0x4ce8cb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x4ce8f7
cmp dword [esi + 0x14], 0
jne 0x4ce939
cmp dword [esi + 0x10], 0
jne 0x4ce940
push 0
call fcn.004ce800
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x4ce925
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ce925
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x4ce980
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4ce96e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x4ce940
cmp dword [esi + 0x14], 0
je 0x4ce8e7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4ce9a5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4ce9d6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ce9d6
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ce9d6
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x4ce98a
jmp 0x4ce8e1
Function at 0x4cea70
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x54d918
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5a1574]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x4ce9f0
push 0
push 0
call fcn.0051cc32
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4ceadb
lea ecx, [esp + 0x10]
call fcn.00514bdf
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0046a220
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x4ceb01
cmp eax, 0xffffffff
je 0x4ceb01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4d0816
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x44]
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
je 0x4d0883
call fcn.004ce530
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 4]
call fcn.004d0302
push ebx
push ebx
push 3
push ebx
push ebx
call fcn.004230d6
mov ecx, dword [esi]
mov dword [ebp - 8], eax
add esp, 0x14
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], edx
call fcn.004d07e1
test al, al
jne 0x4d0873
mov ecx, dword [esi]
push ebx
call fcn.004ce5c0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.004d09e3
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi], ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x4d1518
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x24]
mov ecx, dword [ebx]
push edi
xor edi, edi
cmp ecx, edi
jne 0x4d1535
mov al, 1
jmp 0x4d15ea
call fcn.004ce530
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
push edi
push 3
push edi
push edi
call fcn.004230d6
mov ecx, dword [ebx]
mov dword [ebp - 0x10], eax
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], edx
call fcn.004d07e1
test al, al
jne 0x4d1575
mov ecx, dword [ebx]
push edi
call fcn.004ce5c0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, ebx
call fcn.004d09e3
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x64], edi
lea edi, [esi + 4]
mov eax, dword [edi + 0x18]
push edi
push dword [eax]
lea ecx, [ebp - 8]
call fcn.00413afa
push edi
push dword [edi + 0x18]
jmp 0x4d15bc
lea ecx, [ebp - 8]
call fcn.004d095e
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 8]
call fcn.004529dc
push edi
push dword [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.00413afa
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.004d5922
test al, al
je 0x4d159f
mov ecx, edi
call fcn.0044a7bc
lea ecx, [esi + 0x74]
call fcn.004d09e3
xor eax, eax
cmp dword [ebx], eax
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d22c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.004d2287
pop ecx
pop ecx
test al, al
je 0x4d2336
push 1
push dword [ebp + 0xc]
call fcn.004d2287
pop ecx
pop ecx
test al, al
je 0x4d2336
mov esi, dword [ebp + 0x10]
push 1
push esi
call fcn.004d2287
pop ecx
pop ecx
test al, al
je 0x4d2336
mov edi, dword [ebp + 0x14]
push ebx
shr edi, 2
xor ebx, ebx
test edi, edi
jbe 0x4d2322
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub ecx, esi
mov eax, esi
sub edx, esi
mov ebx, edi
mov esi, dword [ecx + eax]
xor esi, dword [eax]
mov dword [edx + eax], esi
add eax, 4
dec edi
jne 0x4d2314
mov eax, ebx
shl eax, 2
sub dword [ebp + 0x14], eax
pop ebx
je 0x4d2358
add dword [ebp + 8], eax
add dword [ebp + 0xc], eax
add dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
jbe 0x4d2358
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
sub ecx, eax
sub esi, eax
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov byte [eax + esi], dl
inc eax
dec edi
jne 0x4d234c
pop edi
pop esi
pop ebp
ret

Function at 0x4d235c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push ebx
push esi
mov esi, dword [ecx + 0x64]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x1074]
mov ecx, dword [esi]
xor ecx, dword [edx]
push edi
lea edi, [esi + 8]
mov dword [ebp - 4], 8
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
mov ebx, ecx
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, cl
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi - 4]
xor dword [ebp + 8], edx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 8]
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, dword [ebp + 8]
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, byte [ebp + 8]
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi]
add edi, 8
xor ecx, edx
dec dword [ebp - 4]
jne 0x4d2383
mov edx, dword [esi + 0x44]
xor edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
leave
ret 8
Function at 0x4d240e
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x48
mov esi, ecx
xor edi, edi
push 0x5694e0
push dword [esi + 0x64]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00518200
push 0x1000
push 0x569528
push dword [esi + 0x1074]
call fcn.00518200
add esp, 0x18
push 4
xor ecx, ecx
pop ebx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
shl ecx, 8
movzx eax, byte [edx + eax]
or ecx, eax
inc dword [ebp - 4]
dec ebx
jne 0x4d2450
mov eax, dword [esi + 0x64]
add eax, edi
xor dword [eax], ecx
add edi, 4
cmp edi, 0x48
jb 0x4d244b
push dword [esi + 0x64]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004d235c
xor ecx, ecx
mov eax, dword [esi + 0x64]
lea edi, [ecx + 8]
lea edx, [edi + eax]
add ecx, eax
push edx
push ecx
mov ecx, esi
call fcn.004d235c
mov ecx, edi
cmp ecx, 0x40
jb 0x4d2489
mov eax, dword [esi + 0x64]
push dword [esi + 0x1074]
add eax, 0x40
push eax
mov ecx, esi
call fcn.004d235c
xor ecx, ecx
mov eax, dword [esi + 0x1074]
lea edi, [ecx + 8]
lea edx, [edi + eax]
add ecx, eax
push edx
push ecx
mov ecx, esi
call fcn.004d235c
mov ecx, edi
cmp ecx, 0xff8
jb 0x4d24ba
lea ecx, [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test al, al
jne 0x4d2508
push 0x44
xor edi, edi
pop ebx
mov eax, dword [esi + 0x64]
lea ecx, [ebx + eax]
push ecx
add eax, edi
push eax
call fcn.00470d00
add edi, 4
pop ecx
sub ebx, 4
pop ecx
cmp edi, 0x24
jb 0x4d24ec
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4d2558
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
lea ecx, [ebp - 4]
call fcn.004d250f
mov ecx, eax
call fcn.004d250f
mov eax, dword [esi + 0x1070]
mov esi, dword [esi + 0x60]
mov ecx, dword [ebp - 8]
xor ecx, dword [esi]
lea edi, [esi + 8]
mov dword [ebp - 4], 8
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
mov ebx, ecx
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, cl
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi - 4]
xor dword [ebp + 8], edx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 8]
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, dword [ebp + 8]
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, byte [ebp + 8]
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi]
add edi, 8
xor ecx, edx
dec dword [ebp - 4]
jne 0x4d2598
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor eax, dword [esi + 0x44]
push ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], edx
call fcn.004d252b
mov ecx, eax
call fcn.004d252b
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4d415d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4d4278
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4d4278
mov edi, dword [ebp + 0xc]
xor edx, edx
push 3
lea eax, [edi + 2]
pop ebx
div ebx
shl eax, 2
inc eax
cmp dword [ecx], eax
jae 0x4d4198
mov dword [ecx], eax
push 2
pop eax
jmp 0x4d427b
mov ecx, dword [ebp + 0x10]
push 3
test ecx, ecx
je 0x4d4192
xor edx, edx
mov eax, edi
pop ebx
div ebx
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x4d4219
dec eax
push 3
pop edi
div edi
mov edi, eax
inc edi
mov edx, edi
imul edx, edx, 3
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
mov al, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
and eax, 0xf
shr ebx, 6
mov al, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
dec edi
jne 0x4d41bf
mov edi, dword [ebp + 0xc]
cmp edx, edi
jae 0x4d4269
movzx eax, byte [esi]
inc edx
cmp edx, edi
jae 0x4d422b
movzx esi, byte [esi + 1]
jmp 0x4d422d
xor esi, esi
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
mov byte [ecx], bl
and eax, 3
shl eax, 4
mov ebx, esi
shr ebx, 4
mov al, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, edi
jae 0x4d4260
and esi, 0xf
mov al, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
jmp 0x4d4262
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x14]
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
jmp 0x4d427b
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d6e3e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4d6f56
cmp dword [ebp + 0x10], 0
je 0x4d6f56
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4d6f56
mov esi, dword [ebp + 0xc]
push 3
xor edx, edx
lea eax, [esi + 2]
pop ebx
div ebx
lea eax, [eax*4 + 1]
cmp dword [ecx], eax
jae 0x4d6e84
push 2
pop eax
jmp 0x4d6f59
mov eax, esi
xor edx, edx
push 3
pop esi
div esi
mov ecx, dword [ebp + 0x10]
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x4d6efd
dec eax
push 3
pop ebx
div ebx
inc eax
mov edx, eax
mov dword [ebp + 8], eax
imul edx, edx, 3
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + esi]
mov byte [ecx], al
movzx eax, byte [edi]
movzx ebx, byte [edi + 1]
and eax, 3
shl eax, 4
add eax, esi
shr ebx, 4
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
movzx ebx, byte [edi + 2]
movzx eax, byte [edi + 1]
and eax, 0xf
shr ebx, 6
add ebx, esi
mov al, byte [ebx + eax*4]
inc ecx
mov byte [ecx], al
movzx eax, byte [edi + 2]
and eax, 0x3f
mov al, byte [eax + esi]
inc ecx
mov byte [ecx], al
inc ecx
add edi, 3
dec dword [ebp + 8]
jne 0x4d6eae
cmp edx, dword [ebp + 0xc]
jae 0x4d6f47
movzx eax, byte [edi]
inc edx
cmp edx, dword [ebp + 0xc]
jae 0x4d6f11
movzx edi, byte [edi + 1]
jmp 0x4d6f13
xor edi, edi
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + esi]
mov byte [ecx], bl
and eax, 3
shl eax, 4
mov ebx, edi
shr ebx, 4
add eax, esi
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, dword [ebp + 0xc]
jae 0x4d6f3e
and edi, 0xf
mov al, byte [esi + edi*4]
jmp 0x4d6f40
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x14]
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
jmp 0x4d6f59
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4e0d6e
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, edx
mov eax, edx
xor eax, dword [esp + 0xc]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x4e0da5
push esi
push edi
mov esi, dword [esp + 0xc]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x4e0d84
pop edi
pop esi
ret

Function at 0x4e75f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x54eb23
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5a1574]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0050451b
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4e7641
mov eax, dword [esi + 0x1c]
push eax
call fcn.00514e7a
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4e8800
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x4e881b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x4e8b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54f003
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5a1574]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov word [eax + 4], si
mov dword [eax + 0x34], edx
xor edx, edx
mov dword [eax + 0x30], ecx
mov word [eax + 0x20], dx
mov dword [eax + 0x50], 0xf
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4e8dc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x54f0bb
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5a1574]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a1574]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2a8]
mov ebx, dword [esp + 0x2a0]
mov esi, dword [esp + 0x2ac]
mov ebp, dword [esp + 0x2b0]
push 0xffffffffffffffff
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2a8]
push edi
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.0040d1b7
mov eax, dword [esp + 0x30]
mov dword [esp + 0x294], edi
cmp eax, edi
je 0x4e8ed3
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4e8e6e
call fcn.005168b1
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x4e8e7d
lea ecx, [esp + 0x20]
cmp word [ecx + edi*2], 0x5c
je 0x4e8ecc
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4e8e94
call fcn.005168b1
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x4e8ea3
lea ecx, [esp + 0x20]
cmp word [ecx + edi*2], 0x2f
je 0x4e8ecc
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4e8eb6
call fcn.005168b1
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4e8ec5
lea eax, [esp + 0x20]
cmp word [eax + edi*2], 0x3a
jne 0x4e8ed3
mov edx, 0x56bfc4
jmp 0x4e8ed8
mov edx, 0x56bfbc
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e8ee0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.004e7410
mov eax, dword [esp + 0x20]
mov edi, 8
cmp dword [esp + 0x34], edi
jae 0x4e8f0d
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4e8f6b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 0
call edi
cmp eax, 2
je 0x4e8f40
call edi
cmp eax, 0x12
je 0x4e8f40
call edi
mov esi, eax
jmp 0x4e8f42
xor esi, esi
call fcn.00503650
cmp dword [esp + 0x34], 8
mov edi, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
jb 0x4e8f64
mov edx, dword [esp + 0x20]
push edx
call fcn.00514e7a
add esp, 4
mov eax, edi
jmp 0x4e8ff1
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e8f72
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0040f2ae
mov eax, dword [esp + 0x38]
test eax, 0x400
je 0x4e8faa
mov dword [esi], 0
mov dword [ebp], 0
jmp 0x4e8fca
test al, 0x10
je 0x4e8fbd
mov dword [esi], 3
mov dword [ebp], 3
jmp 0x4e8fca
mov dword [esi], 2
mov dword [ebp], 2
mov esi, dword [esp + 0x14]
mov dword [esi], 0
call fcn.00503650
mov dword [esi + 4], eax
cmp dword [esp + 0x34], edi
jb 0x4e8fef
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00514e7a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.00516d58
add esp, 0x284
ret