joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418ea8
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 0x418eca
call fcn.0041ed7f
test al, al
jne 0x418ed2
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x418ebf
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x418ee3
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.004b4dd0
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x418f03
inc esi
inc esi
mov ax, word [esi]
call fcn.0041ed7f
test al, al
jne 0x418f01
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 0x418f96
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 0x418f96
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x418f5f
push 0x4f3e8c
call fcn.00416eda
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 0x418f81
push 0x4f3e80
jmp 0x418f86
push 0x4f3e74
call fcn.00416eda
pop ecx
push dword [ebp + 8]
call ebx
push edi
call esi
jmp 0x418fb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x418faa
push 0x4f3e68
jmp 0x418faf
push 0x4f3e5c
call fcn.00416eda
pop ecx
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4190a5
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
push ebx
push esi
push edi
mov esi, 0x4f3e98
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.00416c9b
mov edx, eax
mov ecx, edx
call fcn.00416d62
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x4190f3
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.00417dcd
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 0x419168
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 0x419168
push 0x64
push edi
push esi
call fcn.00416cae
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x519180], eax
mov dword [0x51c768], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ef7e
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x51d028
mov dword [0x51d028], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x51d02c], 5
je 0x41efa6
xor eax, eax
leave
ret
mov eax, dword [0x51d030]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x41efc1
dec eax
jne 0x41f042
mov ebx, 0x39000
jmp 0x41efc6
mov ebx, 0x30000
push esi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [0x51d13c]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x51d14c
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 [0x51cff0]
cmp eax, 0xc0000022
jne 0x41f03d
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [0x51cff0]
push dword [0x51d14c]
call fcn.0041eeb0
pop ecx
push dword [0x51d14c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [0x51cff0]
cmp eax, edi
pop esi
jge 0x41f046
xor eax, eax
jmp 0x41f06a
push 0x1000
push ebx
push edi
push 6
push dword [0x51d14c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x51d148], eax
neg eax
sbb eax, eax
and eax, dword [0x51d14c]
pop edi
pop ebx
leave
ret

Function at 0x41f06e
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 0x41f087
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x41f09a
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x41f0e2
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x51d14c]
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 0x41f0cf
xor eax, eax
jmp 0x41f0e4
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 0x41f0e7
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x51d148]
call fcn.0041f06e
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x51d14c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x41f11c
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 0x41f3a1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push SysReAllocStringLen
push dword [ebp + 8]
call fcn.0041f321
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x41f438
push esi
push eax
call fcn.0041f37f
mov esi, dword [ebp + 0x10]
test esi, esi
pop ecx
mov dword [ebp - 8], eax
je 0x41f3d3
mov dword [esi], eax
jmp 0x41f3d6
lea esi, [ebp - 8]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x41f3fc
add eax, 0x10
push eax
lea ecx, [ebp + 0xc]
call fcn.004492b0
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.00443880
test edi, edi
je 0x41f42c
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 0x41f41b
xor eax, eax
push 6
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.004b4840
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x41f43b
mov edi, dword [ebp + 0xc]
mov eax, edi
pop edi
leave
ret

Function at 0x41f440
Capabilities:
Delete file

Disassembly:
mov eax, 0x4e8d16
call fcn.004b48a0
sub esp, 0xc
push esi
push edi
mov esi, 0x51d5ec
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00416b67
pop ecx
push dword [ebp + 8]
mov byte [ebp - 0x14], al
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x14], 0
mov edi, eax
je 0x41f48d
push dword [ebp - 0x18]
call fcn.00416b78
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41fb6c
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
jb 0x41fb81
mov eax, dword [esp + 4]
mov dword [ecx + 0xc], eax
cmp word [eax], 0x5a4d
je 0x41fb85
xor eax, eax
jmp 0x41fbf0
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jae 0x41fb99
xor eax, eax
jmp 0x41fbef
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x41fb95
mov dx, word [eax + 0x16]
test dh, 0x20
je 0x41fb95
test dl, 2
je 0x41fb95
cmp word [eax + 0x14], 0xe0
jne 0x41fb95
mov esi, dword [ecx + 0x10]
add eax, 0xf8
xor edx, edx
mov dword [ecx + 0x14], eax
cmp word [esi + 6], dx
jbe 0x41fbec
add eax, 0x10
mov esi, dword [eax + 4]
add esi, dword [eax]
cmp esi, dword [esp + 0xc]
ja 0x41fb95
mov esi, dword [ecx + 0x10]
movzx esi, word [esi + 6]
inc edx
add eax, 0x28
cmp edx, esi
jl 0x41fbd2
xor eax, eax
inc eax
pop esi
ret 8
Function at 0x41fd21
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x51d1dc], ebx
push esi
je 0x41fd87
cmp byte [ebp + 8], bl
je 0x41fd87
mov eax, dword [0x51d33c]
cmp word [eax], bx
je 0x41fd87
test byte [0x51d584], 2
mov esi, eax
je 0x41fd68
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push dword [0x51d1dc]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x41fd87
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 [0x51d1dc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, 0x10000
push esi
mov ecx, 0x51d33c
call fcn.004494e0
mov eax, dword [0x51d33c]
mov word [eax], bx
mov dword [0x51d344], esi
pop esi
mov dword [0x51d340], ebx
pop ebx
leave
ret

Function at 0x420256
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 0x42028e
cdq
jmp 0x4202a1
cmp dword [ebp + 0xc], esi
je 0x42029b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x4202a1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x420512
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4e8d39
call fcn.004b48a0
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x68]
mov dword [ebp - 0x10], esi
call fcn.0041ed47
xor ebx, ebx
lea ecx, [esi + 0x90]
mov dword [ebp - 4], ebx
call fcn.00449480
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 1
call fcn.00449290
mov ecx, dword [ebp - 0xc]
mov eax, SysReAllocStringLen
mov dword [esi + 0x48], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov word [esi + 0x98], bx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0xb0], ebx
mov byte [esi + 0xa4], bl
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x80], bl
mov dword [esi + 0xbc], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xc0], 0x12d
mov word [esi + 0xc4], 0x131
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42072b
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 0x420753
push ebx
call fcn.00445820
pop ecx
cmp ebp, ebx
jg 0x4207d0
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4207da
cmp byte [0x519300], bl
jle 0x4207da
cmp ecx, 0x7d0
jbe 0x420777
mov ecx, 0x3e8
jmp 0x42077f
cmp ecx, 0x64
jbe 0x42077f
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 0x4207c8
call edi
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4207d0
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 0x4207d0
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 [0x519300], bl
jg 0x420794
call edi
mov ecx, esi
sub ecx, eax
cmp ecx, ebx
jg 0x420760
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4

Function at 0x4207e6
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.004494b0
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 0x42087a
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.004202a4
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x420869
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x420863
dec eax
jne 0x420869
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 0x420869
mov esi, eax
jmp 0x42087d
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 0x420830
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00443880
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420e00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x4f4c44
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, 0x51d2a0
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 0x420e9a
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.00471cd0
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.00448be0
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x420e2a
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x420ebe
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.00437b3d
leave
ret

Function at 0x42118e
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 0x4211ac
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
ret
Function at 0x42121b
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x4e92f6
call fcn.004b48a0
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.00449480
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00449480
push 0x2c
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
cmp edi, esi
je 0x42130a
push ebx
push 1
push esi
lea eax, [ebp - 0x14]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x51d2a0
mov ecx, esi
call fcn.00454330
mov ebx, dword [ebp - 0x14]
push 1
push 0
lea eax, [ebp - 0x10]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.00454330
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
je 0x4212c1
lea ecx, [ebp + 8]
call fcn.0041edaf
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 SysReAllocStringLen
jmp 0x4212fd
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, SysReAllocStringLen
push ebx
call fcn.00444820
add esp, 0x18
push dword [ebp - 0x18]
call esi
shl eax, 1
push eax
push dword [ebp - 0x18]
push 1
push str.RegisteredOrganization
push edi
push ebx
call fcn.00444820
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x42130d
xor esi, esi
inc esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.00443880
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00443880
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x421852
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x421863
call fcn.004217f7
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x421877
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
dec eax
js 0x421883
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x42187b
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret
Function at 0x4219d4
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 [0x51d35c], 0
mov dword [ebp - 0xc], 4
jne 0x421a9b
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, SysReAllocStringLen
push esi
mov byte [0x51d35c], 1
call fcn.00444780
add esp, 0x18
cmp dword [ebp - 8], 0
jne 0x421a98
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.004b0cb0
test eax, eax
pop ecx
je 0x421a70
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push edi
push esi
call fcn.00444820
add esp, 0x18
cmp dword [ebp - 4], 1
jne 0x421a98
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2e0]
push eax
call fcn.00433888
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421b6d
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x51d1c0], 0
jne 0x421b90
push 0
push dword [0x51d1cc]
push 0x421a9d
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x51d1c0], eax
ret

Function at 0x421f85
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 0x421fa0
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 0x421fef
cmp dword [ebp - 0x224], esi
je 0x421ff5
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x421fda
jmp 0x421ffb
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 0x421fa0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4220e8
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x42210c
cmp dword [ebp + 0xc], 2
jne 0x42213b
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x42210f
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x42211f
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, 0x51d2a0
call fcn.00448be0
pop esi
pop edi
pop ebp
ret
Function at 0x4221e6
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x4e8d5d
call fcn.004b48a0
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 0x10]
mov byte [0x51d2ad], 1
call fcn.004494b0
xor esi, esi
push 0x822
push esi
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004b4840
mov edi, dword [ebp - 0x10]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov esi, 0x51d2a0
push esi
call fcn.0044bf50
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.0044bf50
push str.PE_MENU_IDBASE
push 0x100
push esi
call fcn.0044bf50
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x4f4f92
call esi
push edi
mov ebx, 0x51d2a0
push str.MyName
mov ecx, ebx
call fcn.00448be0
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x4222b7
lea edi, [eax + 2]
push edi
push 0x4f4f7e
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.00448be0
xor edi, edi
push edi
push edi
push str.Desktop
call fcn.0042213e
push edi
push edi
push str.Favorites
call fcn.0042213e
push edi
push edi
push str.Programs
call fcn.0042213e
push edi
push edi
push str.SendTo
call fcn.0042213e
push edi
push edi
push str.Personal
call fcn.0042213e
push edi
push str.Start_Menu
push 0x4f465c
call fcn.0042213e
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.0042213e
push edi
push edi
push str.Startup
call fcn.0042213e
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.0042213e
or dword [ebp - 4], 0xffffffff
add esp, 0x24
lea ecx, [ebp - 0x10]
call fcn.00443880
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4223af
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.004b3e50
push esi
mov esi, 0x519304
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 0x4223d5
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, 0x51d2a0
call fcn.00448be0
add esi, 4
cmp esi, 0x519318
jl 0x4223c2
pop esi
leave
ret

Function at 0x422613
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
mov dword [ebp - 4], eax
je 0x42265c
push 0x11
lea eax, [ebp - 4]
push eax
push str.PECMDpecmd_cmd
call fcn.00443910
add esp, 0xc
test eax, eax
je 0x422640
xor eax, eax
inc eax
leave
ret
push 0x12
lea eax, [ebp - 4]
push eax
push str.PECMDpecmd_cmd2
call fcn.00443910
add esp, 0xc
test eax, eax
je 0x42265c
push 2
pop eax
leave
ret
xor eax, eax
leave
ret