joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3750
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502723
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 0xc], 0
je 0x4c37d3
lea esi, [ebp - 0x10]
call fcn.00458f00
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x14]
push eax
push ecx
push str._s_s
mov edi, esi
call fcn.00458e60
mov edx, dword [ebp - 0x10]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c37e9
mov dword [ebp - 4], eax
mov ecx, esi
call fcn.00458f20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4c3880
push edi
call fcn.004e0918
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push ebx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c3877
cmp dword [ebp - 0x14], edi
jne 0x4c3877
push 0x14
call fcn.00447180
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4c3867
mov ecx, dword [ebp - 0x14]
mov dword [eax], vtable.CImageData.0
mov dword [eax + 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp + 0xb], 1
jmp 0x4c3880
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp + 0xb], 1
jmp 0x4c3880
push esi
call fcn.004e0a60
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00458f20
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c3a50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fff92
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c3b6e
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
push 0x527054
push 0x17
push 0
push 0x515820
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c3b58
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c3b58
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push 0
push eax
call edx
lea esi, [ebp - 0x2c]
call fcn.00462030
mov byte [ebp - 4], 3
mov edi, dword [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx]
lea ecx, [ebp - 0x14]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0xe8]
push edx
call ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [ebp - 0x14], 0
jne 0x4c3b1e
jmp 0x4c3b58
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c3b43
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c3b6e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c3e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5026f0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
movzx eax, word [eax + 0x10]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4c3fcf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x4c3fcf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x4c3fcf
mov ecx, dword [ebp + 8]
lea edi, [esi + 0x14]
cmp ecx, ebx
je 0x4c3fcf
cmp dword [eax], 0x2e66622e
jne 0x4c3fcf
mov edx, 0x10000
cmp dword [eax + 0x3c], edx
jne 0x4c3fcf
cmp dword [eax + 0x40], edx
jne 0x4c3fcf
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x20], eax
call fcn.004c4760
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
push ecx
push eax
mov edx, edi
call fcn.004c48b0
test al, al
je 0x4c3fb5
mov ecx, dword [esi + 0xc]
cmp dword [ecx - 0xc], ebx
je 0x4c3f57
lea edx, [esi + 0x6c]
push edx
push ecx
mov edx, edi
call fcn.004c48b0
test al, al
je 0x4c3fb5
mov ecx, dword [esi + 8]
cmp dword [ecx - 0xc], ebx
je 0x4c3f6f
lea eax, [esi + 0x70]
push eax
push ecx
mov edx, edi
call fcn.004c48b0
test al, al
je 0x4c3fb5
add esi, 0x60
cmp esi, ebx
je 0x4c3fb5
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.004c3b90
test al, al
je 0x4c3fb8
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
push edi
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
push edi
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c4670
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x14]
xor esi, esi
cmp eax, esi
je 0x4c468f
push eax
call fcn.004e0f21
add esp, 4
mov dword [edi + 0x14], esi
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4c46c3
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004e0918
mov edx, dword [ebp - 8]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
mov esi, eax
push esi
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c4731
cmp dword [ebp - 4], ebx
jne 0x4c4731
cmp dword [esi], 0x2e66622e
jne 0x4c4731
mov eax, 0x10000
cmp dword [esi + 0x3c], eax
jne 0x4c4731
cmp dword [esi + 0x40], eax
jne 0x4c4731
cmp dword [esi + 0x64], 0
je 0x4c4731
mov dword [edi + 0x14], esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], esi
mov dword [edi + 0x20], esi
call fcn.004c4760
mov bl, 1
jmp 0x4c4734
mov bl, byte [ebp + 0xb]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x4c474b
push esi
call fcn.004e0a60
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c5e90
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0xc], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x10], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0xc]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
jb 0x4c5eb0
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0xc]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x4c69a8
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0xc], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x10], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, ebx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, ah
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, ecx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0xc]
and edx, 0xff
mov edx, dword [ebp + edx*8]
movzx ecx, ch
xor edx, dword [ebp + ecx*8 + 3]
mov ecx, esi
shr ebx, 0x10
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
shr eax, 0x18
xor edx, dword [ebp + eax*8 + 1]
mov eax, dword [esp + 4]
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
jb 0x4c69c8
mov esi, eax
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, dh
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, ebx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, ah
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, ecx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, bh
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, eax
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 0xc]
and edx, 0xff
movzx edx, byte [ebp + edx + 0x800]
movzx ecx, ch
movzx ecx, byte [ebp + ecx + 0x800]
shl ecx, 8
xor edx, ecx
mov ecx, esi
shr ebx, 0x10
and ebx, 0xff
movzx ebx, byte [ebp + ebx + 0x800]
shl ebx, 0x10
xor edx, ebx
mov ebx, dword [esp + 8]
shr eax, 0x18
movzx eax, byte [ebp + eax + 0x800]
shl eax, 0x18
xor edx, eax
mov eax, dword [esp + 4]
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x4cb880
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004e5180
mov eax, dword [0x54c2c0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4cb8e5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4cb8e5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004e11be
add eax, 0x40
push eax
call fcn.004e63f0
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e0a00
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004e62c8
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4cb974
call fcn.004cb7a0
test eax, eax
je 0x4cb974
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e0a00
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e0a00
add esp, 0x108
ret
Function at 0x4e078a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x552c54], 0
push esi
push edi
jne 0x4e0700
call fcn.004e066c
test eax, eax
je 0x4e0745
mov eax, dword [0x552c54]
cmp eax, 1
jne 0x4e0721
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4e0745
jmp 0x4e0787
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4e0787
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4e0749
xor eax, eax
jmp 0x4e0787
mov eax, dword [esi]
push dword [0x552c54]
call edi
mov edi, eax
test edi, edi
je 0x4e076b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4e0787
lea edi, [esi + 0xff0]
push esi
push dword [0x552c54]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4e0771
mov eax, esi
pop edi
pop esi
ret
jmp 0x4e06ec

Function at 0x4e0a00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54c2c0]
jne 0x4e0a0a
repz ret
jmp fcn.004e66cb
Function at 0x4f3c2e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54c2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004e98c6
and dword [ebp - 0x14], 0
cmp dword [0x553a6c], 0
mov dword [ebp - 0x18], eax
jne 0x4f3ce1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4f3d89
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5157cc
push ebx
call edi
test eax, eax
je 0x4f3d89
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x553a6c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x553a70], eax
call edi
push eax
call esi
push 0x51578c
push ebx
mov dword [0x553a74], eax
call edi
push eax
call esi
mov dword [0x553a7c], eax
test eax, eax
je 0x4f3ce1
push 0x515774
push ebx
call edi
push eax
call esi
mov dword [0x553a78], eax
mov eax, dword [0x553a78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4f3d3a
cmp dword [0x553a7c], ecx
je 0x4f3d3a
push eax
call esi
push dword [0x553a7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4f3d3a
test ebx, ebx
je 0x4f3d3a
call edi
test eax, eax
je 0x4f3d31
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4f3d31
test byte [ebp - 8], 1
jne 0x4f3d3a
or dword [ebp + 0x10], 0x200000
jmp 0x4f3d6d
mov eax, dword [0x553a70]
cmp eax, dword [ebp - 0x18]
je 0x4f3d6d
push eax
call esi
test eax, eax
je 0x4f3d6d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4f3d6d
mov eax, dword [0x553a74]
cmp eax, dword [ebp - 0x18]
je 0x4f3d6d
push eax
call esi
test eax, eax
je 0x4f3d6d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x553a6c]
call esi
test eax, eax
je 0x4f3d89
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4f3d8b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e0a00
leave
ret
Function at 0x401040
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, ecx
mov edi, edx
mov edx, dword [ebp + 0xc]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp edx, 3
jb 0x401101
mov ecx, dword [ebp + 8]
lea edx, [eax + 2]
mov eax, 1
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, 2
sub eax, dword [ebp - 8]
lea ebx, [ecx + 2]
mov dword [ebp - 0x10], eax
add eax, edx
cmp eax, edi
ja 0x4011ad
movzx ecx, byte [ebx - 2]
add esi, 4
movzx eax, byte [ebx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx]
shl ecx, 8
add ebx, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 2], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 4]
mov byte [edx + 1], al
add ecx, 3
mov eax, dword [ebp - 0xc]
add edx, 4
add eax, ebx
mov dword [ebp - 4], ecx
cmp eax, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
jbe 0x401081
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 2]
lea ebx, [esi + 4]
cmp eax, edx
ja 0x40116c
cmp ebx, edi
ja 0x40116c
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
pop edi
movzx ecx, byte [ecx + edx]
movzx eax, byte [eax + edx + 1]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
shr ecx, 6
and ecx, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 1], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 2], al
mov byte [esi + edx + 3], 0x3d
mov esi, ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 1]
cmp eax, edx
ja 0x4011ad
cmp ebx, edi
ja 0x4011ad
mov edx, dword [ebp + 8]
movzx ecx, byte [ecx + edx]
mov edx, dword [ebp - 8]
shl ecx, 0x10
mov eax, ecx
shr ecx, 0xc
shr eax, 0x12
and ecx, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 1], al
mov word [esi + edx + 2], 0x3d3d
mov esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4011c0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edx
xor esi, esi
mov dword [ebp - 4], eax
xor ebx, ebx
mov dword [ebp - 8], ecx
test edi, edi
je 0x40131c
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp esi, edi
jae 0x401205
nop dword [eax]
movzx eax, byte [esi + edx]
movzx ecx, byte [eax + 0x4452e0]
cmp ecx, 0x40
jbe 0x401205
inc esi
cmp esi, edi
jb 0x4011f0
cmp byte [esi + edx], 0x3d
je 0x401316
mov eax, esi
inc esi
cmp eax, edi
jae 0x401316
lea eax, [ecx*4]
mov dword [ebp + 0xc], eax
cmp esi, edi
jae 0x401245
nop dword [eax + eax]
movzx eax, byte [esi + edx]
movzx ecx, byte [eax + 0x4452e0]
cmp ecx, 0x40
jbe 0x401245
inc esi
cmp esi, edi
jb 0x401230
cmp byte [esi + edx], 0x3d
je 0x401316
mov eax, esi
inc esi
cmp eax, edi
jae 0x401316
cmp ebx, dword [ebp - 4]
jae 0x401273
mov edx, dword [ebp - 8]
mov eax, ecx
shr eax, 4
and al, 3
or al, byte [ebp + 0xc]
mov byte [ebx + edx], al
inc ebx
mov edx, dword [ebp + 8]
cmp esi, edi
jae 0x401316
mov eax, ecx
shl eax, 4
mov dword [ebp - 0xc], eax
lea eax, [esi + edx]
mov dl, byte [eax]
mov dword [ebp + 0xc], eax
nop dword [eax + eax]
cmp dl, 0x3d
je 0x4012a4
movzx eax, dl
movzx ecx, byte [eax + 0x4452e0]
cmp ecx, 0x40
ja 0x401290
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x3d
je 0x401316
inc esi
cmp ebx, dword [ebp - 4]
jae 0x4012c3
mov edx, dword [ebp - 8]
mov eax, ecx
shr eax, 2
and al, 0xf
or al, byte [ebp - 0xc]
mov byte [ebx + edx], al
inc ebx
cmp esi, edi
jae 0x401316
mov eax, ecx
shl eax, 6
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
add eax, esi
mov dword [ebp + 0xc], eax
mov dl, byte [eax]
nop dword [eax]
cmp dl, 0x3d
je 0x4012f4
movzx eax, dl
movzx ecx, byte [eax + 0x4452e0]
cmp ecx, 0x40
ja 0x4012e0
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x3d
je 0x401316
inc esi
cmp ebx, dword [ebp - 4]
jae 0x40130e
mov eax, dword [ebp - 0xc]
or al, cl
mov ecx, dword [ebp - 8]
mov byte [ebx + ecx], al
inc ebx
cmp esi, edi
jb 0x4011e0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ebx, eax
mov eax, ebx
jae 0x401326
mov byte [ebx + ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret