joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f550
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7acb98]
xor edx, edx
cmp eax, edx
jne 0x49f576
xor eax, eax
mov byte [eax + 0x7aca98], al
inc eax
cmp eax, 0x100
jl 0x49f55e
mov dword [0x7acb98], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7aca98
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49f607
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49f5da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49f5a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a5fa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4da1ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a68c0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x76e2dc
call fcn.004cc9f0
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a6033
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cc9f0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a602c
push 0
mov ecx, eax
call fcn.0049d180
mov dword [esi + 0xc], eax
jmp 0x4a6035
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a6035
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4c5d82
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x79aebc]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004baaef
mov dword [ebp - 0x14], eax
cmp dword [0x7bf6b4], edi
jne 0x4c5e73
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4c5e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4c5f53
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4c5f53
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c5f53
push eax
call ebx
push 0x7762fc
push esi
mov dword [0x7bf6b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x77630c
push esi
mov dword [0x7bf6b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x7bf6bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7bf6c4], eax
test eax, eax
je 0x4c5e70
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7bf6c0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c5e98
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c5e8b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4c5ead
push 4
pop eax
jmp 0x4c5f55
cmp dword [ebp - 0x14], edi
je 0x4c5ead
push dword [0x7bf6b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4c5e92
mov eax, dword [0x7bf6c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4c5f0b
cmp dword [0x7bf6c4], esi
je 0x4c5f0b
push eax
call ebx
push dword [0x7bf6c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4c5f0b
test eax, eax
je 0x4c5f0b
call ecx
test eax, eax
je 0x4c5f00
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 0x4c5f00
test byte [ebp - 8], 1
jne 0x4c5f0b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4c5f3b
mov eax, dword [0x7bf6b8]
cmp eax, esi
je 0x4c5f38
push eax
call ebx
test eax, eax
je 0x4c5f38
call eax
mov edi, eax
test edi, edi
je 0x4c5f38
mov eax, dword [0x7bf6bc]
cmp eax, esi
je 0x4c5f38
push eax
call ebx
test eax, eax
je 0x4c5f38
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x7bf6b4]
call ebx
test eax, eax
je 0x4c5f53
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4c5f55
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004be84c
leave
ret
Function at 0x4cf07c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cf0b4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cd10a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cd0e2
jmp 0x4cf0c0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d076f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d07b1
call fcn.004d61ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d07b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d07a8
xor eax, eax
jmp 0x4d07b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d07bf
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1565151b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, str.QYM
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x59e11e51
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x405250
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x4053a1
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
nop dword [eax]
call esi
sub byte [edi + ebp], 0x5c
call esi
add byte [edi + ebp], 0xbe
call esi
xor byte [edi + ebp], 0x6a
call esi
add byte [edi + ebp], 0xac
call esi
add byte [edi + ebp], 0x67
call esi
add byte [edi + ebp], 0xcd
call esi
add byte [edi + ebp], 0xa1
call esi
xor byte [edi + ebp], 0xd7
call esi
add byte [edi + ebp], 0xdc
call esi
add byte [edi + ebp], 0x9b
call esi
xor byte [edi + ebp], 0x70
call esi
add byte [edi + ebp], 2
call esi
add byte [edi + ebp], 0x4f
call esi
add byte [edi + ebp], 0x6f
call esi
add byte [edi + ebp], 8
call esi
add byte [edi + ebp], 0x73
call esi
xor byte [edi + ebp], 0x91
call esi
add byte [edi + ebp], 0x3e
call esi
add byte [edi + ebp], 0xf6
call esi
add byte [edi + ebp], 0xf1
call esi
add byte [edi + ebp], 0x9f
call esi
add byte [edi + ebp], 0xbb
call esi
add byte [edi + ebp], 0x34
call esi
add byte [edi + ebp], 0x1a
call esi
add byte [edi + ebp], 0x99
call esi
xor byte [edi + ebp], 0x4a
call esi
add byte [edi + ebp], 4
call esi
add byte [edi + ebp], 5
call esi
add byte [edi + ebp], 3
call esi
add byte [edi + ebp], 0x55
call esi
add byte [edi + ebp], 0x83
call esi
xor byte [edi + ebp], 0xf3
call esi
xor byte [edi + ebp], 0x16
call esi
xor byte [edi + ebp], 0xe9
call esi
add byte [edi + ebp], 0x8c
call esi
add byte [edi + ebp], 0x29
call esi
xor byte [edi + ebp], 0x30
call esi
add byte [edi + ebp], 0xe
call esi
add byte [edi + ebp], 0x5b
call esi
xor byte [edi + ebp], 0xeb
call esi
add byte [edi + ebp], 0xc2
call esi
xor byte [edi + ebp], 0xc7
call esi
add byte [edi + ebp], 0x92
call esi
xor byte [edi + ebp], 0x1f
call esi
add byte [edi + ebp], 0x6d
call esi
xor byte [edi + ebp], 0x1a
call esi
add byte [edi + ebp], 0x1c
call esi
add byte [edi + ebp], 0x3d
call esi
add byte [edi + ebp], 0x5f
inc edi
cmp edi, ebx
jb 0x405270
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x401750
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4017d6
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4017b7
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x20]
push 1
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
jmp 0x4017c7
mov edx, dword [esp + 0x14]
mov eax, dword [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4017dc
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret

Function at 0x4017f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x414a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x310
push edi
lea ecx, [esp + 4]
call fcn.00404bb0
mov al, byte [0x41ed78]
mov ecx, 0x40
mov byte [esp + 8], al
xor eax, eax
lea edi, [esp + 9]
push 0x41ec77
rep stosd dword es:[edi], eax
movsx ecx, byte [0x41ec74]
stosw word es:[edi], ax
push ecx
push str._C:Documents_and_SettingsAll_Users._s
lea edx, [esp + 0x14]
push 0x103
push edx
mov dword [esp + 0x330], 0
stosb byte es:[edi], al
call fcn.00409af4
add esp, 0x14
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop edi
jne 0x40188c
movsx ecx, byte [0x41ec74]
push ecx
push str._C:Documents_and_SettingsAll_Users
lea edx, [esp + 0xc]
push 0x103
push edx
call fcn.00409af4
add esp, 0x10
lea eax, [esp + 4]
push esi
push eax
lea ecx, [esp + 0x110]
push 0x41a510
push ecx
call fcn.00409aa2
add esp, 0xc
lea edx, [esp + 0x210]
push 0x41a500
push edx
call fcn.00409aa2
add esp, 8
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x210]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.00404650
mov esi, eax
test esi, esi
je 0x4018eb
mov ecx, esi
call fcn.00405820
push esi
call fcn.00405ade
add esp, 4
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push 0x41a4e8
push eax
call fcn.00409aa2
add esp, 0xc
lea ecx, [esp + 0x210]
push 0x41a500
push ecx
call fcn.00409aa2
add esp, 8
lea edx, [esp + 0x10c]
lea eax, [esp + 0x210]
lea ecx, [esp + 4]
push edx
push eax
call fcn.00404650
mov esi, eax
test esi, esi
je 0x401949
mov ecx, esi
call fcn.00405820
push esi
call fcn.00405ade
add esp, 4
push str.8021XClient
push 0
push 0
call fcn.00401750
add esp, 0xc
lea ecx, [esp + 4]
mov dword [esp + 0x31c], 0xffffffff
call fcn.00404bc0
mov ecx, dword [esp + 0x314]
pop esi
mov dword fs:[0], ecx
add esp, 0x31c
ret
Function at 0x401990
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x414a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00406f50
mov dword [esp + 0x64], 0
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], 0xf
mov dword [esp + 0x1c], 5
mov dword [esp + 0x20], 0xd
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x28], 0x17
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x30], 0x1a
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x1b
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 0x1d
mov dword [esp + 0x44], 6
mov dword [esp + 0x48], 0x1c
mov dword [esp + 0x4c], 7
mov dword [esp + 0x50], 0x19
mov dword [esp + 0x54], 0x14
mov dword [esp + 0x58], 0x3e8
lea edi, [esp + 0x10]
mov ebx, 0x13
mov eax, dword [edi]
push 0
push 0x40
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.00407230
mov esi, eax
test esi, esi
je 0x401a85
mov ecx, esi
call fcn.00405820
push esi
call fcn.00405ade
add esp, 4
add edi, 4
dec ebx
jne 0x401a5d
push 0
push 0xa
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
call fcn.00408720
lea ecx, [esp + 0xc]
mov dword [esp + 0x64], 0xffffffff
call fcn.00406f80
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret
Function at 0x402130
Capabilities:
Acquire debug privileges

Disassembly:
push 0xffffffffffffffff
push 0x414a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00404bb0
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov dword [esp + 0x528], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x118]
stosb byte es:[edi], al
call fcn.00402ad0
mov eax, dword [esp + 0x530]
mov byte [esp + 0x528], 1
cmp eax, 1
mov dword [esp + 0x10], ebx
je 0x40238f
push ebx
call fcn.00401f40
add esp, 4
lea eax, [esp + 0x14]
push 0x41ea64
push str._sCSMPAGT.exe
push eax
call fcn.00409aa2
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x11c]
call fcn.00402c50
mov esi, eax
cmp esi, ebx
je 0x4022e4
mov ecx, esi
call fcn.00405820
push esi
call fcn.00405ade
add esp, 4
push ebp
push str.SeDebugPrivilege
call fcn.00406480
add esp, 4
lea ecx, [esp + 0x10]
push 1
push str.CSMPAGT.exe
call fcn.00404bd0
push 1
push str.CSMPRDC.exe
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00404bd0
push 1
push str.winlogon.exe
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00404bd0
push 1
push str.csrss.exe
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00404bd0
test esi, esi
mov ebx, eax
je 0x402251
push 1
push esi
push str.AgtProtect.dll
call fcn.00406610
add esp, 0xc
test edi, edi
je 0x402265
push 1
push edi
push str.AgtProtect.dll
call fcn.00406610
add esp, 0xc
test ebp, ebp
je 0x402279
push 1
push ebp
push str.AgtProtect.dll
call fcn.00406610
add esp, 0xc
test ebx, ebx
pop ebp
je 0x40228e
push 1
push ebx
push str.AgtProtect.dll
call fcn.00406610
add esp, 0xc
push 0x41ed78
call fcn.00402950
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
test esi, esi
je 0x402353
push 0
push esi
call fcn.004027e0
push esi
call fcn.00402900
add esp, 0xc
test eax, eax
je 0x402345
push 0x3e8
call ebx
push 1
push esi
lea ecx, [esp + 0x14]
call fcn.00404ed0
push str.KillProcess_CSMPAGT_failed
call fcn.00405860
add esp, 4
jmp 0x402353
lea edx, [esp + 0x10]
lea ecx, [esp + 0x118]
push edx
push 0x41a480
call fcn.004031b0
mov esi, eax
cmp esi, ebx
jne 0x4021d7
mov eax, dword [esp + 0x10]
mov ecx, dword [0x41ea60]
cmp eax, ecx
je 0x4021e7
lea ecx, [esp + 0x118]
mov byte [esp + 0x528], 0
call fcn.00402b10
lea ecx, [esp + 0xc]
mov dword [esp + 0x528], 0xffffffff
call fcn.00404bc0
mov eax, 1
jmp 0x4023b9
push esi
push str.KillProcess_CSMPAGT__d__success.
call fcn.00405860
add esp, 8
test edi, edi
je 0x40238f
push 0
push edi
call fcn.004027e0
push edi
call fcn.00402900
add esp, 0xc
test eax, eax
je 0x402381
push 0x3e8
call ebx
push 1
push edi
lea ecx, [esp + 0x14]
call fcn.00404ed0
jmp 0x40238f
push edi
push str.KillProcess_CSMPRDC__d__success.
call fcn.00405860
add esp, 8
lea ecx, [esp + 0x118]
mov byte [esp + 0x528], 0
call fcn.00402b10
lea ecx, [esp + 0xc]
mov dword [esp + 0x528], 0xffffffff
call fcn.00404bc0
xor eax, eax
mov ecx, dword [esp + 0x520]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x520
ret
Function at 0x4023e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x41eb6c
push str._sCSAGTCTR.ini
push eax
call fcn.00409aa2
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
add esp, 0xc
lea ecx, [esp]
push ecx
push edx
push eax
push 0x41ed78
push str.Path
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
ja 0x402442
push 0x41eb6c
lea ecx, [esp + 4]
push str._sCSMP_Agent
push ecx
call fcn.00409aa2
add esp, 0xc
mov eax, 1
add esp, 0x104
ret

Function at 0x402750
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402774
mov eax, 1
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4027c1
mov eax, 2
add esp, 0x14
ret
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
add esp, 0x14
ret

Function at 0x4027e0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push esi
push edi
push str.SeDebugPrivilege
call fcn.00406480
mov esi, dword [esp + 0x10]
add esp, 4
test esi, esi
jne 0x402830
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402823
cmp byte [eax], 0
je 0x402823
push eax
call fcn.00405ea0
mov esi, eax
add esp, 4
test esi, esi
jne 0x402830
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
push 0
push 1
push 0
push 0
push str.ExitProcess
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push esi
call fcn.004067d0
mov edi, eax
add esp, 0x18
test edi, edi
je 0x40286b
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
push esi
call fcn.00402900
add esp, 4
test eax, eax
je 0x4028ef
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x402899
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4028b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4028d5
mov edi, eax
jmp 0x4028d8
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4028d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4028d5
mov edi, eax
jmp 0x4028d8
or edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4028ef
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x402a50
Capabilities:
Delete registry key

Disassembly:
push esi
push str.SYSTEMCurrentControlSetControlSafeBootMinimal
push 0x80000002
xor esi, esi
call fcn.004126f0
add esp, 8
test eax, eax
jne 0x402a84
push eax
push str.SYSTEMCurrentControlSetControlSafeBootMinimal
push eax
push str.SYSTEMCurrentControlSetControlSafeBootBkMinimal
push 0x80000002
call fcn.00412570
add esp, 0x14
mov esi, eax
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push 0x80000002
call fcn.004126f0
add esp, 8
test eax, eax
jne 0x402ab9
push eax
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push eax
push str.SYSTEMCurrentControlSetControlSafeBootBkNetwork
push 0x80000002
call fcn.00412570
add esp, 0x14
test eax, eax
je 0x402ab9
mov esi, eax
push str.SYSTEMCurrentControlSetControlSafeBootBk
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, esi
pop esi
ret

Function at 0x403200
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea eax, [ebx + 1]
push eax
call fcn.00409d4e
mov edx, eax
add esp, 4
test edx, edx
jne 0x40322d
pop edi
pop esi
pop ebx
ret 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [edx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x403266
mov cl, byte [eax + edx]
xor cl, 0x1a
mov byte [eax + edx], cl
inc eax
cmp eax, ebx
jl 0x403258
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, edx
mov dword [ecx], ebx
pop ebx
ret 8
Function at 0x403a90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
push edi
je 0x403acd
mov edi, dword [esp + 0x18]
shr edi, 2
je 0x403aeb
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
sub esi, edx
mov eax, dword [esi + edx]
add edx, 4
mov ecx, eax
ror ecx, 8
rol eax, 8
xor eax, ecx
and eax, 0xff00ff
xor eax, ecx
dec edi
mov dword [edx - 4], eax
jne 0x403aad
pop edi
pop esi
ret
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp esi, edi
je 0x403aeb
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x4045b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0x44
test eax, eax
mov dword [esp + 0x40], 1
pop edi
jne 0x4045da
mov word [esp + 0x40], ax
xor eax, eax
mov dword [esp], eax
lea ecx, [esp]
mov dword [esp + 4], eax
lea edx, [esp + 0x10]
mov dword [esp + 8], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esp + 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40461a
xor al, al
add esp, 0x54
ret 8
mov ecx, dword [esp]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov al, 1
pop esi
add esp, 0x54
ret 8