joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411f20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d6c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x55d184]
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
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x2c], 0
push str.SOFTWAREClassesCLSID_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040b4a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push 0xf013f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x411fd3
push dword [ebp - 0x2c]
mov ecx, edi
call fcn.004116d0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x411fd3
push eax
call esi
push str.CLSID_
lea ecx, [ebp - 0x28]
call fcn.0040b4a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x412016
push dword [ebp - 0x30]
mov ecx, edi
call fcn.004116d0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x412016
push eax
call esi
push str.TypeLib_
lea ecx, [ebp - 0x28]
call fcn.0040b4a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x412059
push dword [ebp - 0x34]
mov ecx, edi
call fcn.00411810
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x412059
push eax
call esi
push str.SOFTWAREClassesDirectory_background_shellexContextMenuHandlers_
lea ecx, [ebp - 0x28]
call fcn.0040b4a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x38]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x4120af
push str.HkWallPaperShell
lea ecx, [ebp - 0x28]
call fcn.0040b4a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x38]
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4120e5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4120db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412101
push edx
push ecx
call fcn.0049bb5c
add esp, 8
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.0049be04
mov esp, ebp
pop ebp
ret
call fcn.004cf6b9
int3
Function at 0x414620
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x525840
mov dword [ebp - 0xa38], eax
call fcn.00407300
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004cbbe0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x414861
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov esi, eax
test esi, esi
je 0x414861
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049be25
mov ebx, eax
add esp, 4
mov dword [ebp - 0xa34], ebx
test ebx, ebx
je 0x414861
lea ecx, [esi*2 + 2]
push ecx
push 0
push ebx
call fcn.004cbbe0
add esp, 0xc
push ebx
push esi
call edi
test eax, eax
je 0x414858
mov eax, dword [0x526e50]
mov dword [ebp - 0xc], eax
mov ax, word [0x526e54]
push 0x208
mov word [ebp - 8], ax
call fcn.0049be25
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x414852
push 0x208
push 0
push ebx
call fcn.004cbbe0
mov eax, dword [ebp - 0xa34]
add esp, 0xc
mov edi, eax
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push ebx
push eax
call esi
test eax, eax
jne 0x41477e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x414822
push ebx
call fcn.0049be2e
push 2
call fcn.0049be25
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x414822
xor eax, eax
push 1
mov word [ebx], ax
lea eax, [ebp - 0xc]
push ebx
push eax
call esi
test eax, eax
je 0x414822
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x414783
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push ebx
push eax
call fcn.004dbb27
add esp, 0xc
test eax, eax
je 0x4147bf
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x4147a7
movzx eax, word [edi]
test ax, ax
je 0x414822
jmp 0x414725
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.004cbbe0
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x52607c
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.00414b70
add esp, 0x20
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.0040ba50
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.0040ccb0
lea ecx, [ebp - 0xa30]
call fcn.00408700
push dword [ebp - 0xa34]
call fcn.0049be2e
add esp, 4
test ebx, ebx
je 0x41483d
push ebx
call fcn.0049be2e
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049be04
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 0xa34]
push ebx
call fcn.0049be2e
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049be04
mov esp, ebp
pop ebp
ret 8
Function at 0x4174d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 1
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x8c], 1
call fcn.004165d0
add esi, 0xfffff6f4
mov ecx, esi
mov dword [esi + 0x998], 1
mov dword [esi + 0x9a4], 1
call fcn.00417d70
mov ecx, dword [esi + 0x924]
test ecx, ecx
je 0x417517
call fcn.004161a0
push 0
push 0
push esi
push 0x417610
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x9b0], eax
pop esi
ret

Function at 0x4179e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e72a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x928]
test ecx, ecx
je 0x417b04
call fcn.004071b0
mov ecx, dword [esi + 0x928]
mov edi, dword [esi + 0x998]
call fcn.004168c0
test eax, eax
je 0x417b04
cmp edi, 1
je 0x417b04
mov eax, dword [0x55f8c0]
test eax, eax
jne 0x417a7c
push 0x11c
call fcn.0049bb2c
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x417a6e
mov ecx, eax
call fcn.00414ba0
jmp 0x417a70
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x55f8c0], eax
mov ecx, eax
call fcn.0041d775
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
call fcn.0040b4a0
cmp dword [esi + 0x994], 8
lea ecx, [esi + 0x980]
mov dword [ebp - 4], 1
jb 0x417abc
mov ecx, dword [esi + 0x980]
push dword [esi + 0x990]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b840
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417af5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042d269
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00408700
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 4]
call edi
mov eax, dword [esi + 0x9b0]
test eax, eax
je 0x417b33
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x9b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [esi + 4]
call edi
push 1
mov ecx, esi
call fcn.004618f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049be04
mov esp, ebp
pop ebp
ret

Function at 0x417b60
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
add ecx, 0xfffff6ec
jmp fcn.004179e0
Function at 0x417f20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51dc48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x527e6c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040b4a0
mov ecx, dword [esi + 0x9a0]
mov dword [ebp - 4], 0
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x417fa3
movups xmm0, xmmword [ebp - 0x28]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ecx + 4], 0x18
mov word [ebp - 0x28], ax
jmp 0x417fb0
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.0040f030
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x417fea
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417fe0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418031
push edx
push ecx
call fcn.0049bb5c
add esp, 8
mov eax, dword [esi + 0x9a4]
cmp eax, 1
je 0x418017
cmp eax, 2
jne 0x418003
mov ecx, esi
call fcn.004179e0
jmp 0x418017
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, esi
call fcn.004618f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049be04
mov esp, ebp
pop ebp
ret
call fcn.004cf6b9
int3
Function at 0x419600
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [0x560030]
call fcn.0043e280
add esp, 4
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
mov edi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [0x55d050]
mov ecx, dword [0x55d054]
mov dword [0x55fde8], 0
cmp esi, ecx
jae 0x41967a
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x419673
mov eax, dword [eax + 0x1c]
push 1
call eax
mov ecx, dword [0x55d054]
add esi, 4
cmp esi, ecx
jb 0x419660
call fcn.004157d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc0]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004cbbe0
push 0x525fe0
lea eax, [ebp - 0x20c]
push str._s__
push eax
call fcn.0040c370
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x320
push 0x258
push 0
push 0
push 0x100
push 0x10ce0000
push eax
push 0
call fcn.004157d0
mov ecx, eax
call fcn.00461920
call fcn.004157d0
mov ecx, eax
call fcn.004617c0
push 5
call fcn.004157d0
mov ecx, eax
call fcn.00421cf0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0043bbc0
call fcn.0043e990
mov esi, dword [0x55fde8]
test esi, esi
je 0x419743
cmp dword [esi], 0
je 0x419743
nop
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x41972d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x419720
mov esi, dword [0x55d050]
mov ecx, dword [0x55d054]
cmp esi, ecx
jae 0x41976d
mov eax, dword [esi]
test eax, eax
je 0x419766
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x55d054]
add esi, 4
cmp esi, ecx
jb 0x419753
mov ecx, 0x55fdbc
call fcn.0041ac40
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0049be04
mov esp, ebp
pop ebp
ret
Function at 0x41a140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e966
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41a1ec
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x41a1ec
call fcn.00419410
mov edi, eax
jmp 0x41a30b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41a20f
call fcn.00419410
jmp 0x41a2fe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41a22d
call fcn.00419410
jmp 0x41a2fe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x41a24e
mov edi, 0x8007000e
jmp 0x41a300
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x41a344
jb 0x41a26c
cmp eax, 0xffffffff
ja 0x41a344
cmp eax, 0x400
jbe 0x41a281
push eax
lea ecx, [ebp - 0x418]
call fcn.00419290
jmp 0x41a2a7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x41a2a7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41a2be
mov edi, 0x8007000e
jmp 0x41a300
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41a2de
call fcn.00419410
jmp 0x41a2fe
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00419fa0
mov edi, eax
test esi, esi
je 0x41a30b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41a324
lea ecx, [ebp - 0x418]
call fcn.00419820
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049be04
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00415350
int3
Function at 0x41bcfc
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor eax, eax
xor ecx, ecx
xor esi, esi
push edi
cmp dword [ebp + 0xc], eax
jle 0x41bdee
mov edi, dword [ebp + 8]
mov dl, byte [esi + edi]
movzx ebx, dl
cmp dl, 0x3d
jne 0x41bd29
inc ecx
cmp ecx, 2
jg 0x41bdf5
cmp dl, 0x7f
ja 0x41bdf5
mov dl, byte [ebx + 0x529928]
cmp dl, 0x7f
je 0x41bdf5
cmp dl, 0x40
jae 0x41bd4e
test ecx, ecx
jne 0x41bdf5
inc eax
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x41bd14
test eax, eax
je 0x41bdee
mov edi, dword [ebp + 0x14]
imul eax, eax, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x41bd76
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x41bdf7
mov edx, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x41bde9
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x529928]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x41bdda
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x41bdc5
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x41bdd2
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x41bdda
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x41bd8a
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0xffffffffffffffee
pop eax
jmp 0x41bdf0
Function at 0x41bdfa
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x41be0e
xor eax, eax
jmp 0x41bf44
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x41be37
dec edx
sub edx, 1
jne 0x41be39
add eax, 2
jmp 0x41be39
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x41be4c
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x41bf43
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x41bedc
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
push 3
mov al, byte [eax + 0x5298e8]
mov byte [edi], al
pop eax
and ecx, eax
mov eax, edx
shr eax, 4
add ecx, ecx
and edx, 0xf
mov al, byte [eax + ecx*8 + 0x5298e8]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
mov al, byte [eax + edx*4 + 0x5298e8]
mov byte [edi + 2], al
mov al, byte [esi + 0x5298e8]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x41be73
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x41bedf
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x41bf36
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x41bef4
movzx ecx, byte [eax + 1]
jmp 0x41bef6
xor ecx, ecx
mov eax, edx
shr eax, 2
push 3
mov al, byte [eax + 0x5298e8]
mov byte [edi], al
pop eax
and edx, eax
mov eax, ecx
add edx, edx
shr eax, 4
mov al, byte [eax + edx*8 + 0x5298e8]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x41bf2a
and ecx, 0xf
mov al, byte [ecx*4 + 0x5298e8]
jmp 0x41bf2c
mov al, 0x3d
mov byte [edi + 2], al
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c31c
Capabilities:
Get mac address on windows

Disassembly:
push 0x58
mov eax, 0x51eb6e
call fcn.0049c822
mov esi, dword [ebp + 8]
mov dword [ebp - 0x58], esi
push 0x288
mov dword [ebp - 0x54], 4
call fcn.004cf70e
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x41c357
push 0x525dfc
mov ecx, esi
call fcn.0040c8b0
jmp 0x41c4ac
lea eax, [ebp - 0x54]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x41c37c
push ebx
call fcn.004cf709
push dword [ebp - 0x54]
call fcn.004cf70e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41c346
xor eax, eax
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x38], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x41c484
lea edi, [ebp - 0x20]
xor ecx, ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x64], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
and dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 1
mov edi, ebx
test ebx, ebx
je 0x41c467
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x20]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.0040b300
lea eax, [edi + 0x10c]
push eax
call fcn.004e47a5
push 0x5299c4
push eax
call fcn.004cc2d0
add esp, 0x2c
test eax, eax
jne 0x41c4b6
cmp dword [edi + 0x1a0], 0x47
je 0x41c4b6
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040c8b0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.0041c09f
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040aec0
mov edi, dword [edi]
test edi, edi
jne 0x41c3c2
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
sub eax, ecx
push 0x18
cdq
pop edi
idiv edi
test eax, eax
je 0x41c47c
push ecx
lea ecx, [ebp - 0x38]
call fcn.0041c1e9
lea ecx, [ebp - 0x64]
call fcn.0041c8e4
push ebx
call fcn.004cf709
xor eax, eax
pop ecx
mov byte [ebp - 0x58], al
mov ecx, esi
push dword [ebp - 0x58]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0041c7f9
lea ecx, [ebp - 0x38]
call fcn.0040aec0
mov eax, esi
call fcn.0049c7dd
ret 4
lea eax, [ebp - 0x20]
push eax
call fcn.004dc090
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040b210
jmp 0x41c47c
Function at 0x41c4e5
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [ebp - 0x69c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x284]
mov edi, 0x208
push edi
push ebx
push eax
call fcn.004cbbe0
add esp, 0xc
lea eax, [ebp - 0x284]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5299d4
call fcn.004dc031
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004dc04c
push edi
lea eax, [ebp - 0x694]
push ebx
push eax
call fcn.004cbbe0
push edi
lea eax, [ebp - 0x48c]
push ebx
push eax
call fcn.004cbbe0
push 0x64
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x698], ebx
push ebx
push eax
mov dword [ebp - 0x69c], ebx
mov dword [ebp - 0x6a0], ebx
call fcn.004cbbe0
add esp, 0x34
lea eax, [ebp - 0x48c]
mov ecx, 0x104
push ecx
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x698]
push eax
push ecx
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41c5df
push dword [ebp - 0x698]
lea eax, [ebp - 0x7c]
push str._08X
push eax
call fcn.0040b300
add esp, 0xc
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0040c8b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049be04
leave
ret 4
Function at 0x41d172
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x51ed25
call fcn.0049c7ee
xor esi, esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0042b345
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], esi
call fcn.0042b379
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x41d1ab
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d21b
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x525e00
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41d1e8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41d21b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x38]
call fcn.0042b358
call fcn.0049c7c8
ret 8