joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1b4
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 4]
push edi
mov edi, dword [eax + 0x18]
mov eax, dword [edx]
xor ebx, ebx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x38], edi
jle 0x4af260
add edx, 4
lea esp, [esp]
cmp dword [edx], edi
je 0x4af31c
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4af250
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], edi
cmp edi, eax
jae 0x4af419
mov ebx, dword [ebp + 0x18]
jmp 0x4af290
fldz
mov edx, 0x100
cmp word [edi + 0x10], dx
jne 0x4af406
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
not eax
and eax, dword [edi + 0x20]
not ecx
and ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, ebx
or eax, ecx
jne 0x4af406
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x160]
mov edx, dword [ecx + 0x164]
and eax, dword [esp + 0x10]
and edx, dword [esp + 0x14]
or eax, edx
je 0x4af406
mov esi, dword [ecx + 0x1c]
fld st(0)
mov ecx, dword [ecx + 0x14]
fst qword [esp + 0x30]
lea eax, [ecx + ecx*4]
fxch st(1)
lea eax, [esi + eax*8]
fst qword [esp + 0x20]
mov dword [esp + 0x2c], eax
cmp esi, eax
jae 0x4af3be
mov ecx, 0x200
cmp word [esi + 0x10], cx
jne 0x4af335
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edi, dword [esi + 0xc]
push ebx
push edx
push eax
jmp 0x4af36f
mov eax, 1
xor edx, edx
call fcn.00510120
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x4af268
mov ecx, dword [esp + 0x38]
cmp dword [esi + 8], ecx
jne 0x4af3b3
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 4]
push ebx
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 8]
push ecx
mov dword [esp + 0x6c], eax
mov byte [esp + 0x78], 0x43
mov dword [esp + 0x84], esi
mov dword [esp + 0x7c], 1
push edx
lea edi, [esp + 0x6c]
mov eax, dword [ebp + 0x10]
fstp st(1)
lea ecx, [esp + 0x4c]
fstp st(0)
xor edx, edx
call fcn.004a7bc0
fld qword [esp + 0x5c]
fadd qword [esp + 0x3c]
mov ecx, dword [ebp + 0x20]
mov edi, dword [esp + 0x28]
add esp, 0xc
fst qword [esp + 0x30]
fld qword [esp + 0x58]
fadd qword [esp + 0x20]
fst qword [esp + 0x20]
fld qword [ecx + 0x10]
fcomp st(2)
fnstsw ax
test ah, 0x41
jnp 0x4af3c1
mov eax, dword [esp + 0x2c]
add esi, 0x28
cmp esi, eax
jb 0x4af303
mov ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0
je 0x4af3e5
fstp st(1)
sub esp, 8
fstp qword [esp]
call fcn.00485390
fld qword [esp + 0x28]
add esp, 8
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0x30]
fxch st(1)
fld qword [ecx + 0x10]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4af404
fxch st(1)
mov dword [ecx], 0x10000000
fstp qword [ecx + 0x10]
mov dword [ecx + 8], edi
fstp qword [ecx + 0x18]
jmp 0x4af408
fstp st(1)
fstp st(0)
add edi, 0x28
mov dword [esp + 0x1c], edi
cmp edi, dword [esp + 0x3c]
jb 0x4af290
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ce320
Capabilities:
Get thread local storage value

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

Function at 0x4ce560
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x592280]
test eax, eax
je 0x4ce5e8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x4ce5e7
mov ecx, dword [0x592280]
test ecx, ecx
jne 0x4ce586
xor eax, eax
jmp 0x4ce58f
push ecx
call esi
mov ecx, dword [0x592280]
cmp byte [eax + 0x18], 0
je 0x4ce5e7
test ecx, ecx
je 0x4ce5e7
push ecx
call esi
test eax, eax
je 0x4ce5e7
mov eax, dword [0x592280]
test eax, eax
je 0x4ce5ac
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4ce5e7
mov eax, dword [0x592280]
test eax, eax
je 0x4ce5c8
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x57a8f8
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.0050a446
pop esi
pop ecx
ret

Function at 0x4ced10
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x53dd68
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x58c584]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x4ce300
push 0x592278
call fcn.004ce650
mov eax, dword [0x592280]
add esp, 8
test eax, eax
je 0x4ced6a
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.00508708
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.0046a330
int3
Function at 0x4ceda0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x53dd98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c584]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x592280]
test eax, eax
jne 0x4cedd2
xor esi, esi
jmp 0x4ceddb
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 0x4cee07
cmp dword [esi + 0x14], 0
jne 0x4cee49
cmp dword [esi + 0x10], 0
jne 0x4cee50
push 0
call fcn.004ced10
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x4cee35
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4cee35
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 0x4cee90
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4cee7e
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 0x4cee50
cmp dword [esi + 0x14], 0
je 0x4cedf7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4ceeb5
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 0x4ceee6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ceee6
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 0x4ceee6
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 0x4cee9a
jmp 0x4cedf1
Function at 0x4cef80
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x53dde8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58c584]
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 0x4cef00
push 0
push 0
call fcn.00510712
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4cefeb
lea ecx, [esp + 0x10]
call fcn.00508708
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.0046a330
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 0x4cf011
cmp eax, 0xffffffff
je 0x4cf011
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 0x4d0d6b
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 0x4d0dd8
call fcn.004cea40
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 4]
call fcn.004d0869
push ebx
push ebx
push 3
push ebx
push ebx
call fcn.0042412a
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.004d0d36
test al, al
jne 0x4d0dc8
mov ecx, dword [esi]
push ebx
call fcn.004cead0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.0041678a
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 0x4d1628
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 0x4d1645
mov al, 1
jmp 0x4d16fa
call fcn.004cea40
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
push edi
push 3
push edi
push edi
call fcn.0042412a
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.004d0d36
test al, al
jne 0x4d1685
mov ecx, dword [ebx]
push edi
call fcn.004cead0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, ebx
call fcn.0041678a
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.004cfe30
push edi
push dword [edi + 0x18]
jmp 0x4d16cc
lea ecx, [ebp - 8]
call fcn.004260f4
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 8]
call fcn.0045415e
push edi
push dword [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004cfe30
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00447bcd
test al, al
je 0x4d16af
mov ecx, edi
call fcn.00447e26
lea ecx, [esi + 0x74]
call fcn.0041678a
xor eax, eax
cmp dword [ebx], eax
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d23d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.004d2396
pop ecx
pop ecx
test al, al
je 0x4d2445
push 1
push dword [ebp + 0xc]
call fcn.004d2396
pop ecx
pop ecx
test al, al
je 0x4d2445
mov esi, dword [ebp + 0x10]
push 1
push esi
call fcn.004d2396
pop ecx
pop ecx
test al, al
je 0x4d2445
mov edi, dword [ebp + 0x14]
push ebx
shr edi, 2
xor ebx, ebx
test edi, edi
jbe 0x4d2431
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 0x4d2423
mov eax, ebx
shl eax, 2
sub dword [ebp + 0x14], eax
pop ebx
je 0x4d2467
add dword [ebp + 8], eax
add dword [ebp + 0xc], eax
add dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
jbe 0x4d2467
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 0x4d245b
pop edi
pop esi
pop ebp
ret

Function at 0x4d246b
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 0x4d2492
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 0x4d251d
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 0x55a060
push dword [esi + 0x64]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0050bbc0
push 0x1000
push 0x55a0a8
push dword [esi + 0x1074]
call fcn.0050bbc0
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 0x4d255f
mov eax, dword [esi + 0x64]
add eax, edi
xor dword [eax], ecx
add edi, 4
cmp edi, 0x48
jb 0x4d255a
push dword [esi + 0x64]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004d246b
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.004d246b
mov ecx, edi
cmp ecx, 0x40
jb 0x4d2598
mov eax, dword [esi + 0x64]
push dword [esi + 0x1074]
add eax, 0x40
push eax
mov ecx, esi
call fcn.004d246b
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.004d246b
mov ecx, edi
cmp ecx, 0xff8
jb 0x4d25c9
lea ecx, [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test al, al
jne 0x4d2617
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.00470e10
add edi, 4
pop ecx
sub ebx, 4
pop ecx
cmp edi, 0x24
jb 0x4d25fb
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4d2667
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.004d261e
mov ecx, eax
call fcn.004d261e
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 0x4d26a7
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.004d263a
mov ecx, eax
call fcn.004d263a
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4d41d0
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 0x4d42eb
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4d42eb
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 0x4d420b
mov dword [ecx], eax
push 2
pop eax
jmp 0x4d42ee
mov ecx, dword [ebp + 0x10]
push 3
test ecx, ecx
je 0x4d4205
xor edx, edx
mov eax, edi
pop ebx
div ebx
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x4d428c
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 0x4d4232
mov edi, dword [ebp + 0xc]
cmp edx, edi
jae 0x4d42dc
movzx eax, byte [esi]
inc edx
cmp edx, edi
jae 0x4d429e
movzx esi, byte [esi + 1]
jmp 0x4d42a0
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 0x4d42d3
and esi, 0xf
mov al, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
jmp 0x4d42d5
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 0x4d42ee
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d6dea
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 0x4d6f02
cmp dword [ebp + 0x10], 0
je 0x4d6f02
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4d6f02
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 0x4d6e30
push 2
pop eax
jmp 0x4d6f05
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 0x4d6ea9
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 0x4d6e5a
cmp edx, dword [ebp + 0xc]
jae 0x4d6ef3
movzx eax, byte [edi]
inc edx
cmp edx, dword [ebp + 0xc]
jae 0x4d6ebd
movzx edi, byte [edi + 1]
jmp 0x4d6ebf
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 0x4d6eea
and edi, 0xf
mov al, byte [esi + edi*4]
jmp 0x4d6eec
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 0x4d6f05
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4db340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x53eff3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58c584]
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.004f801b
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4db391
mov eax, dword [esi + 0x1c]
push eax
call fcn.005089a3
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 0x4dc6f0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x4dc70b
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 0x4dca00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53f4d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58c584]
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