joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66fc8d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x232]
xor ebx, ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
call fcn.004b2380
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.004e30c0
add esp, 0xc
cmp byte [0x721a28], bl
jne 0x4b263b
xor eax, eax
mov dword [ebp - 0x220], ebx
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00472510
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x238], ebx
call fcn.004addf0
add esp, 4
mov byte [ebp - 0x231], 0
test al, al
je 0x4b2642
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x4b268e
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4b268e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b2684
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2711
push edx
push ecx
call fcn.004cb4db
add esp, 8
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
je 0x4b26b6
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.00463790
add esp, 0x18
jmp 0x4b26c4
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00472510
cmp byte [ebp - 0x232], 0
je 0x4b26f4
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x4b2900
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66fd0b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4b2b10
cmp dword [ebp - 0x248], 0xffffffff
je 0x4b2b10
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x4b2ad9
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.004e30c0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4b2a50
jmp 0x4b29e0
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call fcn.004e70a0
add esp, 8
test eax, eax
jne 0x4b2a2e
cmp edi, ebx
je 0x4b2a0f
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x4b2a2e
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00469750
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b29e0
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x4b2ad9
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4b2ac4
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x4b2ac4
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x4b2ac4
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x4b2acd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x4b2a60
jmp 0x4b2ad3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x4b2b0c
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x4b2b02
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2b32
push ebx
push esi
call fcn.004cb4db
add esp, 8
mov eax, edi
jmp 0x4b2b16
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x4b2d60
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66fd4b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], esi
mov eax, dword fs:[0x2c]
mov ecx, dword [0x72249c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x721a2c]
cmp eax, dword [ecx + 4]
jg 0x4b2e53
cmp dword [0x71877c], 0
jne 0x4b2e2b
lea ecx, [ebp - 0x21d]
call fcn.004b2380
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004e30c0
add esp, 0xc
mov dword [ebp - 0x224], 0x105
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x21c]
mov ecx, 0x71876c
push eax
call fcn.00472510
cmp byte [ebp - 0x21d], 0
mov dword [ebp - 4], 0xffffffff
je 0x4b2e2b
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push 0x71876c
mov ecx, esi
call fcn.00451440
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push 0x721a2c
call fcn.004cb872
add esp, 4
cmp dword [0x721a2c], 0xffffffff
jne 0x4b2db5
push 0x673450
call fcn.004cb72a
push 0x721a2c
call fcn.004cb828
add esp, 8
jmp 0x4b2db5

Function at 0x4b2e90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret

Function at 0x4b2ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop ebp
ret

Function at 0x4b2ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x4b4910
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x4b4931
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x4b4925
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x4b49e8
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x4b4960
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x688600]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x688600]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x4b49d4
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x688600]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x4b49d1
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x688600]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x4b4960
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b4c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x4b4d81
mov eax, dword [ebp + 8]
mov edx, 1
push ebx
mov ebx, dword [ebp + 0x10]
sub edx, eax
dec ecx
mov dword [ebp - 0x10], edx
push edi
lea edi, [eax + 1]
mov dword [ebp - 4], 1
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
inc ecx
mov dword [ebp - 0xc], ecx
movzx eax, byte [edi - 1]
mov ecx, dword [ebp + 0xc]
shr eax, 2
mov al, byte [eax + 0x6885b8]
mov byte [esi + ebx], al
lea eax, [esi + 2]
mov dl, byte [edi - 1]
and dl, 3
shl dl, 4
cmp dword [ebp - 4], ecx
jae 0x4b4d55
movzx ecx, byte [edi]
shr cl, 4
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + 0x6885b8]
mov byte [esi + ebx + 1], cl
lea ecx, [eax + ebx]
mov dh, byte [edi]
inc eax
mov dword [ebp - 8], ecx
and dh, 0xf
mov ecx, dword [ebp - 0x10]
add ecx, edi
shl dh, 2
cmp ecx, dword [ebp + 0xc]
jae 0x4b4d40
mov dl, byte [edi + 1]
mov ebx, dword [ebp - 8]
mov cl, dl
shr cl, 6
add cl, dh
movzx ecx, cl
movzx ecx, byte [ecx + 0x6885b8]
mov byte [ebx], cl
mov ebx, dword [ebp + 0x10]
movzx ecx, dl
and ecx, 0x3f
mov cl, byte [ecx + 0x6885b8]
mov byte [eax + ebx], cl
jmp 0x4b4d6b
movzx ecx, dh
mov edx, dword [ebp - 8]
mov cl, byte [ecx + 0x6885b8]
mov byte [edx], cl
mov cl, 0x3d
mov byte [eax + ebx], cl
jmp 0x4b4d6b
movzx ecx, dl
mov cl, byte [ecx + 0x6885b8]
mov byte [esi + ebx + 1], cl
mov byte [eax + ebx], 0x3d
inc eax
mov byte [eax + ebx], 0x3d
add dword [ebp - 4], 3
lea esi, [eax + 1]
add edi, 3
sub dword [ebp - 0xc], 1
jne 0x4b4cc0
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b9640
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x10]
add eax, 3
shr eax, 2
lea eax, [eax + eax*2]
push eax
call fcn.004cba04
mov ecx, ebx
add esp, 4
mov esi, eax
cmp dword [ecx + 0x14], 0x10
jb 0x4b966c
mov ecx, dword [ecx]
mov ebx, dword [ebx + 0x10]
lea eax, [ebx - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x4b9689
lea esp, [esp]
lea eax, [eax - 1]
dec ebx
cmp byte [eax], 0x3d
je 0x4b9680
push edi
xor edi, edi
test ebx, ebx
je 0x4b9726
mov eax, 1
mov dword [ebp + 8], 2
sub eax, ecx
lea edx, [ecx + 2]
mov dword [ebp - 8], eax
lea eax, [ebx - 1]
shr eax, 2
inc eax
mov dword [ebp - 4], eax
movsx eax, byte [edx - 1]
mov ch, byte [eax + 0x688b48]
movsx eax, byte [edx - 2]
mov cl, byte [eax + 0x688b48]
mov al, ch
sar al, 4
and al, 3
shl cl, 2
or cl, al
mov eax, dword [ebp + 8]
mov byte [edi + esi], cl
inc edi
cmp eax, ebx
jae 0x4b9717
movsx eax, byte [edx]
shl ch, 4
mov cl, byte [eax + 0x688b48]
mov al, cl
sar al, 2
and al, 0xf
or al, ch
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp - 8]
add eax, edx
cmp eax, ebx
jae 0x4b9714
movsx eax, byte [edx + 1]
shl cl, 6
mov al, byte [eax + 0x688b48]
and al, 0x3f
or al, cl
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp + 8]
add eax, 4
add edx, 4
sub dword [ebp - 4], 1
mov dword [ebp + 8], eax
jne 0x4b96b2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b972f
mov dword [eax], edi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4b9752
lea eax, [ebp + 8]
cmp ecx, eax
je 0x4b9752
mov edx, dword [ecx]
mov eax, esi
xor esi, esi
mov dword [ecx], eax
test edx, edx
je 0x4b9752
push edx
call fcn.004cb4e9
add esp, 4
test edi, edi
pop edi
setne bl
test esi, esi
je 0x4b9765
push esi
call fcn.004cb4e9
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9770
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
je 0x4b9966
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b9966
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
push ebx
push esi
push edi
shr edx, 1
lea ecx, [ebp - 0x1c]
push 0
shl edx, 2
push edx
call fcn.004b95a0
mov eax, dword [ebp - 8]
lea ebx, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
cmp eax, 0x10
mov ecx, dword [ebp + 0xc]
cmovae ebx, edi
xor esi, esi
test ecx, ecx
je 0x4b98b9
mov eax, dword [ebp + 8]
mov edx, 1
sub edx, eax
mov dword [ebp - 0x24], 1
dec ecx
mov dword [ebp - 0x2c], edx
lea edi, [eax + 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 0x28], eax
jmp 0x4b9800
movzx eax, byte [edi - 1]
lea ecx, [esi + 2]
shr eax, 2
mov al, byte [eax + 0x688b00]
mov byte [esi + ebx], al
mov dl, byte [edi - 1]
mov eax, dword [ebp + 0xc]
and dl, 3
shl dl, 4
cmp dword [ebp - 0x24], eax
jae 0x4b9889
movzx eax, byte [edi]
shr al, 4
add al, dl
movzx eax, al
movzx eax, byte [eax + 0x688b00]
mov byte [esi + ebx + 1], al
lea eax, [ecx + ebx]
mov dh, byte [edi]
inc ecx
mov dword [ebp - 0x30], eax
and dh, 0xf
mov eax, dword [ebp - 0x2c]
add eax, edi
shl dh, 2
cmp eax, dword [ebp + 0xc]
jae 0x4b986c
mov dl, byte [edi + 1]
movzx eax, dl
and eax, 0x3f
shr dl, 6
add dl, dh
mov al, byte [eax + 0x688b00]
mov byte [ebp - 0x1d], al
jmp 0x4b9872
mov byte [ebp - 0x1d], 0x3d
mov dl, dh
movzx eax, dl
mov edx, dword [ebp - 0x30]
movzx eax, byte [eax + 0x688b00]
mov byte [edx], al
mov al, byte [ebp - 0x1d]
mov byte [ecx + ebx], al
jmp 0x4b989f
movzx eax, dl
mov al, byte [eax + 0x688b00]
mov byte [esi + ebx + 1], al
mov byte [ecx + ebx], 0x3d
inc ecx
mov byte [ecx + ebx], 0x3d
add dword [ebp - 0x24], 3
lea esi, [ecx + 1]
add edi, 3
sub dword [ebp - 0x28], 1
jne 0x4b9800
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
cmp ebx, ecx
je 0x4b9922
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x4b98f6
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x4b98ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9976
mov eax, edx
push ecx
push eax
call fcn.004cb4db
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x14], eax
mov eax, 0xf
mov byte [ebp - 0x1c], 0
mov edi, dword [ebp - 0x1c]
test esi, esi
setne bl
cmp eax, 0x10
jb 0x4b9953
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4b9949
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9976
push ecx
push edi
call fcn.004cb4db
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x4bd7e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66a4a2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call fcn.004e30c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x4bd8a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4bd8af
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4bd8af
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004496a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x4bdde0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
je 0x4bdf66
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4bdf66
lea ecx, [edi + 2]
mov byte [ebp - 1], 0
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, edx
shr esi, 1
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 8], edx
sub edx, eax
shl esi, 2
cmp esi, edx
jae 0x4bde2c
add eax, esi
mov dword [ecx + 4], eax
jmp 0x4bde64
jbe 0x4bde64
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp esi, eax
jbe 0x4bde46
lea eax, [ebp - 1]
push eax
push esi
call fcn.004766e0
mov ecx, dword [ebp + 0x10]
jmp 0x4bde64
sub esi, edx
push esi
push 0
push dword [ebp - 8]
call fcn.004e30c0
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
mov dword [edx + 4], ecx
mov ecx, edx
mov ecx, dword [ecx]
cmp edi, 3
jb 0x4bdefa
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov dword [ebp - 8], edx
jmp 0x4bde80
mov edx, dword [ebp + 8]
sub edi, 3
mov al, byte [edx + 2]
mov bl, byte [edx]
mov bh, byte [edx + 1]
add edx, 3
mov dword [ebp + 8], edx
movzx edx, bl
and bl, 3
shr edx, 2
mov byte [ebp - 1], al
mov eax, ecx
shl bl, 4
movzx esi, bl
mov dl, byte [edx + 0x688ea8]
mov byte [eax], dl
lea eax, [ecx + 3]
movzx edx, bh
and bh, 0xf
shr edx, 4
or esi, edx
shl bh, 2
mov dl, byte [esi + 0x688ea8]
mov byte [ecx + 1], dl
movzx edx, byte [ebp - 1]
shr edx, 6
movzx esi, bh
or esi, edx
mov dl, byte [esi + 0x688ea8]
mov byte [ecx + 2], dl
add ecx, 4
movzx edx, byte [ebp - 1]
and edx, 0x3f
sub dword [ebp - 8], 1
mov dl, byte [edx + 0x688ea8]
mov byte [eax], dl
jne 0x4bde80
mov ebx, dword [ebp + 8]
pop esi
test edi, edi
je 0x4bdf5e
mov dh, byte [ebx]
xor ah, ah
cmp edi, 1
jbe 0x4bdf0b
mov ah, byte [ebx + 1]
mov dl, dh
mov al, ah
shr al, 4
and dh, 3
shl dh, 4
and ah, 0xf
or al, dh
shr dl, 2
mov byte [ebp + 0xb], al
mov ebx, 0x40
shl ah, 2
cmp edi, 1
movzx eax, ah
movzx edx, dl
cmova ebx, eax
mov eax, ecx
mov dl, byte [edx + 0x688ea8]
mov byte [eax], dl
movzx edx, byte [ebp + 0xb]
movzx eax, bl
mov dl, byte [edx + 0x688ea8]
mov al, byte [eax + 0x688ea8]
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bfed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.004e30c0
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.InfoHD
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x4bff5a
xor eax, eax
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi], ax
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0044e920
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x4c3570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.004e30c0
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.InfoHD3_C
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x4c35fa
xor eax, eax
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi], ax
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0044e920
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x4c5170
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x671592
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x718924]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x4c51cc
mov dword [ebx], 0x687d6c
mov dword [ebx + 0x10], 0x687d74
mov dword [ebx + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 0x18]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.004c4f90
lea edx, [ebx + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], esi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004cb4ab
mov esi, eax
add esp, 4
test esi, esi
je 0x4c525f
push 1
mov byte [ebp - 4], 5
call fcn.004c925f
add esp, 4
mov dword [esi + 4], eax
jmp 0x4c5261
xor esi, esi
lea eax, [ebx + 0x18]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov esi, dword [ebp + 0xc]
not ecx
and ecx, 1
mov dword [edi], 0
shl ecx, 2
mov eax, ebx
mov dword [edx], 0
mov edx, ecx
or edx, 2
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
and al, 2
mov dword [esi + 0x38], 0
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
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