joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a2d
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [0x496b98], ecx
mov dword [ebp - 0xc], edi
xor ebx, ebx
jmp 0x404a55
call fcn.00426fde
test al, al
jne 0x404a5d
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x404a4a
sub ecx, edi
sar ecx, 1
mov eax, 0x400
cmp ecx, eax
jle 0x404a6c
mov ecx, eax
lea esi, [ecx + ecx]
push esi
lea eax, [ebp - 0x820]
push edi
push eax
call fcn.0046c720
add esp, 0xc
push edi
mov word [ebp + esi - 0x820], bx
mov byte [0x49a003], bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea eax, [edi + 0x226]
push eax
lea ecx, [ebp - 4]
call fcn.0042c415
mov eax, dword [ebp - 4]
push 0x1cc
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
cmp ecx, ebx
jle 0x404bcd
mov eax, dword [ebp - 4]
mov word [eax + ecx*2 + 2], bx
mov eax, dword [ebp - 4]
lea esi, [eax + ecx*2 + 2]
mov dword [ebp - 8], esi
lea edx, [eax + 2]
xor esi, esi
mov word [eax], 0x22
jmp 0x404af3
mov ax, word [edx]
call fcn.00426fde
test al, al
je 0x404af1
xor esi, esi
inc esi
inc edx
inc edx
cmp edx, dword [ebp - 8]
jb 0x404ae2
cmp si, bx
mov edx, dword [ebp - 4]
lea eax, [edx + 2]
mov dword [ebp - 8], eax
je 0x404b14
dec eax
dec eax
mov word [edx + ecx*2 + 2], 0x22
inc ecx
mov dword [ebp - 8], eax
inc ecx
push 0x1e
lea esi, [eax + ecx*2]
push 0x480fdc
push esi
call fcn.0046c720
push edi
push dword [ebp - 0xc]
add esi, 0x1e
push esi
call fcn.00403c15
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x404bbf
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x820]
push ebx
push 2
push 0x110
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
je 0x404bbf
push eax
call esi
push 0x20000000
lea eax, [ebp - 0x820]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x404bb8
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x404ba6
push 0x480fd0
jmp 0x404bab
push 0x480fc4
call fcn.00403218
pop ecx
push dword [ebp - 0xc]
call esi
jmp 0x404bca
push 0x480fb8
jmp 0x404bc4
push 0x480fac
call fcn.00403218
pop ecx
push edi
call esi
lea ecx, [ebp - 4]
call fcn.0042704a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404bda
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edx, esi
xor ebx, ebx
jmp 0x404bfc
call fcn.00426fde
test al, al
jne 0x404c04
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x404bf1
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x404c15
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.0046c720
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x404c35
inc esi
inc esi
mov ax, word [esi]
call fcn.00426fde
test al, al
jne 0x404c33
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
je 0x404cc8
push 0x10020
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp + 8], eax
je 0x404cc8
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x404c91
push 0x48102c
call fcn.00403218
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0xc8
push edi
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x404cb3
push 0x481020
jmp 0x404cb8
push 0x481014
call fcn.00403218
pop ecx
push dword [ebp + 8]
call ebx
push edi
call esi
jmp 0x404ce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x404cdc
push 0x481008
jmp 0x404ce1
push 0x480ffc
call fcn.00403218
pop ecx
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404dd7
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
push ebx
push esi
push edi
mov esi, 0x481038
lea edi, [ebp - 0x7f8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x1f9
lea edi, [ebp - 0x7e6]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
call fcn.00402fd9
mov edx, eax
mov ecx, edx
call fcn.004030a0
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x404e25
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.00403c15
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
push 0x64
xor edi, edi
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov word [ebp + esi*2 - 0x7e8], di
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
je 0x404e9a
push edi
push edi
push edi
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x404e9a
push 0x64
push edi
push esi
call fcn.00402fec
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x4950c4], eax
mov dword [0x496b9c], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a029
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x496c30
mov dword [0x496c30], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x496c34], 5
je 0x40a051
xor eax, eax
leave
ret
mov eax, dword [0x496c38]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x40a06c
dec eax
jne 0x40a0ed
mov ebx, 0x39000
jmp 0x40a071
mov ebx, 0x30000
push esi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [0x496d44]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x496d54
push esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [0x496bf8]
cmp eax, 0xc0000022
jne 0x40a0e8
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [0x496bf8]
push dword [0x496d54]
call fcn.00409f5b
pop ecx
push dword [0x496d54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [0x496bf8]
cmp eax, edi
pop esi
jge 0x40a0f1
xor eax, eax
jmp 0x40a115
push 0x1000
push ebx
push edi
push 6
push dword [0x496d54]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x496d50], eax
neg eax
sbb eax, eax
and eax, dword [0x496d54]
pop edi
pop ebx
leave
ret

Function at 0x40a119
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40a132
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x40a145
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x40a18d
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x496d54]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3ff
mov ecx, dword [eax + ecx*4]
test ecx, 1
jne 0x40a17a
xor eax, eax
jmp 0x40a18f
mov esi, ecx
xor esi, edi
and esi, 0xfff
push eax
xor esi, ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
pop edi
ret

Function at 0x40a192
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x496d50]
call fcn.0040a119
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x496d54]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x40a1c7
pop esi
ret
shr esi, 2
and esi, 0x3ff
mov esi, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
ret
Function at 0x40a433
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x80000000
push dword [ebp + 8]
call fcn.0040a3b3
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x40a4ca
push esi
push eax
call fcn.0040a411
mov esi, dword [ebp + 0x10]
test esi, esi
pop ecx
mov dword [ebp - 8], eax
je 0x40a465
mov dword [esi], eax
jmp 0x40a468
lea esi, [ebp - 8]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40a48e
add eax, 0x10
push eax
lea ecx, [ebp + 0xc]
call fcn.0042c29e
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.0042704a
test edi, edi
je 0x40a4be
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp + 0xc]
push eax
push dword [esi]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x40a4ad
xor eax, eax
push 6
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.0046c4e0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x40a4cd
mov edi, dword [ebp + 0xc]
mov eax, edi
pop edi
leave
ret

Function at 0x40abb2
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
jb 0x40abc7
mov eax, dword [esp + 4]
mov dword [ecx + 0xc], eax
cmp word [eax], 0x5a4d
je 0x40abcb
xor eax, eax
jmp 0x40ac36
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jae 0x40abdf
xor eax, eax
jmp 0x40ac35
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x40abdb
mov dx, word [eax + 0x16]
test dh, 0x20
je 0x40abdb
test dl, 2
je 0x40abdb
cmp word [eax + 0x14], 0xe0
jne 0x40abdb
mov esi, dword [ecx + 0x10]
add eax, 0xf8
xor edx, edx
mov dword [ecx + 0x14], eax
cmp word [esi + 6], dx
jbe 0x40ac32
add eax, 0x10
mov esi, dword [eax + 4]
add esi, dword [eax]
cmp esi, dword [esp + 0xc]
ja 0x40abdb
mov esi, dword [ecx + 0x10]
movzx esi, word [esi + 6]
inc edx
add eax, 0x28
cmp edx, esi
jl 0x40ac18
xor eax, eax
inc eax
pop esi
ret 8

Function at 0x40ad67
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x496de4], ebx
push esi
je 0x40adcd
cmp byte [ebp + 8], bl
je 0x40adcd
mov eax, dword [0x496ea8]
cmp word [eax], bx
je 0x40adcd
test byte [0x497174], 2
mov esi, eax
je 0x40adae
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push dword [0x496de4]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x40adcd
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 4]
push ecx
shl eax, 1
push eax
push esi
push dword [0x496de4]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, 0x10000
push esi
mov ecx, 0x496ea8
call fcn.0042c43e
mov eax, dword [0x496ea8]
mov word [eax], bx
mov dword [0x496eb0], esi
pop esi
mov dword [0x496eac], ebx
pop ebx
leave
ret
Function at 0x40b206
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], esi
je 0x40b23e
cdq
jmp 0x40b251
cmp dword [ebp + 0xc], esi
je 0x40b24b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x40b251
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x40b65c
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebp, dword [esp + 0x38]
mov esi, eax
add esi, ebp
xor ebx, ebx
cmp ebp, 0x4e20
jb 0x40b684
push ebx
call fcn.00428814
pop ecx
cmp ebp, ebx
jg 0x40b701
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b70b
cmp byte [0x495280], bl
jle 0x40b70b
cmp ecx, 0x7d0
jbe 0x40b6a8
mov ecx, 0x3e8
jmp 0x40b6b0
cmp ecx, 0x64
jbe 0x40b6b0
push 0x64
pop ecx
push 0x4bf
push ecx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x40b6f9
call edi
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x40b701
push 3
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40b701
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x495280], bl
jg 0x40b6c5
call edi
mov ecx, esi
sub ecx, eax
cmp ecx, ebx
jg 0x40b691
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4

Function at 0x40b717
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x325
lea ecx, [ebp - 8]
call fcn.0042c415
mov esi, dword [ebp - 8]
push esi
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
push ebx
call edi
push esi
call edi
cmp word [esi], 0
je 0x40b7ab
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.0040b254
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x40b79a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x40b794
dec eax
jne 0x40b79a
mov ax, word [esi]
mov word [edi + 2], ax
mov cx, word [esi]
xor eax, eax
inc eax
cmp cx, word [ebx]
mov dword [ebp - 4], eax
jb 0x40b79a
mov esi, eax
jmp 0x40b7ae
mov ax, word [esi]
mov word [edi], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40b761
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40bcbd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x481d64
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov edi, 0x496eb8
movsx ax, byte [ebp - 2]
add eax, 0x41
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x40bd57
movsx ebx, byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.HKLMSYSTEMCurrentControlSetControlSession_ManagerEnvironmentCDROM_u_s
push eax
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00445529
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.CDROM_u
push eax
call esi
add esp, 0x10
inc byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0042af0d
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x40bce7
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x40bd7b
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.00420c52
leave
ret

Function at 0x40c032
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40c050
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
ret

Function at 0x40c0b1
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 8]
call fcn.0042c3f7
lea ecx, [ebp - 4]
call fcn.0042c3f7
push 0x2c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
test edi, edi
je 0x40c192
and word [edi], 0
push ebx
push 1
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov esi, 0x496eb8
mov ecx, esi
call fcn.0043d4de
mov ebx, dword [ebp - 8]
push 1
push 0
lea eax, [ebp - 4]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.0043d4de
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x40c149
lea ecx, [ebp + 8]
call fcn.00409e64
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 8]
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
jmp 0x40c185
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
shl eax, 1
push eax
push ebx
push 1
push str.RegisteredOwner
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push edi
mov ebx, 0x80000002
push ebx
call fcn.00427da9
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push str.RegisteredOrganization
push edi
push ebx
call fcn.00427da9
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x40c195
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.0042704a
lea ecx, [ebp - 8]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40c690
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x40c6a1
call fcn.0040c635
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x40c6b5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
dec eax
js 0x40c6c1
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x40c6b9
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x40c7e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
and dword [ebp - 8], 0
or dword [ebp - 4], 0xffffffff
and dword [ebp - 0x10], 0
cmp byte [0x496f60], 0
mov dword [ebp - 0xc], 4
jne 0x40c8b0
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SysStartuped
push ebx
mov edi, str.SOFTWAREPELOGON
push edi
mov esi, 0x80000002
push esi
mov byte [0x496f60], 1
call fcn.00427d32
add esp, 0x18
cmp dword [ebp - 8], 0
jne 0x40c8ad
push 1
push 0x25
lea eax, [ebp - 0x2e0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.SysStartup.ini
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2e0]
push eax
call fcn.0046c1b3
test eax, eax
pop ecx
je 0x40c885
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push edi
push esi
call fcn.00427da9
add esp, 0x18
cmp dword [ebp - 4], 1
jne 0x40c8ad
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2e0]
push eax
call fcn.0041cfc7
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c96a
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x496dc8], 0
jne 0x40c98d
push 0
push dword [0x496dd4]
push 0x40c8b2
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x496dc8], eax
ret

Function at 0x40cd57
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x40cd72
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40cdc1
cmp dword [ebp - 0x224], esi
je 0x40cdc7
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40cdac
jmp 0x40cdcd
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x40cd72
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40ceba
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x40cede
cmp dword [ebp + 0xc], 2
jne 0x40cf0d
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40cee1
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x40cef1
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x496eb8
call fcn.0042af0d
pop esi
pop edi
pop ebp
ret

Function at 0x40cfa0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x496ec5], 1
call fcn.0042c415
push 0x822
push 0
push dword [ebp - 4]
call fcn.0046c4e0
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov esi, 0x496eb8
push esi
call fcn.0042e3da
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.0042e3da
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0x18
push edi
push 0x4820b2
call esi
push edi
mov ebx, 0x496eb8
push str.MyName
mov ecx, ebx
call fcn.0042af0d
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x40d057
lea edi, [eax + 2]
push edi
push 0x48209e
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.0042af0d
xor edi, edi
push edi
push edi
push str.Desktop
call fcn.0040cf10
push edi
push edi
push str.Favorites
call fcn.0040cf10
push edi
push edi
push str.Programs
call fcn.0040cf10
push edi
push edi
push str.SendTo
call fcn.0040cf10
push edi
push edi
push str.Personal
call fcn.0040cf10
push edi
push str.Start_Menu
push 0x481774
call fcn.0040cf10
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.0040cf10
push edi
push edi
push str.Startup
call fcn.0040cf10
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.0040cf10
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.0042704a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d118
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.0046cf20
push esi
mov esi, 0x495284
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x40d13e
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x496eb8
call fcn.0042af0d
add esi, 4
cmp esi, 0x495298
jl 0x40d12b
pop esi
leave
ret