joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x35bb4d59
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x56181502
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413784
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], ebx
mov dword [0x41e214], ebx
xor esi, esi
mov dword [ebp - 4], esi
lea edi, [ebx + 0x38]
lea eax, [edi + 4]
mov dword [ebx], str.slws
mov dword [ebx + 4], 0x417bb0
mov dword [ebx + 8], str.YySRV.exe
mov dword [ebx + 0xc], 0x417bc8
mov dword [ebx + 0x10], str.PlayerUpdate.exe
mov byte [ebx + 0x14], 1
mov dword [ebx + 0x30], 0xa
mov word [ebx + 0x34], si
mov byte [ebx + 0x36], 0
mov dword [edi], eax
mov byte [eax], 0
lea eax, [ebx + 0x84]
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x80], eax
mov byte [eax], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
mov dword [ebx + 0xc4], 0x1010101
mov dword [ebx + 0xc8], esi
mov dword [ebx + 0xcc], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x1a]
movzx edx, word [ebp - 0x1c]
movzx eax, word [ebp - 0x1e]
push ecx
movzx ecx, word [ebp - 0x22]
push edx
movzx edx, word [ebp - 0x24]
push eax
push ecx
push edx
push str.__d_02d_02d_02d_02d
call fcn.00402150
push 0xa0
call fcn.004088fa
add esp, 0x1c
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
cmp eax, esi
je 0x401158
push eax
call fcn.00402530
jmp 0x40115a
xor eax, eax
mov byte [ebp - 4], 2
push ebx
lea esi, [ebp - 0x6c]
mov dword [ebx + 0x7c], eax
call fcn.00401290
mov byte [ebp - 4], 4
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea esi, [ebx + 0x80]
call fcn.00401c50
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
cmp eax, ecx
je 0x401195
push eax
call fcn.00408302
add esp, 4
xor eax, eax
push eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
push edx
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x7c], 1
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret 4
Function at 0x401290
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4135d2
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea ecx, [ebp - 0x113]
push ebx
mov dword [ebp - 0x120], ebx
push ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], esi
mov byte [ebp - 0x114], bl
call fcn.0040bf50
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
push 0x26
push ebx
mov dword [ebp - 0x118], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40132a
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], bl
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401340
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x401361
lea eax, [edi + 1]
push eax
push ebx
mov dword [esi], ebx
call fcn.00409221
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x114]
push ecx
push eax
call fcn.00409005
mov edx, dword [esi]
add esp, 0xc
mov byte [edi + edx], bl
mov dword [ebp - 4], ebx
push 0x417bfc
mov eax, esi
mov dword [ebp - 0x120], 1
call fcn.00401b50
push str.slws
mov eax, esi
call fcn.00401b50
mov eax, dword [ebp - 0x11c]
cmp byte [eax + 0x14], bl
je 0x4013b4
mov eax, dword [eax + 0x38]
push eax
mov eax, esi
call fcn.00401b50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret 4
Function at 0x401860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4138f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401a60
mov eax, dword [0x41e214]
mov ecx, dword [eax + 8]
push ecx
call fcn.00401950
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4018b9
push 0
push eax
call edi
mov edx, dword [0x41e214]
mov eax, dword [edx + 4]
push eax
call fcn.00401950
push eax
push 0
push 1
call esi
test eax, eax
je 0x4018d8
push 0
push eax
call edi
mov ecx, dword [0x41e214]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00401950
push eax
push 0
push 1
call esi
test eax, eax
je 0x4018f7
push 0
push eax
call edi
lea ecx, [ebp - 0x58]
call fcn.004023f0
push 0x417c2e
mov ecx, 0x417cb0
lea edi, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x401932
push eax
call fcn.00408302
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret

Function at 0x401950
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.0040ebb0
mov eax, dword [0x41a024]
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 0x40199d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082f3
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 0x401a24
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.00408740
add esp, 8
test eax, eax
jne 0x401a39
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x4019b5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082f3
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.004082f3
mov esp, ebp
pop ebp
ret 4
Function at 0x401a60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41a024]
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 0x401aa6
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401ab6
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.004082f3
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 0x401b04
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.004082f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004082f3
mov esp, ebp
pop ebp
ret

Function at 0x402360
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
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 0x4023d8
push 0xd0
call fcn.004088fa
add esp, 4
test eax, eax
je 0x40239f
push eax
call fcn.00401060
mov esi, eax
jmp 0x4023a1
xor esi, esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [0x41e214]
push eax
call fcn.004013e0
test esi, esi
je 0x4023c7
push esi
call fcn.004011e0
push esi
call fcn.0040889e
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4023f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
mov dword [ebp - 0x110], 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.0040bf50
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_shiliws
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402502
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 0x4024f5
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 0x4024a3
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x4024ca
lea eax, [edi + 1]
push eax
push 0
mov dword [esi], 0
call fcn.00409221
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push edx
call fcn.00409005
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082f3
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 0xffffffffffffffff
push 0x417c2e
mov dword [esi], eax
mov byte [eax], 0
call fcn.00401c50
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004082f3
mov esp, ebp
pop ebp
ret

Function at 0x402700
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi]
mov eax, edx
push esi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402710
sub eax, esi
jne 0x402722
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40273b
mov eax, dword [edi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [edi]
sub esp, 0x44
mov esi, esp
mov dword [ebp - 4], esp
lea eax, [esi + 4]
push 0xffffffffffffffff
push ecx
mov dword [esi], eax
mov byte [eax], 0
call fcn.00401c50
push edi
call fcn.00402770
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402770
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413b28
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x41a024]
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 0x417cf4
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4028c1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x4027f1
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
jmp 0x4028d0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4028c1
push edi
call fcn.00408731
add esp, 4
mov dword [0x41e1e0], eax
test eax, eax
je 0x40282d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x41e1e0]
push eax
push edx
call fcn.0040d910
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.0040bf50
add esp, 0xc
push edi
call fcn.00408200
mov edi, eax
add esp, 4
test edi, edi
je 0x4028bc
lea ecx, [ebp - 0x140]
push ecx
or edx, 0xffffffff
call fcn.00408270
add esp, 4
test eax, eax
jne 0x4028bc
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40288a
mov eax, dword [ebp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
mov esi, esp
lea eax, [esi + 4]
mov dword [ebp - 0x148], esp
mov dword [esi], eax
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ecx
call fcn.00401c50
mov edx, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x144]
push edx
mov edx, edi
call fcn.00402900
call fcn.004082b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
je 0x4028db
push eax
call fcn.00408302
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.004082f3
mov esp, ebp
pop ebp
ret 0x48
Function at 0x402c60
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413843
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x41a024]
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
lea eax, [ebp - 0x9c]
push eax
push 0x20006
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402d87
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 0x94], bl
mov dword [ebp - 4], ebx
mov edx, dword [0x41e214]
mov ecx, dword [edx + 4]
mov eax, dword [esi]
push ecx
push eax
push str.__s_s___mini
lea edi, [ebp - 0x98]
call fcn.00402150
lea edx, [ebp - 0x50]
push 4
mov eax, edx
push str.slws
push eax
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], bl
call fcn.00409005
mov ecx, dword [ebp - 0x54]
add esp, 0x18
mov byte [ecx + 4], bl
mov byte [ebp - 4], 1
mov esi, dword [esi + 0x54]
push esi
lea eax, [ebp - 0x54]
call fcn.00401b50
mov edx, dword [ebp - 0x98]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402d25
sub eax, esi
push eax
mov eax, dword [ebp - 0x9c]
push edx
mov edx, dword [ebp - 0x54]
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
cmp eax, edx
je 0x402d67
push eax
call fcn.00408302
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x402d87
push eax
call fcn.00408302
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.004082f3
mov esp, ebp
pop ebp
ret
Function at 0x402db0
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413801
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x41a024]
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, dword [ebp + 8]
lea eax, [ebp - 0x144]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fbf
mov ecx, dword [ebx]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0
mov edi, ecx
test ecx, ecx
jne 0x402e27
mov edi, 0x417c2e
mov esi, edi
lea edx, [esi + 1]
lea esp, [esp]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x402e30
sub esi, edx
cmp esi, 0x3f
jl 0x402e5c
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0xb8], 0
call fcn.00409221
add esp, 8
mov dword [ebp - 0xb8], eax
push esi
push edi
push eax
call fcn.00409005
mov edx, dword [ebp - 0xb8]
add esp, 0xc
mov byte [esi + edx], 0
push 0x417c30
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], 0
call fcn.00401b50
mov eax, dword [ebp - 0xb8]
push eax
push 0x63
lea ecx, [ebp - 0x74]
push ecx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x13c]
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x13c], 0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
mov eax, dword [ebx]
push ecx
push eax
push str.__s_s___mini
lea edi, [ebp - 0x140]
call fcn.00402150
lea edx, [ebp - 0xf8]
push 4
mov eax, edx
push str.slws
push eax
mov dword [ebp - 0xfc], edx
mov byte [ebp - 0xf8], 0
call fcn.00409005
mov ecx, dword [ebp - 0xfc]
add esp, 0x18
mov byte [ecx + 4], 0
push str._News
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.00401b50
mov ebx, dword [ebx + 0x54]
push ebx
lea eax, [ebp - 0xfc]
call fcn.00401b50
mov ecx, dword [ebp - 0x140]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402f35
mov edx, dword [ebp - 0xfc]
sub eax, esi
push eax
mov eax, dword [ebp - 0x144]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 0xf8]
cmp eax, edx
je 0x402f82
push eax
call fcn.00408302
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x13c]
cmp eax, ecx
je 0x402f9f
push eax
call fcn.00408302
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
cmp eax, edx
je 0x402fbf
push eax
call fcn.00408302
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.004082f3
mov esp, ebp
pop ebp
ret 4
Function at 0x403720
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40376f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x134]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4037e1
lea edx, [ebp - 0x134]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x4037e1
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov eax, dword [ebp - 0x138]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00408f1b
add esp, 8
test eax, eax
jne 0x4037cf
mov edx, dword [ebp - 0x12c]
push edx
push eax
push 1
call edi
test eax, eax
je 0x4037cf
push 0
push eax
call ebx
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4037a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004082f3
mov esp, ebp
pop ebp
ret 4
Function at 0x405ea0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x405eae
xor eax, eax
pop ebp
ret
push esi
not eax
cmp edx, 8
jb 0x405f7d
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4175a8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4175a8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4175a8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4175a8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4175a8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4175a8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4175a8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4175a8]
add ecx, 8
sub edx, 8
dec esi
jne 0x405ec0
pop edi
test edx, edx
je 0x405f9a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4175a8]
inc ecx
dec edx
jne 0x405f81
not eax
pop esi
pop ebp
ret

Function at 0x406660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x40669b
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406690
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x4066ac
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0040d910
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret

Function at 0x4066d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x406703
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4066fe
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40672e
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x406715
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0040d910
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x406743
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40673d
cmp byte [esi + 8], 0
je 0x40673d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret