joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41473b
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], edi
mov dword [0x41cf60], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x3c]
mov dword [edi], 0x4172d8
mov dword [edi + 4], 0x4172e0
mov dword [edi + 8], str.YySRV.exe
mov dword [edi + 0xc], 0x4172f4
mov dword [edi + 0x10], str.PlayerUpdate.exe
mov dword [edi + 0x2c], 0xa
mov word [edi + 0x30], bx
mov byte [edi + 0x32], bl
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], eax
mov byte [eax], bl
mov byte [ebp - 4], 1
push 0xa0
mov dword [edi + 0x7c], 0x1010101
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
call fcn.004086aa
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4010aa
push eax
call fcn.00402ff0
jmp 0x4010ac
xor eax, eax
lea esi, [ebp - 0x58]
mov dword [edi + 0x34], eax
call fcn.00401110
lea esi, [edi + 0x38]
call fcn.00402870
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x4010d2
push eax
call fcn.00408c41
add esp, 4
push ebx
lea edx, [ebp - 0x68]
push edx
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret

Function at 0x401110
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040caf0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x26
push 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401180
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401191
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x4011b8
lea edx, [edi + 1]
push edx
push 0
mov dword [esi], 0
call fcn.00408f11
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.00408c27
mov edx, dword [esi]
add esp, 0xc
push 0x417314
mov eax, esi
mov byte [edi + edx], 0
call fcn.004026d0
push 0x4172d8
mov eax, esi
call fcn.004026d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop edi
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0x401d70
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.0040fb30
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x110c]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x1110], eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x401dbd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x110c]
push ebx
push esi
push edi
shr eax, 2
xor edi, edi
test eax, eax
jle 0x401e44
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + edi*4 - 0x1108]
push ecx
push 0
push 0x410
call ebx
lea edx, [ebp - 0x1114]
push edx
mov esi, eax
push 0x1000
lea eax, [ebp - 0x2114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edx, dword [ebp - 0x2114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov eax, dword [ebp - 0x1110]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.004084f0
add esp, 8
test eax, eax
jne 0x401e59
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x401dd5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + edi*4 - 0x1108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084de
mov esp, ebp
pop ebp
ret 4

Function at 0x401e80
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401ec6
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401ed6
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x401f24
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0x402410
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], edx
call fcn.00410266
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
push 0x4152dc
push 1
push 0
push 0x4152ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x402579
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x41c]
push ecx
push 0x4152fc
push eax
call edx
test eax, eax
js 0x40256b
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test ebx, ebx
jne 0x4024af
mov edx, dword [0x41c210]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x4024b6
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
je 0x4024cb
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
jmp 0x4024d8
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test edi, edi
je 0x4024ed
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x402506
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x402541
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push 0x41738c
push ecx
call fcn.0040872a
add esp, 0x10
jmp 0x4025cb
push 0x5c
test ebx, ebx
je 0x40254a
push ebx
jmp 0x402551
mov edx, dword [0x41c210]
push edx
call fcn.00408aa0
add esp, 8
test eax, eax
jne 0x40258c
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret 8
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push 0x41738c
push ecx
call fcn.0040872a
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025b1
sub eax, edx
lea eax, [ebp + eax - 0x108]
mov word [eax - 3], 0x6e6c
mov byte [eax - 1], 0x6b
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x414]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setns al
xor ecx, ebp
pop esi
call fcn.004084de
mov esp, ebp
pop ebp
ret 8
Function at 0x402e10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push edi
push str.SetupApp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402e63
push 0x88
call fcn.004086aa
add esp, 4
test eax, eax
je 0x402e4c
mov edi, eax
call section..text
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 8]
mov ecx, dword [0x41cf60]
push eax
call fcn.00401200
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040caf0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f74
mov ecx, dword [ebp - 0x10c]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.UninstallString
push ecx
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f67
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f16
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x402f3d
lea eax, [edi + 1]
push eax
push 0
mov dword [esi], 0
call fcn.00408f11
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push edx
call fcn.00408c27
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
pop edi
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
push 0
push 0x4173a8
push eax
mov dword [esi], eax
mov byte [eax], 0
call fcn.00408c27
mov ecx, dword [ebp - 4]
mov edx, dword [esi]
xor ecx, ebp
add esp, 0xc
mov byte [edx], 0
mov eax, esi
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0x403090
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4030a3
sub eax, edi
jne 0x4030b9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4030d2
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov eax, dword [esi]
sub esp, 0x44
mov esi, esp
lea ecx, [esi + 4]
mov dword [ebp - 4], esp
mov dword [esi], ecx
mov byte [ecx], 0
mov ebx, eax
test eax, eax
jne 0x4030ef
mov ebx, 0x4173a8
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4030f4
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x40311a
lea ecx, [edi + 1]
push ecx
push 0
mov dword [esi], 0
call fcn.00408f11
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
push ebx
push edx
call fcn.00408c27
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
add esp, 0xc
push ecx
mov byte [edi + eax], 0
call fcn.00403150
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403150
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414828
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x41b024]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x144], eax
push 0x4174e8
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4031b0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x4032a0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x4031cb
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x403298
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x4031e6
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x4032a0
push edi
call fcn.004084d3
add esp, 4
mov dword [0x41cf2c], eax
test eax, eax
je 0x403210
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x41cf2c]
push eax
push edx
call fcn.0040e890
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.0040caf0
add esp, 0xc
push edi
call fcn.004083e0
mov edi, eax
add esp, 4
test edi, edi
je 0x403293
push 0xffffffffffffffff
lea edx, [ebp - 0x140]
call fcn.00408450
add esp, 4
test eax, eax
jne 0x403293
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40326b
mov edx, dword [ebp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
lea eax, [ebp + 0xc]
mov esi, esp
mov dword [ebp - 0x148], esp
push eax
call fcn.00402640
mov ecx, dword [ebp - 0x140]
push ecx
mov ecx, dword [ebp - 0x144]
mov edx, edi
call fcn.004032d0
call fcn.00408490
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x4032ab
push eax
call fcn.00408c41
add esp, 4
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.004084de
mov esp, ebp
pop ebp
ret 0x48
Function at 0x4032d0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4147f0
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x190], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x40332e
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x52c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 8], ebx
jle 0x4034b7
jmp 0x403346
mov esi, dword [ebp - 0x190]
push 0x12c
lea edx, [ebp - 0x188]
push 0
push edx
call fcn.0040caf0
add esp, 0xc
test esi, esi
jne 0x40336c
mov dword [0x41cf5c], 0x10000
jmp 0x403391
cmp dword [esi], 1
je 0x40337d
mov dword [0x41cf5c], 0x80000
jmp 0x403391
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x188]
call fcn.004079c0
mov dword [0x41cf5c], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
test edi, edi
jne 0x4033a7
mov edi, 0x4173a8
mov ecx, edi
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4033b0
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x4033d8
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x58], 0
call fcn.00408f11
add esp, 8
mov dword [ebp - 0x58], eax
push esi
push edi
push eax
call fcn.00408c27
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x417314
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004026d0
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x58]
call fcn.004026d0
test byte [ebp - 0x80], 0x10
je 0x40341c
mov eax, dword [ebp - 0x58]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x190]
test eax, eax
jne 0x403432
mov dword [0x41cf5c], 0x10000
jmp 0x403455
cmp dword [eax], 1
je 0x403443
mov dword [0x41cf5c], 0x80000
jmp 0x403455
mov edx, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
push edx
push ebx
call fcn.004080b0
mov dword [0x41cf5c], eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x403471
mov ecx, dword [ebp - 0x58]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x98]
test eax, eax
je 0x403490
push 0
push ebx
push 0x52d
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x4034a7
push eax
call fcn.00408c41
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x403340
mov edi, dword [ebp - 0x18c]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4034d1
push 0
push 0
push 0x52e
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x4034e4
push eax
call fcn.00408c41
add esp, 4
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.004084de
mov esp, ebp
pop ebp
ret 0x48
Function at 0x403b70
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x90]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c70
mov edx, dword [0x41cf60]
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x88], al
mov eax, dword [edx + 4]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [esi]
push eax
push ecx
push str.__s_s___mini
lea edi, [ebp - 0x8c]
call fcn.00402ca0
lea edx, [ebp - 0x44]
push 5
mov eax, edx
push 0x4172d8
push eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x44], 0
call fcn.00408c27
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 5], 0
mov edx, dword [esi + 0x54]
add esp, 0x18
push edx
lea eax, [ebp - 0x48]
call fcn.004026d0
mov edx, dword [ebp - 0x8c]
mov eax, edx
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c17
mov ecx, dword [ebp - 0x90]
sub eax, esi
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
cmp eax, ecx
je 0x403c57
push eax
call fcn.00408c41
add esp, 4
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
cmp eax, edx
je 0x403c70
push eax
call fcn.00408c41
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0x403c80
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x138]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e55
push esi
push edi
mov edi, dword [ebx]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 0
test edi, edi
jne 0x403cd9
mov edi, 0x4173a8
mov ecx, edi
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403ce0
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x403d0e
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0xac], 0
call fcn.00408f11
add esp, 8
mov dword [ebp - 0xac], eax
push esi
push edi
push eax
call fcn.00408c27
mov edx, dword [ebp - 0xac]
add esp, 0xc
push str.SysConfig.ini
lea eax, [ebp - 0xac]
mov byte [esi + edx], 0
call fcn.004026d0
mov eax, dword [ebp - 0xac]
push eax
push 0x63
lea ecx, [ebp - 0x68]
push ecx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebx]
lea eax, [ebp - 0x68]
push eax
push ecx
lea edx, [ebp - 0x130]
push str.__s_s___mini
lea edi, [ebp - 0x134]
mov dword [ebp - 0x134], edx
mov byte [ebp - 0x130], 0
call fcn.00402ca0
lea edx, [ebp - 0xec]
push 5
mov eax, edx
push 0x4172d8
push eax
mov dword [ebp - 0xf0], edx
mov byte [ebp - 0xec], 0
call fcn.00408c27
mov ecx, dword [ebp - 0xf0]
add esp, 0x18
push str._News
lea eax, [ebp - 0xf0]
mov byte [ecx + 5], 0
call fcn.004026d0
mov edx, dword [ebx + 0x54]
push edx
lea eax, [ebp - 0xf0]
call fcn.004026d0
mov edx, dword [ebp - 0x134]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403dd8
mov ecx, dword [ebp - 0x138]
sub eax, esi
push eax
mov eax, dword [ebp - 0xf0]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
pop edi
pop esi
cmp eax, ecx
je 0x403e23
push eax
call fcn.00408c41
add esp, 4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
cmp eax, edx
je 0x403e3c
push eax
call fcn.00408c41
add esp, 4
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x403e55
push eax
call fcn.00408c41
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret