joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cac
Capabilities:
Create directory

Disassembly:
push 0
mov eax, 0x5400c2
call fcn.00521f3f
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x402d12
push 2
push eax
call fcn.00520250
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x402d12
lea eax, [ebp + 0xc]
mov esi, 0x5af3ac
push eax
mov ecx, esi
call fcn.00401c1c
mov eax, dword [0x5af3ac]
mov ecx, dword [eax - 0xc]
lea edx, [ecx - 1]
test edx, edx
js 0x402d08
cmp edx, ecx
jg 0x402d08
cmp word [eax + edx*2], 0x5c
je 0x402d4e
mov edi, 0x57f2d4
jmp 0x402d39
push 0x80070057
call fcn.004021c6
push 0x57f2d8
call fcn.00520303
mov esi, eax
push esi
call fcn.0040209f
pop ecx
pop ecx
push eax
push esi
mov esi, 0x5af3ac
mov ecx, esi
call fcn.0040202e
mov edi, str.Tempdir_
push edi
call fcn.0040209f
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004019f0
mov eax, dword [0x5af3ac]
cmp dword [eax - 4], 1
jle 0x402d63
push dword [eax - 0xc]
mov ecx, esi
call fcn.00401ee8
mov eax, dword [0x5af3ac]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x402d7a
push eax
push ecx
jmp 0x402d88
mov edi, str.Downloader.log
push edi
call fcn.0040209f
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004019f0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040218e
call fcn.00522017
ret
Function at 0x402ef5
Capabilities:
Delete file

Disassembly:
push 0x224
mov eax, 0x54cc41
call fcn.00521fa8
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
xor ebx, ebx
mov dword [ebp - 0x22c], esp
mov esi, esp
push eax
mov byte [0x5af378], bl
mov dword [0x5af374], ebx
call fcn.00402108
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x230], esp
mov esi, esp
push eax
call fcn.00402108
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [ebp - 4], 1
call fcn.00402cac
mov eax, dword [0x5af3ac]
pop ecx
pop ecx
cmp dword [eax - 0xc], ebx
je 0x402fc3
push 0x57f4b8
push eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x22c], ebx
call fcn.0052043b
add esp, 0xc
cmp dword [ebp - 0x22c], ebx
je 0x402fc3
push 2
push ebx
push dword [ebp - 0x22c]
call fcn.00520679
push dword [ebp - 0x22c]
call fcn.00520889
push dword [ebp - 0x22c]
mov esi, eax
call fcn.0052057b
add esp, 0x14
cmp esi, dword [ebp + 0x10]
jle 0x402fc3
push dword [0x5af3ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x21c]
push 0x57f34c
push str.Starting_log
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x228]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x222]
push eax
lea eax, [ebp - 0x218]
push str._n___________________d__d__d__d:_d:_d_t_s_t__s__________________
push eax
call fcn.00403153
add esp, 0x28
push ebx
push 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401e04
call fcn.00402dab
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040218e
call fcn.0052202b
ret

Function at 0x4032c3
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.0040335c
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x403354
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x40334f
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
cmp edx, edi
je 0x403346
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403346
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x403356
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040335c
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x403394
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x40339b
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403398
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403398
mov eax, dword [eax + 0x98]
test eax, eax
je 0x4033c1
lea edx, [eax + ecx]
jmp 0x4033c3
xor edx, edx
test edx, edx
je 0x403398
lea eax, [edx + 8]
test eax, eax
je 0x403398
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x4033f1
cmp byte [ecx], 0x82
jne 0x4033f1
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x4033f3
xor eax, eax
test eax, eax
je 0x403398
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret
Function at 0x405031
Capabilities:
Create directory
Create process on windows
Get common file path

Disassembly:
push 0x418
mov eax, 0x54b895
call fcn.00521fa8
xor edi, edi
xor eax, eax
mov esi, 0x206
mov dword [ebp - 4], edi
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.005237f0
xor eax, eax
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push edi
push eax
call fcn.005237f0
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x4050a3
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00401ee8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00520e06
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x40510b
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00401ee8
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x218]
push eax
call esi
push eax
push ebx
mov dword [ebp - 0x424], eax
call fcn.00404e4c
pop ecx
pop ecx
push 5
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
push dword [ebp - 0x424]
call esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
call fcn.0052202b
ret 4
Function at 0x405165
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push 0x838
mov eax, 0x54b865
call fcn.00521fa8
xor ebx, ebx
xor eax, eax
mov edi, 0x206
mov dword [ebp - 4], ebx
push edi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.005237f0
add esp, 0xc
xor eax, eax
push edi
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push ebx
push eax
call fcn.005237f0
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x4051da
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00401ee8
mov eax, dword [ebp + 8]
push eax
mov esi, 0x104
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00520e06
add esp, 0xc
push str.My_Wallpapers
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x40523e
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00401ee8
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.0040cec5
test eax, eax
jne 0x405333
push edi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.005237f0
add esp, 0xc
xor eax, eax
push edi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push ebx
push eax
call fcn.005237f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00520e06
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00520e06
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x57eec0
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00520ca2
add esp, 0xc
push ebx
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x834]
push eax
mov dword [ebp - 0x844], 1
mov dword [ebp - 0x840], ebx
mov dword [ebp - 0x83c], ebx
mov dword [ebp - 0x838], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x420]
call fcn.00405353
push dword [ebp - 0x834]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
lea eax, [ebp - 0x420]
jmp 0x405339
lea eax, [ebp - 0x218]
push eax
call fcn.0040cf3e
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
call fcn.0052202b
ret 4
Function at 0x406a6b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebx + 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call edi
cmp eax, esi
jle 0x406a9f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x406b00
mov eax, dword [ebp - 8]
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004196af
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, esi
je 0x406af9
cmp dword [ebp - 8], esi
je 0x406af2
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebx + 4]
call edi
cmp eax, esi
jle 0x406aed
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x406b00
xor ecx, ecx
mov word [eax], cx
jmp 0x406b00
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

Function at 0x406b09
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebx + 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call edi
cmp eax, esi
jle 0x406b3d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x406b96
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp eax, esi
je 0x406b91
shr eax, 1
inc eax
push eax
call fcn.00401fd6
cmp eax, esi
jne 0x406b64
mov dword [ebp - 4], 0x8007000e
jmp 0x406b85
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebx + 4]
call edi
cmp eax, esi
jle 0x406b82
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
call fcn.00401e52
jmp 0x406b96
call fcn.00401ea2
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x407d1c
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x5a5fb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x624], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x61c], ecx
lea ecx, [ebp - 0x608]
push ecx
push dword [ebp + 0xc]
xor esi, esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407d6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407f08
push ebx
push edi
xor eax, eax
mov edi, 0x1fe
push edi
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push esi
push eax
mov dword [ebp - 0x618], esi
mov dword [ebp - 0x60c], 0x100
call fcn.005237f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
jmp 0x407ee5
cmp eax, esi
jne 0x407ebd
lea eax, [ebp - 0x614]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push esi
push eax
push dword [ebp - 0x608]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ecd
push edi
mov word [ebp - 0x604], ax
lea eax, [ebp - 0x602]
push esi
push eax
call fcn.005237f0
xor eax, eax
push edi
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push esi
push eax
call fcn.005237f0
add esp, 0x18
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x620]
push eax
push esi
push str.DisplayName
push dword [ebp - 0x614]
mov dword [ebp - 0x610], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407eb1
mov ecx, dword [ebp - 0x624]
lea eax, [ebp - 0x604]
push eax
push dword [ecx + 8]
call fcn.0041dd4b
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x620]
push eax
push esi
push str.DisplayVersion
push dword [ebp - 0x614]
mov dword [ebp - 0x610], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x61c]
test eax, eax
jne 0x407ea4
lea eax, [ebp - 0x404]
push eax
jmp 0x407ea9
push 0x57dbdc
push dword [ecx + 8]
call fcn.0041dd4b
push dword [ebp - 0x614]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x618]
mov dword [ebp - 0x60c], 0x100
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x618]
push dword [ebp - 0x608]
call ebx
cmp eax, 0x103
jne 0x407db9
push dword [ebp - 0x608]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051f4ef
leave
ret
Function at 0x409259
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54c827
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x5a5fb0]
xor eax, esp
mov dword [esp + 0x46c], eax
push esi
push edi
mov eax, dword [0x5a5fb0]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x274], ax
lea eax, [esp + 0x276]
push eax
call fcn.005237f0
add esp, 0xc
call fcn.0041a1a4
push eax
lea ecx, [esp + 0x10]
call fcn.00402166
and dword [esp + 0x488], 0
call fcn.0041a1a4
push eax
lea ecx, [esp + 0x14]
call fcn.00402166
lea eax, [esp + 0x26c]
push eax
push 0x104
mov byte [esp + 0x490], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x409315
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
jmp 0x40940c
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x10]
push str._sTempDir
push eax
call fcn.00401c08
mov esi, dword [esp + 0x18]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x409349
push dword [esi - 0xc]
lea ecx, [esp + 0x10]
call fcn.00401ee8
mov esi, dword [esp + 0xc]
push esi
lea eax, [esp + 0x14]
push str._s.
push eax
call fcn.00401c08
mov edi, dword [esp + 0x1c]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x409376
push dword [edi - 0xc]
lea ecx, [esp + 0x14]
call fcn.00401ee8
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x409401
push 0x57ca08
lea ecx, [esp + 0x18]
call fcn.00401e04
mov byte [esp + 0x488], 2
cmp dword [esi - 4], 1
jle 0x4093b7
push dword [esi - 0xc]
lea ecx, [esp + 0x10]
call fcn.00401ee8
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x48]
push eax
push esi
lea eax, [esp + 0x1c]
push 0x57ca0c
push eax
call fcn.00401c08
add esp, 0x10
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x488], 1
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040218e
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x40938b
lea ecx, [edi - 0x10]
call fcn.0040218e
lea ecx, [esi - 0x10]
call fcn.0040218e
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.0051f4ef
mov esp, ebp
pop ebp
ret
Function at 0x40cf3e
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.Control_PanelDesktop
push SysReAllocStringLen
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jle 0x40cf71
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x40d016
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x57c660
push esi
call edi
add eax, eax
push eax
push esi
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x57c67c
push dword [ebp - 4]
call ebx
test eax, eax
jle 0x40cfaf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x40cfdf
mov esi, 0x57c664
push esi
call edi
add eax, eax
push eax
push esi
push 1
push 0
push str.TileWallpaper
push dword [ebp - 4]
call ebx
test eax, eax
jle 0x40cfdd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
js 0x40d016
push 3
push dword [ebp + 8]
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x40d016
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40d014
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x411860
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b80b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a5fb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0053edbf
push 4
mov dword [ebp - 4], 0
call fcn.00419680
mov edi, eax
add esp, 4
test edi, edi
je 0x4118dc
call fcn.0053ec97
mov dword [edi], eax
call fcn.0053ea56
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0053ed80
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4118d2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0053eda8
jmp 0x4118de
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x415d70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b958
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5a5fb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.00419680
add esp, 4
cmp eax, ebx
je 0x415e54
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.00419680
add esp, 4
cmp eax, ebx
je 0x415e30
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
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
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.0051ff14
push 0x59a88c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00522049
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.0051ff14
push 0x59a88c
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.00522049
int3

Function at 0x41e7c2
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41e7ed
call fcn.0041cfe0
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x41e810
push eax
push dword [esi + 4]
call fcn.0041e748
push esi
push eax
mov ecx, 0x5a8bac
call fcn.0041e3c4
mov eax, esi
pop esi
pop ebp
ret 0x18