joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401090
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x808]
push eax
push 0x46aef4
push 1
push 0
push 0x46af64
mov esi, ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401131
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
lea edx, [esi + 0x800]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
lea edx, [esi + 0x1000]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
push 0
lea edx, [esi + 0xc00]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
lea edx, [ebp - 0x80c]
push edx
push 0x46af24
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x401142
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044471a
mov esp, ebp
pop ebp
ret
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004446a0
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xffffffffffffffff
add esi, 0x400
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x80c]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
lea ecx, [ebp - 0x804]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0044471a
mov esp, ebp
pop ebp
ret
Function at 0x4011c0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
mov esi, ecx
call fcn.004446a0
push 0x400
lea ecx, [ebp - 0x804]
push 0
push ecx
call fcn.004446a0
lea edx, [esi + 0xc00]
push edx
lea eax, [esi + 0x1000]
push eax
lea ecx, [ebp - 0x404]
push str._InternetShortcut__r_nURL_s_r_nIconIndex0_r_nIconFile_s
push ecx
call fcn.00444729
add esp, 0x28
push 0
push 6
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea eax, [ebp - 0x804]
push eax
lea edi, [esi + 0x400]
push str._s_s.url
push edi
call fcn.00444729
add esp, 0x10
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40127d
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044471a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401293
push 0
lea ecx, [ebp - 0x808]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x404]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0044471a
mov esp, ebp
pop ebp
ret
Function at 0x4012d0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x4012fd
mov byte [esi + 0x1800], 1
mov eax, dword [ebp + 8]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401304
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004446a0
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x401375
mov edx, dword [str.c:Program_Files]
mov eax, dword [0x45fad0]
mov ecx, dword [0x45fad4]
mov dword [ebp - 0x404], edx
mov edx, dword [0x45fad8]
mov dword [ebp - 0x400], eax
mov al, byte [0x45fadc]
mov dword [ebp - 0x3fc], ecx
mov dword [ebp - 0x3f8], edx
mov byte [ebp - 0x3f4], al
lea ecx, [ebp - 0x404]
push ecx
lea edx, [esi + 0x800]
push str._sInternet_Exploreriexplore.exe
push edx
call fcn.00444729
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004446a0
add esp, 0x18
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x404]
push 0x5c
push edx
call fcn.004447f0
mov byte [eax], 0
push edi
lea eax, [ebp - 0x404]
push eax
lea ecx, [esi + 0xc00]
push 0x45faa0
push ecx
call fcn.00444729
mov eax, dword [ebp + 0x10]
add esp, 0x18
lea edx, [esi + 0x1000]
pop edi
sub edx, eax
pop esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4013f1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0044471a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
mov esi, ecx
call fcn.004446a0
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [ebp - 0x404]
push edx
lea eax, [esi + 0x400]
push str._s_s.lnk
push eax
call fcn.00444729
add esp, 0x10
mov ecx, esi
call fcn.00401090
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044471a
mov esp, ebp
pop ebp
ret

Function at 0x401490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
mov esi, ecx
call fcn.004446a0
add esp, 0xc
push 0
push 0xb
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [ebp - 0x404]
push edx
lea eax, [esi + 0x400]
push str._s_s.lnk
push eax
call fcn.00444729
add esp, 0x10
mov ecx, esi
call fcn.00401090
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044471a
mov esp, ebp
pop ebp
ret
Function at 0x401510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
mov esi, ecx
call fcn.004446a0
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [ebp - 0x404]
push edx
lea eax, [esi + 0x400]
push str._sMicrosoftInternet_ExplorerQuick_Launch_s.lnk
push eax
call fcn.00444729
add esp, 0x10
mov ecx, esi
call fcn.00401090
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044471a
mov esp, ebp
pop ebp
ret

Function at 0x401670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push str.Kernel32
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0xffffffff
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
push 0x1f0fff
lea eax, [ebp - 4]
push eax
call esi
mov ecx, dword [ebp + 8]
push eax
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, eax
mov eax, dword [ebp - 4]
test esi, esi
jne 0x4016c7
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40171c
cmp dword [ebp - 0xc], 0x103
jne 0x40171c
push 0x45fb4c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
test esi, esi
jne 0x4016f5
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp + 0xc]
push 0
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x401725
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x401741
mov dword [ebp - 8], 0x42b
jmp 0x401741
mov eax, dword [ebp - 4]
test esi, esi
jne 0x40172f
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
test esi, esi
je 0x40174f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x40175d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401770
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4017d5
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 4]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4017d5
push eax
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esp, ebp
pop ebp
ret

Function at 0x4017e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov eax, edx
push edi
mov dword [ebp - 0x130], edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401803
sub eax, esi
lea esi, [eax - 1]
test esi, esi
jl 0x4018a3
mov al, 0x3a
lea esp, [esp]
cmp byte [edx + esi], 0x5c
jne 0x40182c
cmp byte [edx + esi - 1], al
jne 0x401833
sub esi, 1
jns 0x401820
jmp 0x4018a3
push ebx
lea ebx, [esi + 1]
push ebx
call fcn.0041b7b6
push ebx
mov edi, eax
push 0
push edi
call fcn.004446a0
mov eax, dword [ebp - 0x130]
push esi
push eax
push edi
call fcn.004449c0
lea ecx, [ebp - 0x12c]
push ecx
push edi
call fcn.00444885
add esp, 0x24
pop ebx
cmp eax, 0xffffffff
jne 0x401894
push edi
call fcn.004017e0
add esp, 4
test al, al
jne 0x401894
push edi
call fcn.0041b7ab
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044471a
mov esp, ebp
pop ebp
ret
push edi
call fcn.0041b7ab
mov edx, dword [ebp - 0x130]
add esp, 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
pop edi
xor ecx, ebp
pop esi
call fcn.0044471a
mov esp, ebp
pop ebp
ret

Function at 0x401990
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004446a0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x404]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019c4
push esi
lea ecx, [ebp - 0x544]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019f3
cmp dword [ebp - 0x544], 0x10
je 0x401a07
lea eax, [ebp - 0x404]
push 0x5c
push eax
call fcn.00444e68
add esp, 8
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54c]
push ecx
lea edx, [ebp - 0x55c]
push edx
lea eax, [ebp - 0x554]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x54c]
mov edx, dword [ebp - 0x548]
xor ecx, ebp
pop esi
call fcn.0044471a
mov esp, ebp
pop ebp
ret
Function at 0x401b40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x104]
push edi
mov edi, dword [ebp + 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b66
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00444e68
add esp, 8
push 0x64
push esi
push 0
lea ecx, [ebp - 0x174]
push ecx
lea edx, [ebp - 0x170]
push edx
mov byte [eax + 1], 0
push 0x64
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x174], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x401be6
push edi
push esi
call fcn.004451d1
add esp, 8
test eax, eax
jne 0x401be6
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044471a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0044471a
mov esp, ebp
pop ebp
ret
Function at 0x402a50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push esi
push eax
push edi
push 0x45fd02
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0xffffffff
jne 0x402a94
push str.GetPrivateProfileString_error
add esi, 0x200
push esi
call fcn.00444729
add esp, 8
pop edi
xor al, al
pop esi
pop ebp
ret 0x10
mov byte [eax + edi], 0
pop edi
mov al, 1
pop esi
pop ebp
ret 0x10

Function at 0x4035c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a3aa
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x47a480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi + 0x3c], 1
call fcn.00402d70
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x220
call fcn.0041b77c
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x403624
push 0
mov ecx, eax
call fcn.0040ca00
jmp 0x403626
xor eax, eax
lea ecx, [esi + 0xc]
push ecx
lea ecx, [eax + 0x124]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x40], eax
call fcn.004033d0
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x13c]
push 0
push 0xcf
call eax
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esi + 0x40]
call fcn.0040c920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403680
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + ecx - 1]
mov dword [ebp + 8], eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
sub ecx, edx
neg ecx
sbb ecx, ecx
and ecx, 4
lea eax, [ecx + eax*4 + 1]
push eax
mov byte [ebp - 4], 0
mov byte [ebp - 3], 0
mov byte [ebp - 2], 0
call fcn.00445f96
xor ebx, ebx
add esp, 4
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], ebx
mov ecx, edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp + 8]
ja 0x4037b6
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov al, byte [ecx]
mov edi, ebx
sub edi, edx
mov byte [ebp + edi - 4], al
cmp edi, 2
je 0x40370a
cmp ecx, dword [ebp + 8]
jne 0x403795
mov al, byte [ebp - 4]
mov cl, byte [ebp - 3]
mov dl, al
and al, 3
mov bl, cl
shl al, 4
shr bl, 4
or al, bl
mov bl, byte [ebp - 2]
shr dl, 2
and cl, 0xf
mov byte [ebp - 0xf], al
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s___s:_d_]
add cl, cl
mov al, bl
shr al, 6
add cl, cl
or cl, al
mov eax, dword [ebp - 0xc]
mov byte [esi + eax], dl
movzx edx, byte [ebp - 0xf]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s___s:_d_]
inc esi
mov byte [esi + eax], dl
and bl, 0x3f
inc esi
test edi, edi
jne 0x403760
mov cl, 0x3d
jmp 0x403769
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s___s:_d_]
mov byte [esi + eax], cl
inc esi
cmp edi, 2
jge 0x403776
mov cl, 0x3d
jmp 0x40377f
movzx edx, bl
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s___s:_d_]
mov ebx, dword [ebp + 0xc]
mov byte [esi + eax], cl
mov ecx, dword [ebp - 8]
inc esi
mov byte [ebp - 2], 0
mov byte [ebp - 3], 0
mov byte [ebp - 4], 0
inc ecx
inc ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp + 8]
jbe 0x4036e1
mov eax, dword [ebp - 0xc]
pop edi
mov byte [esi + eax], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov byte [esi + eax], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4037d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4037eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403824
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403820
jmp 0x403810
cmp esi, eax
jae 0x403824
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403810
cmp esi, eax
jb 0x40382b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405380
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4053b5
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
push esi
push edi
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 4]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call edi
push ebx
call edi
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405489
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4054b9
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 4]
push edi
mov edi, dword [ebp - 8]
test eax, eax
je 0x4054d4
mov ecx, dword [esi]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esi]
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 8]
push ecx
push eax
lea edx, [ebp - 0xc]
push edx
push 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
push ebx
push eax
mov dword [esi + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405535
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov edx, dword [ebp + 0x14]
push edx
call edi
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x405526
push eax
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [esi + 0xc], ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp + 0x14]
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4073c0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x45fd02
push str.Shell_TrayWnd
mov edi, ecx
xor esi, esi
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4073f5
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 4]
sub esi, dword [ebp - 0xc]
sub esi, 2
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov dword [edi + 0xbc], eax
call ebx
sub eax, esi
mov dword [edi + 0xc0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40aae0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push str.Shell_TrayWnd
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40ab48
push esi
mov esi, dword [sym.imp.USER32.dll_EnumChildWindows]
lea ecx, [ebp - 4]
push ecx
push 0x40a9e0
push eax
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ab43
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ab40
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x40aa60
push eax
mov dword [ebp - 8], 0
call esi
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40ab43
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40c820
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407390
mov ecx, esi
call fcn.0040c770
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, eax
push 8
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
lea edx, [ebp - 0x10]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x80
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call fcn.0042137e
push eax
mov ecx, esi
call fcn.00424b6a
push 0x80
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
call fcn.0042137e
push eax
mov ecx, esi
call fcn.00424b6a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 0x40
push eax
mov eax, dword [ebp - 0x10]
push ecx
push edx
push eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push 1
push ecx
mov dword [esi + 0xd0], ecx
mov ecx, dword [ebp - 0xc]
push eax
push ecx
sub edi, eax
push edi
mov ecx, esi
call fcn.0042489f
push 0
mov edx, dword [esi + 0x20]
push 0x32
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret