joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc7a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040d5c6
mov dword [ebp - 0x14], eax
cmp dword [0x422184], esi
jne 0x40fd6d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40fcfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40fe4d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40fe4d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fe4d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x422184], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x422188], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42218c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x422194], eax
test eax, eax
je 0x40fd6a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x422190], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40fd92
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fd85
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40fda7
push 4
pop eax
jmp 0x40fe4f
cmp dword [ebp - 0x14], esi
je 0x40fda7
push dword [0x422184]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40fd8c
mov eax, dword [0x422190]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40fe05
cmp dword [0x422194], edi
je 0x40fe05
push eax
call ebx
push dword [0x422194]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40fe05
test eax, eax
je 0x40fe05
call ecx
test eax, eax
je 0x40fdfa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40fdfa
test byte [ebp - 8], 1
jne 0x40fe05
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40fe35
mov eax, dword [0x422188]
cmp eax, edi
je 0x40fe32
push eax
call ebx
test eax, eax
je 0x40fe32
call eax
mov esi, eax
test esi, esi
je 0x40fe32
mov eax, dword [0x42218c]
cmp eax, edi
je 0x40fe32
push eax
call ebx
test eax, eax
je 0x40fe32
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x422184]
call ebx
test eax, eax
je 0x40fe4d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40fe4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409708
mov esp, ebp
pop ebp
ret
Function at 0x401007
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x2afdafc], 0x594
mov dword [ebp - 8], eax
jne 0x40103b
push esi
lea eax, [ebp - 0x434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x425088]
mov ebx, dword [0x42508c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
call fcn.00401000
mov eax, dword [0x425090]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x425094]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x2afdafc], 0xc
mov dword [ebp - 4], eax
jne 0x4010b3
push esi
lea eax, [ebp - 0x434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x2afdafc]
cmp eax, 0xfa9
jne 0x4010cf
mov dword [0x2afdaf8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ee
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x2afd4b0], esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, edi
shr edx, cl
add eax, edi
mov dword [ebp - 0x14], eax
mov dword [0x2afdaf4], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shr edx, cl
add edx, ebx
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
add dword [ebp - 0x18], 0x61c88647
dec dword [ebp - 0x1c]
jne 0x401072
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x405048
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424b24]
jne 0x405052
repz ret
jmp fcn.00407aec

Function at 0x4071c9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004026ef
and dword [ebp - 4], 0
cmp dword [0x4293bc], 0
mov ebx, eax
jne 0x40727a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40732b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40732b
push eax
call fcn.0040267d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4293bc], eax
call esi
push eax
call fcn.0040267d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4293c0], eax
call esi
push eax
call fcn.0040267d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4293c4], eax
call esi
push eax
call fcn.0040267d
pop ecx
mov dword [0x4293cc], eax
test eax, eax
je 0x40727a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040267d
pop ecx
mov dword [0x4293c8], eax
mov eax, dword [0x4293c8]
cmp eax, ebx
je 0x4072d2
cmp dword [0x4293cc], ebx
je 0x4072d2
push eax
call fcn.004026f8
push dword [0x4293cc]
mov esi, eax
call fcn.004026f8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4072d2
test edi, edi
je 0x4072d2
call esi
test eax, eax
je 0x4072c9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4072c9
test byte [ebp - 0xc], 1
jne 0x4072d2
or dword [ebp + 0x10], 0x200000
jmp 0x40730b
mov eax, dword [0x4293c0]
cmp eax, ebx
je 0x40730b
push eax
call fcn.004026f8
pop ecx
test eax, eax
je 0x40730b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40730b
mov eax, dword [0x4293c4]
cmp eax, ebx
je 0x40730b
push eax
call fcn.004026f8
pop ecx
test eax, eax
je 0x40730b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4293bc]
call fcn.004026f8
pop ecx
test eax, eax
je 0x40732b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40732d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x5225002e
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5afb0a48
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x8e2088
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e208e
pop ebp
sub ebp, 6
sub ebp, 0x4e2088
jmp 0x8e20ec
jmp 0x8e20f5
mov eax, 0x4e2088
add eax, ebp
add eax, 0x93
mov ecx, 0x61d
mov edx, 0xcca21d51
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e210c
jmp 0x8e211f
cmp edx, dword [ecx]
cmp dword [ecx + 0x41], edx
push ecx
push ecx
cmp dword [ecx - 0x63], edx
jge 0x8e217c
shl byte [ecx + 0x327f8c9e], 1
shl byte [ecx + 0x327f8c9e], 1
bound edx, qword [ecx + 0x6dc4ae01]
xor byte [0x9cda0151], dl
fcmovu st(0), st(0)
insd dword es:[edi], dx
push ecx
push ecx
push ecx
rcl byte [eax + 0x515151a9]
push edx
pushfd
jmp 0x51df72ad
push ecx
push ecx
push ecx
mov eax, 0x5151517b
add al, 0xdc
cmp eax, 0xd4da5175
pop ecx
push ecx
push ecx
push ecx
fcmovb st(0), st(4)
pop ebp
push ecx
push ecx
push ecx
fcmovu st(0), st(4)
inc ecx
push ecx
push ecx
push ecx
nop
mov eax, 0xd2536053
xchg ebx, eax
push ebp
sbb byte [esi - 0x2c], bl
movsd dword es:[edi], dword [esi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
or al, 0x93
pop ebp
push ecx
fcmovu st(0), st(5)
jne 0x8e2207
push ecx
push ecx
push ecx
cmp dword [edi + 0x39515864], ebp
fnstcw word [ebx + 0x7d505115]
jne 0x8e21c3
mov ecx, 0x51515154
mov eax, 0x51515362
add al, 5
or al, 0xae
and al, 0x5d
scasb al, byte es:[edi]
and al, 0x59
mov ecx, 0x51515137
invalid
inc eax
push ecx
push ecx
push ecx
aaa
shr byte [edx - 0x2aa18b52], 1
inc esp
push ecx
push ecx
push ecx
adc byte [eax - 0x51515163], bh
js 0x8e223b
push 0x5490d250
nop
push esp
sar byte [ecx - 0x511347ab], cl
scasb al, byte es:[edi]
scasb al, byte es:[edi]
js 0x8e2232
push 0x5790d253
sar byte [ebx + 0x54b9d255], cl
mov eax, 0xaeaeaefa
scasb al, byte es:[edi]
scasb al, byte es:[edi]
or al, 0x93
pop ebp
push ecx
add al, 0xda
mov ebp, 0xda040607
and al, 0x5d
fisubr dword [ecx + ebx*2]
lodsd eax, dword [esi]
jecxz 0x8e2221
fist dword [edi - 0x30]
xchg edi, eax
push eax
push ecx
push ecx
push ecx
fst dword [esi - 0x30]
xchg esi, eax
push eax
push ecx
push ecx
push ecx
ljmp 0x8353
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x40226a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021d6
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
call fcn.00406464
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406890
add esp, 0xc
call fcn.00401d3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a8d06
leave
ret 4

Function at 0x403f6b
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov edi, edx
push 0x2002
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x403fc1
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x403fc1
push dword [ebp + 8]
push edi
push eax
call fcn.004abb00
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x403fc1
mov dword [ebp - 4], ebx
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00407f54
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x404017
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68c
mov eax, dword [0x50f35c]
xor eax, esp
mov dword [esp + 0x688], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x27c]
push edi
mov edi, dword [ebp + 0x10]
sub edx, esi
mov dword [esp + 0x1c], eax
movzx eax, word [esi]
mov word [edx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x404050
push 0x50
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004ab9a0
add esp, 0xc
mov dword [esp + 0x20], 0x4c
lea eax, [esp + 0x78]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov esi, 0x4effac
mov dword [esp + 0x14], 0x104
test edi, edi
mov eax, esi
cmovne eax, edi
push eax
call fcn.00403fd0
push esi
call fcn.00403fd0
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x78]
and dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x280]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x44], 0x208
mov dword [esp + 0x58], 0x80004
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
mov ecx, dword [esp + 0x1c]
mov esi, eax
lea eax, [esp + 0x280]
push eax
call fcn.00402c5d
mov ecx, dword [esp + 0x694]
test esi, esi
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.004a8d06
mov esp, ebp
pop ebp
ret

Function at 0x404413
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
xor ebx, ebx
mov edi, eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, esi
movzx ecx, di
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, ecx
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
cmp eax, ecx
jg 0x40446d
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
shr edi, 0x10
imul ecx, edi, 0x19
cmp ecx, eax
jg 0x40446d
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret

Function at 0x404d93
Capabilities:
Set file attributes

Disassembly:
push 0xc
mov eax, 0x4cfc42
call fcn.004a9c2e
mov ebx, edx
mov edi, ecx
call fcn.004077fa
mov esi, eax
cmp esi, 1
je 0x404dbf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404dbf
mov al, 1
jmp 0x404e0f
test esi, esi
je 0x404e0d
lea ecx, [ebp - 0x18]
call fcn.00402b1a
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp esi, 1
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00407c3e
pop ecx
test al, al
je 0x404e04
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004a8d17
test esi, esi
pop ecx
setne al
jmp 0x404e0f
push dword [ebp - 0x18]
call fcn.004a8d17
pop ecx
xor al, al
call fcn.004a9bf7
ret
Function at 0x404e90
Capabilities:
Move file

Disassembly:
push 0x1c
mov eax, 0x4cfc6d
call fcn.004a9c2e
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
call fcn.004077fa
mov ecx, ebx
mov edi, eax
call fcn.004077fa
mov esi, eax
cmp edi, 1
je 0x404ed2
cmp esi, 1
je 0x404ed2
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x404ed2
mov al, 1
jmp 0x404f54
test edi, edi
jne 0x404eda
test esi, esi
je 0x404f52
lea ecx, [ebp - 0x28]
call fcn.00402b1a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402b1a
mov byte [ebp - 4], 1
cmp edi, 1
je 0x404f00
cmp esi, 1
je 0x404f00
mov al, 1
jmp 0x404f02
xor al, al
mov ecx, dword [ebp - 0x10]
mov edx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00407c6e
add esp, 0xc
push dword [ebp - 0x1c]
test al, al
je 0x404f43
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp - 0x1c]
mov esi, eax
call fcn.004a8d17
push dword [ebp - 0x28]
call fcn.004a8d17
test esi, esi
pop ecx
pop ecx
setne al
jmp 0x404f54
call fcn.004a8d17
push dword [ebp - 0x28]
call fcn.004a8d17
pop ecx
pop ecx
xor al, al
call fcn.004a9bf7
ret

Function at 0x40504c
Capabilities:
Create directory

Disassembly:
push 0xc
mov eax, 0x4cfc42
call fcn.004a9c2e
mov edi, ecx
call fcn.004077fa
mov esi, eax
cmp esi, 1
je 0x405084
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405077
mov al, 1
jmp 0x4050d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4050d3
test esi, esi
je 0x4050d3
lea ecx, [ebp - 0x18]
call fcn.00402b1a
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp esi, 1
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00407c3e
pop ecx
test al, al
je 0x4050ca
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004a8d17
test esi, esi
pop ecx
setne al
jmp 0x4050d5
push dword [ebp - 0x18]
call fcn.004a8d17
pop ecx
xor al, al
call fcn.004a9bf7
ret