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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
je 0x499214
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x499214
cmp dword [ebp + 8], esi
jne 0x499214
push ebx
call fcn.004bc98d
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
push esi
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x499214
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4991f3
mov eax, dword [ebp - 4]
push esi
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push esi
push dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4991e1
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4991df
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x4991e1
xor esi, esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call fcn.004bc996
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x499214
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x49921f
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49ece0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x5cd8f0], ecx
inc eax
cmp eax, 0x100
jb 0x49ece2
cmp eax, 0x800
jae 0x49edb3
nop
mov edx, dword [eax*4 + 0x5cd4f0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x5cd8f0]
mov dword [eax*4 + 0x5cd8f0], edx
inc eax
cmp eax, 0x800
jb 0x49ed90
mov dword [0x5cf8f0], 0x49a0f0
call fcn.0049f1b0
mov ecx, dword [0x5cf8f0]
test eax, eax
mov edx, 0x49a190
cmove ecx, edx
mov dword [0x5cf8f0], ecx
ret
Function at 0x4a0060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x4a0080
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x4a00b2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4a00af
inc esi
cmp esi, edx
jb 0x4a00a0
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x4a01dc
cmp ecx, 3
jbe 0x4a00f2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x4a0130
cmp cl, 0xff
je 0x4a0130
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x4a0094
dec ecx
shl eax, cl
and eax, 7
je 0x4a00ca
movzx ecx, byte [eax + 0x560914]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x56090c], 0
mov cl, byte [edx + 4]
je 0x4a011a
test cl, cl
je 0x4a011a
cmp cl, 0xff
jne 0x4a00ca
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x4a0094
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x4a015e
lea edx, [edi + ebx]
add edx, esi
jmp 0x4a0164
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x4a01a2
movzx edi, byte [eax + 0x560914]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x4a018e
cmp cl, 0xff
jne 0x4a01a2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x4a0151
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x4a0094
pop edi
pop esi
cmp ecx, 3
jbe 0x4a01f1
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a08d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov edx, edi
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a08f0
sub edx, ecx
sar edx, 1
je 0x4a095e
cmp edx, 3
jle 0x4a095e
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00507800
push 3
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0050f78d
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a095e
mov ecx, dword [esi + 0x66c]
test ecx, ecx
je 0x4a0950
mov eax, dword [ecx]
push 1
call dword [eax + 0xe8]
mov ecx, dword [esi + 0x674]
test ecx, ecx
je 0x4a0986
push 1
jmp 0x4a097e
mov ecx, dword [esi + 0x66c]
test ecx, ecx
je 0x4a0972
mov eax, dword [ecx]
push 0
call dword [eax + 0xe8]
mov ecx, dword [esi + 0x674]
test ecx, ecx
je 0x4a0986
push 0
mov eax, dword [ecx]
call dword [eax + 0xe8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bcc20
mov esp, ebp
pop ebp
ret 4
Function at 0x4a0ce0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a7ff
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c30d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
cmp dword [esi + 0x2c], 8
jb 0x4a0d24
mov eax, dword [esi + 0x18]
jmp 0x4a0d27
lea eax, [esi + 0x18]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], ecx
cmp dword [esi + 0x44], 8
mov dword [ebp - 4], ecx
jb 0x4a0d44
mov eax, dword [esi + 0x30]
jmp 0x4a0d47
lea eax, [esi + 0x30]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x48]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4a0d61
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x60]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4a0d7b
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x78]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4a0d95
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x90]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4a0db2
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0xa8]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4a0dcf
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0xc0]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4a0dec
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0xd8]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4a0e09
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
mov byte [ebp - 4], 8
mov dword [esi + 0x14], 1
call fcn.005106f2
add esp, 4
mov dword [esi], eax
lea ecx, [esi + 0x18]
mov dword [esi + 4], 0
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0
push 0
push 0x560c80
mov dword [esi + 0x10], 1
mov dword [esi + 0x230], 0
call fcn.00499940
push 0
push 0x560c80
lea ecx, [esi + 0x30]
call fcn.00499940
push 0
push 0x560c80
lea ecx, [esi + 0x60]
call fcn.00499940
push 0
push 0x560c80
lea ecx, [esi + 0x78]
call fcn.00499940
push 0
push 0x560c80
lea ecx, [esi + 0xa8]
call fcn.00499940
push 0
push 0x560c80
lea ecx, [esi + 0xd8]
call fcn.00499940
push 0x136
lea eax, [esi + 0xf0]
push 0
push eax
call fcn.00507800
add esp, 0xc
mov dword [esi + 0x228], 0
mov dword [esi + 0x22c], 0
mov eax, esi
mov dword [esi + 0x234], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a12d0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a82b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x5c30d8]
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 dword [ebp - 0x2b8], ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00507800
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x560cf0
push eax
call fcn.0050b7a7
add esp, 8
test eax, eax
je 0x4a1465
lea ecx, [ebp - 0x2b4]
call fcn.00502f27
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a1465
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a1465
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.004bc98d
mov edi, eax
add esp, 4
test edi, edi
je 0x4a1465
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.00507800
add esp, 0xc
lea eax, [ebp - 0x2bc]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea ecx, [ebp - 0x2b4]
call fcn.005038e2
push edi
call fcn.004bc996
add esp, 4
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x2b4]
push eax
call fcn.00503130
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
call fcn.0050275a
add esp, 8
lea ecx, [ebp - 0x248]
call fcn.004a0f00
cmp dword [ebp - 0x220], 0
jbe 0x4a145a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ecx, dword [ebp - 0x2b8]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x560cf4
push str.Setting
call fcn.004a4cd0
lea ecx, [ebp - 0x230]
call fcn.004a0f40
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.004bcc20
mov esp, ebp
pop ebp
ret
Function at 0x4a25f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a998
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
mov eax, dword [0x5c30d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.00502d91
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00502e16
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x4a2670
push 0xf013f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a26ed
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
jmp 0x4a2697
push 0xf003f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a26ed
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.PuddingDesktop
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4a26ba
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a26ed
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
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.00502da4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4a2710
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x1a
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2742
sub ecx, edx
sar ecx, 1
je 0x4a280f
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4a2761
mov eax, dword [0x560cec]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a2780
push esi
mov ecx, 7
mov esi, str.PuddingDesktop
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
pop esi
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x4a27a5
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x4a27d4
lea eax, [ebp - 0x20c]
push eax
call fcn.00500c3a
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x4a27e2
xor ecx, ecx
jmp 0x4a27ff
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a27f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x48]
call fcn.00499940
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
Function at 0x4a3040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55aa78
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x5c30d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x104
call fcn.00502d91
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00502e16
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x4a30c3
push 0xf013f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a3134
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
jmp 0x4a30ea
push 0xf003f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a3134
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.PuddingDesktop
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4a310d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a3134
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.00502da4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4a47e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55aba6
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x5c30d8]
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 ebx, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00507800
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00507800
add esp, 0x18
mov dword [ebp - 0x43c], 7
xor ecx, ecx
mov dword [ebp - 0x440], 0
lea eax, [ebx + 0x18]
mov word [ebp - 0x450], cx
push 0xffffffffffffffff
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00499820
cmp dword [ebp - 0x43c], 8
lea ecx, [ebp - 0x218]
push ecx
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x450]
push str.PuddingDesktop.ini
push eax
call fcn.00501308
add esp, 0xc
test eax, eax
je 0x4a49f5
cmp word [ebp - 0x218], 0
jne 0x4a48ae
xor ecx, ecx
jmp 0x4a48c6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a48b7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
lea esi, [ebx + 0xa8]
push eax
mov ecx, esi
call fcn.00499940
push 0x560c80
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x438]
mov ecx, ebx
push eax
call fcn.004a3570
mov edi, dword [ebp - 0x424]
lea eax, [ebp - 0x438]
push 0
push 0x560c80
push dword [ebp - 0x428]
cmp edi, 8
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.004a5650
add esp, 0x10
test eax, eax
jne 0x4a49a1
cmp dword [esi + 0x14], 8
jb 0x4a4934
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x560c80
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x420], 0
jne 0x4a4974
xor ecx, ecx
lea eax, [ebp - 0x420]
push ecx
push eax
lea ecx, [ebx + 0x78]
call fcn.00499940
jmp 0x4a49b8
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4980
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x78]
call fcn.00499940
jmp 0x4a49b8
lea ecx, [ebx + 0x78]
lea eax, [ebp - 0x438]
cmp ecx, eax
je 0x4a49be
push 0xffffffffffffffff
push 0
push eax
call fcn.00499820
mov edi, dword [ebp - 0x424]
cmp edi, 8
jb 0x4a49d8
lea eax, [edi + 1]
push eax
push dword [ebp - 0x438]
lea ecx, [ebp - 0x438]
call fcn.00499ac0
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x4a4a13
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00499ac0
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.004bcc20
mov esp, ebp
pop ebp
ret

Function at 0x4a4a50
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x22c]
push eax
push 0
push esi
push 0x4a4a30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x228], eax
test eax, eax
je 0x4a4a7d
mov ecx, esi
call fcn.004a4720
pop esi
ret 4
Function at 0x4a4a90
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, ecx
push 0
push eax
call fcn.00507800
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00507800
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebx + 0x74], 8
lea ecx, [ebx + 0x60]
jb 0x4a4aef
mov ecx, dword [ecx]
lea edx, [ebp - 0x414]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4a4af5
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4a4b10
mov eax, dword [0x560cec]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a4b30
mov ecx, 7
mov esi, str.PuddingDesktop
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x4a4b53
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00500c3a
lea edi, [ebp - 0x20c]
add esp, 4
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4b80
mov ecx, 7
mov esi, str.PuddingDesktop
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
movsw word es:[edi], word [esi]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4a4ba3
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x560d38]
mov dword [ecx + 4], eax
mov ax, word [0x560d3c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
push str.InstallPath
call fcn.004a25f0
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
push str.InstallPath
call fcn.004a1de0
push 0x206
lea eax, [ebp - 0x61a]
push 0
push eax
call fcn.00507800
movups xmm0, xmmword [0x560da0]
mov eax, dword [0x560db0]
lea edi, [ebp - 0x61c]
add esp, 0xc
mov dword [ebp - 0x60c], eax
movups xmmword [ebp - 0x61c], xmm0
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4c44
mov ecx, 7
lea eax, [ebp - 0x620]
mov esi, str.PuddingDesktop
rep movsd dword es:[edi], dword [esi]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
movsw word es:[edi], word [esi]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x4a4cae
push 0x104
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push str.InstallPath
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
Function at 0x4a4db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a4ea1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.PuddingDesktop
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4a4e25
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4a4e5b
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4e63
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov esp, ebp
pop ebp
ret 0xc