joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009900
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [esp + 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x3c], 0x500
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10009954
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 8]
pop ebx
add esp, 0x10
ret

Function at 0x100099b0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x21c
push esi
mov esi, dword [esp + 0x224]
test esi, esi
jne 0x100099db
mov eax, dword [0x10012370]
push str.URLN
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop esi
add esp, 0x21c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x10012370]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.URLN
push ecx
mov dword [esp + 0x2c], 0x20a
mov dword [esp + 0x28], 1
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10009a2c
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10009a4b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x10012370]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.URLN
push ecx
call edi
mov al, byte [esp + 0x230]
test al, al
je 0x10009a6d
cmp al, 0xfe
jbe 0x10009a64
mov dword [esp + 0xc], 0xfe
jmp 0x10009a75
movzx edx, al
mov dword [esp + 0xc], edx
jmp 0x10009a75
mov dword [esp + 0xc], 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x10012370]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.Next
mov esi, 4
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x10009ab6
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0xc]
je 0x10009acc
mov eax, dword [0x10012370]
push esi
lea edx, [esp + 0x10]
push edx
push esi
push 0
push str.Next
push eax
call edi
pop edi
pop ebx
pop esi
add esp, 0x21c
ret
Function at 0x1000aa60
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
je 0x1000aa79
mov ecx, dword [esp + 4]
mov edi, edi
xor byte [eax + ecx], 0xab
inc eax
cmp eax, edx
jb 0x1000aa70
ret

Function at 0x1000adb0
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x660
push ebx
mov ebx, dword [esp + 0x668]
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push esi
push edi
push eax
push 0x2a
push ebx
lea ecx, [esp + 0x26c]
push str._s_c_s
push ecx
xor esi, esi
call ebp
add esp, 0x14
push 0x250
lea edx, [esp + 0x14]
push edx
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000ae20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
mov eax, dword [esp + 0x10]
test al, 0x10
jne 0x1000ae6c
test eax, eax
je 0x1000ae6c
lea edx, [esp + 0x3c]
push edx
push ebx
lea eax, [esp + 0x268]
push 0x1000e420
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000ae67
push 4
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, 1
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000ae20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret

Function at 0x1000af80
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1000b03f
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [esp + 0x28]
push eax
push 0
push 0
push edi
mov dword [esp + 0x38], 0
call ebp
test eax, eax
je 0x1000b00c
mov eax, dword [esp + 0x28]
push ebx
push esi
push eax
push 8
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10004e00
mov esi, eax
test esi, esi
je 0x1000b00a
lea ecx, [esp + 0x30]
push ecx
push ebx
push esi
push edi
call ebp
test eax, eax
je 0x1000affb
cmp dword [esi + 4], 2
je 0x1000affb
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.1000c9e0
pop esi
pop ebx
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 4
pop ebp
jne 0x1000b024
test eax, eax
jne 0x1000b035
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov eax, 1
pop edi
add esp, 0x1c
ret
xor eax, eax
pop edi
add esp, 0x1c
ret
Function at 0x1000b070
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x228
push ebx
xor ebx, ebx
push edi
mov dword [esp + 0x14], 0x750052
mov dword [esp + 0x18], 0x6e
cmp dword [0x10012380], ebx
je 0x1000b09e
mov eax, dword [0x10012344]
mov ecx, 0x1000e714
jmp 0x1000b0a5
mov ecx, 0x1000e5dc
mov eax, ecx
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x14]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push ecx
push eax
lea eax, [esp + 0x34]
push str._s_s_s_s
push eax
call edi
add esp, 0x18
push ebx
lea ecx, [esp + 0xc]
push ecx
push ebx
xor eax, eax
cmp dword [0x10012380], ebx
push 0xf023f
push ebx
setne al
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x28], ebx
lea eax, [eax + eax - 0x7fffffff]
push eax
call dword [0x1001234c]
test eax, eax
jne 0x1000b22b
cmp dword [esp + 0x234], ebx
je 0x1000b12e
mov ecx, dword [0x10012334]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
add esp, 0x228
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x20a
push 8
mov dword [esp + 0x2c], ebx
call ebp
push eax
call fcn.10004e00
mov esi, eax
cmp esi, ebx
je 0x1000b21e
mov eax, dword [0x10012054]
push str.Silverlight.Configuration.exe
push eax
push str.__s_s_
push esi
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
push str.Silverlight.Configuration.exe
mov dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov dword [esp + 0x30], 1
call ebx
test eax, eax
jne 0x1000b1f5
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx + 2]
push edx
push 8
call ebp
push eax
call fcn.10004e00
mov edi, eax
test edi, edi
je 0x1000b1f5
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push 0
push str.Silverlight.Configuration.exe
push edx
call ebx
test eax, eax
jne 0x1000b1e2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, 1
test eax, eax
je 0x1000b1e6
mov ebx, dword [esp + 0x24]
push edi
push 0
call ebp
push eax
call fcn.1000c9e0
test ebx, ebx
jne 0x1000b213
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.Silverlight.Configuration.exe
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0
call ebp
push eax
call fcn.1000c9e0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
add esp, 0x228
ret
Function at 0x1000b830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x3c]
push ebp
push esi
mov esi, dword [eax + ebx + 0x78]
mov ebp, dword [esi + ebx + 0x24]
mov ecx, dword [esi + ebx + 0x20]
add esi, ebx
push edi
add ecx, ebx
xor edi, edi
add ebp, ebx
mov dword [esp + 0x10], ecx
cmp dword [esi + 0x18], edi
jbe 0x1000b8a3
mov dword [esp + 0x18], 0x10012570
movzx edx, word [ebp + edi*2]
mov eax, dword [esi + 0x10]
add eax, edx
cmp eax, 0x1e
jne 0x1000b89d
cmp eax, 0x20
jne 0x1000b89d
cmp eax, 0x22
jne 0x1000b89d
mov ecx, dword [ecx + edi*4]
mov edx, dword [0x1001256c]
add ecx, ebx
push ecx
push edx
call fcn.1000b260
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, dword [esi + 0x18]
jb 0x1000b861
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1000c660
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000c684
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c67f
mov dword [eax + 4], esi
mov eax, esi
pop edi
pop esi
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000c67f
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1000c681
pop edi
mov dword [ecx + 4], eax
pop esi
ret
Function at 0x1000c6b0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 4]
push eax
xor edi, edi
push edi
push edi
push 5
mov dword [esp + 0x14], edi
call sub.NTDLL.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1000c823
mov eax, dword [esp + 4]
test eax, eax
je 0x1000c823
push ebx
push 4
push 0x1000
push eax
push edi
call fcn.10005120
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x1000c7d5
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push 5
call sub.NTDLL.dll_NtQuerySystemInformation
test eax, eax
js 0x1000c7c5
cmp dword [esp + 8], edi
jbe 0x1000c7c5
mov dword [esp + 0xc], 1
push ebp
lea esp, [esp]
call fcn.1000d040
cmp dword [ebx + 0x44], eax
jne 0x1000c790
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x1000c790
lea eax, [ebx + 0xdc]
mov dword [esp + 0x14], eax
jmp 0x1000c750
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx]
call fcn.10007ee0
cmp ebp, eax
je 0x1000c80f
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000c7dd
push 0x200
mov dword [esi + 4], 0x80
mov edx, dword [0x10012044]
push ecx
push edx
call fcn.10004e00
mov dword [esi], eax
test eax, eax
jne 0x1000c804
mov dword [esp + 0x10], 0
mov eax, dword [ebx]
test eax, eax
je 0x1000c79a
add ebx, eax
jne 0x1000c730
cmp dword [esp + 0x10], 0
pop ebp
jne 0x1000c7bd
mov eax, dword [esi]
test eax, eax
je 0x1000c7bd
mov ecx, dword [0x10012044]
push eax
push 0
push ecx
call fcn.1000c9e0
mov dword [esi], 0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0x8000
push edx
push ebx
call fcn.1000b800
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000c804
add eax, eax
mov dword [esi + 4], eax
add eax, eax
add eax, eax
push eax
push ecx
mov ecx, dword [0x10012044]
push 0
push ecx
call fcn.1000ad70
test eax, eax
je 0x1000c788
mov dword [esi], eax
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov dword [eax + edx*4], ebp
inc dword [esi + 8]
add dword [esp + 0x14], 0x40
inc edi
cmp edi, dword [ebx + 4]
jb 0x1000c750
jmp 0x1000c790
mov eax, edi
pop edi
add esp, 0x10
ret
Function at 0x1000caa0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x100
xor eax, eax
jmp 0x1000cab0
mov byte [esp + eax], al
inc eax
cmp eax, 0x100
jl 0x1000cab0
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx ebx, byte [esp + ecx + 0x10]
movzx eax, word [ebp + edx*2]
add eax, ebx
add esi, eax
and esi, 0x800000ff
jns 0x1000caf4
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + ecx + 0x10], dl
inc ecx
mov byte [esp + esi + 0x10], bl
cmp ecx, 0x100
jl 0x1000cad1
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x1000cb78
mov ebp, dword [esp + 0x11c]
inc esi
and esi, 0x800000ff
jns 0x1000cb32
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x10]
add edi, ecx
and edi, 0x800000ff
jns 0x1000cb49
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
movzx ebx, byte [esp + esi + 0x10]
add ebx, ecx
and ebx, 0x800000ff
jns 0x1000cb6c
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x10]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x1000cb21
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret

Function at 0x1000cb90
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x100
xor eax, eax
jmp 0x1000cba0
mov byte [esp + eax], al
inc eax
cmp eax, 0x100
jl 0x1000cba0
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx ebx, byte [esp + ecx + 0x10]
movzx eax, byte [edx + ebp]
add eax, ebx
add esi, eax
and esi, 0x800000ff
jns 0x1000cbe3
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + ecx + 0x10], dl
inc ecx
mov byte [esp + esi + 0x10], bl
cmp ecx, 0x100
jl 0x1000cbc1
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x1000cc67
mov ebp, dword [esp + 0x11c]
inc esi
and esi, 0x800000ff
jns 0x1000cc21
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x10]
add edi, ecx
and edi, 0x800000ff
jns 0x1000cc38
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
movzx ebx, byte [esp + esi + 0x10]
add ebx, ecx
and ebx, 0x800000ff
jns 0x1000cc5b
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x10]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x1000cc10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret
Function at 0x1000ccc0
Capabilities:
Create thread
Set current directory
Terminate process

Disassembly:
mov eax, dword [0x10012054]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [esp + 0x10]
xor edi, edi
push edi
mov dword [0x10012434], 0x20
mov dword [0x10012438], 2
mov dword [0x1001243c], 0x85
mov dword [0x10012440], edi
mov dword [0x10012444], edi
mov dword [0x10012448], edi
mov dword [0x1001244c], edi
mov ecx, dword [esi]
push 0x10002610
push ecx
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x10012430], eax
cmp eax, edi
je 0x1000cda2
mov edx, dword [esp + 0xc]
mov dword [0x10012438], 4
cmp edx, 1
jbe 0x1000cd54
lea eax, [edi + 1]
jle 0x1000cd54
mov edi, edi
mov ecx, dword [esi + eax*4]
cmp word [ecx], 0x73
jne 0x1000cd4f
cmp word [ecx + 2], di
je 0x1000cd88
inc eax
cmp eax, edx
jl 0x1000cd40
push 4
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10004e00
mov esi, eax
cmp esi, edi
je 0x1000cd88
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push edi
push edi
push esi
push 0x10004770
push edi
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call sub.NTDLL.dll_NtClose
pop edi
pop esi
mov dword [esp + 8], 0x10012434
mov edx, dword [0x10012430]
mov dword [esp + 4], edx
jmp dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0x10012434
push edi
mov dword [0x10012438], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000cee0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
sub esp, 0x78
push esi
push edi
mov edi, dword [esp + 0x84]
xor esi, esi
test edi, edi
je 0x1000d02c
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ebx, [esi + 0x20]
mov dword [esp + 0x18], esi
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x1000cf13
mov ebx, 0x420
push 0x44
lea ecx, [esp + 0x44]
push ecx
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x14]
lea eax, [esp + 0x24]
push ecx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x28], 0x690057
mov dword [esp + 0x2c], 0x73006e
mov dword [esp + 0x30], 0x610074
mov dword [esp + 0x34], 0x5c0030
mov dword [esp + 0x38], 0x650044
mov dword [esp + 0x3c], 0x610066
mov dword [esp + 0x40], 0x6c0075
mov dword [esp + 0x44], 0x74
mov dword [esp + 0x50], eax
call sub.NTDLL.dll_RtlZeroMemory
cmp dword [0x100120b4], esi
jne 0x1000cfd9
mov eax, dword [0x10012388]
lea edx, [esp + 0x10]
push edx
test eax, eax
je 0x1000cfb3
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x94]
push 0
push edx
push ebx
push 0
push 0
push 0
push ecx
push 0
push edi
call eax
jmp 0x1000d003
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x44]
push eax
push 0
push ecx
push ebx
push 0
push 0
push 0
push edx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x1000d003
mov eax, dword [0x10012400]
test eax, eax
je 0x1000d01d
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
push 0
push ecx
push ebx
push edx
push 0
push 0
push edi
call eax
mov esi, eax
test esi, esi
je 0x1000d01d
mov eax, dword [esp + 0x14]
push eax
call sub.NTDLL.dll_NtClose
mov ecx, dword [esp + 0x10]
push ecx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0xc]
pop ebx
test eax, eax
je 0x1000d02c
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
pop edi
mov eax, esi
pop esi
add esp, 0x78
ret

Function at 0x1000d1d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000d1f6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.100036d0
add esp, 0xc
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1000d257
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x214
push esi
push edi
mov edi, dword [esp + 0x224]
xor esi, esi
cmp edi, esi
je 0x1000d22d
mov eax, dword [esp + 0x220]
push eax
call fcn.1000aa80
add esp, 4
test eax, eax
je 0x1000d3d5
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.10009c80
add esp, 0xc
cmp eax, 0x426
jne 0x1000d29a
push 2
push str.TermService
call fcn.10004710
add esp, 8
test eax, eax
je 0x1000d3d5
push str.TermService
call fcn.10005c60
add esp, 4
test eax, eax
je 0x1000d3d5
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.10009c80
add esp, 0xc
cmp eax, esi
jne 0x1000d3d5
call fcn.10008980
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1000aa30
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, esi
je 0x1000d2d0
call fcn.10005d90
test eax, eax
je 0x1000d3d5
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x1000d2fa
xor edx, edx
mov ecx, 0x5c
mov word [esp + eax*2 + 0x14], cx
mov word [esp + eax*2 + 0x16], dx
inc eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebp
push str.termsrvw.dll
lea eax, [esp + eax*2 + 0x20]
push eax
call ebx
cmp edi, esi
jne 0x1000d34d
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x1c]
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..ini
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea ecx, [esp + 0x1c]
push ecx
call ebp
push str._SystemRoot_System32_termsrv.dll
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x1c]
push eax
call fcn.10008f80
mov ebx, dword [esp + 0x14]
add esp, 4
cmp ebx, esi
jle 0x1000d3ac
mov edi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea esp, [esp]
mov ecx, dword [edi + esi*4]
push ecx
call fcn.10005c60
mov edx, dword [edi + esi*4]
add esp, 4
push edx
push 0
call ebp
push eax
call fcn.1000c9e0
inc esi
cmp esi, ebx
jl 0x1000d370
push edi
push 0
call ebp
push eax
call fcn.1000c9e0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x22c]
push str.TermService
call fcn.10005c60
push edi
call fcn.100037d0
push edi
call fcn.10008160
add esp, 0xc
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x214
ret
pop edi
mov eax, esi
pop esi
add esp, 0x214
ret
Function at 0x401090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
xor ebx, ebx
xor edi, edi
mov ecx, 0xaf
test eax, eax
je 0x4011a1
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4011a1
cmp eax, edx
jae 0x4011a1
mov esi, eax
sub edx, esi
mov dword [ebp + 0xc], edx
mov edx, ebx
je 0x4010e0
mov ebx, dword [ebp + 0xc]
lea ecx, [ecx]
mov al, byte [edx + esi + 1]
add al, 0x4b
xor byte [edx + esi], al
inc edx
cmp edx, ebx
jb 0x4010d0
xor ebx, ebx
mov esi, 0x5767
mov eax, 0xd20d20d3
imul esi
add edx, esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4010e5
mov edi, 0x3540
nop
mov eax, 0x3531dec1
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401100
mov eax, 0x2013
mov edx, 0x9c
lea ecx, [ecx]
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x401120
inc ebx
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, ebx
sub eax, ecx
jne 0x40114c
inc ebx
cmp ebx, 0x3fc0
jl 0x401128
inc edi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
sub eax, ecx
jne 0x40117a
add edi, 2
cmp edi, 0x704c
jl 0x401154
mov ecx, 0x7ee6
mov eax, 0xae4c415d
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401187
pop edi
pop esi
pop ebx
pop ebp
ret
inc esi
mov eax, 0x38e38e39
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*8]
sub ecx, eax
jne 0x4011be
add esi, 2
cmp esi, 0x2d96
jl 0x4011a1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
inc byte [ebx + 0x101]
lea eax, [ebx + 1]
mov dword [ebp - 4], eax
mov al, byte [ebx + 0x101]
push edi
mov edi, 0x7807
mov esi, 0x5692
mov ecx, 0x2e
mov byte [ebp + 0xb], al
mov edi, edi
mov eax, 0x214d0215
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402e50
movzx edi, byte [ebp + 0xb]
movzx edx, byte [edi + ebx + 1]
movzx eax, byte [ebx + 0x114]
add edi, ebx
add eax, edx
mov byte [ebx + 0x114], al
mov dl, byte [edi + 1]
movzx eax, al
add ebx, eax
movzx eax, byte [ebx + 1]
mov byte [edi + 1], al
mov byte [ebx + 1], dl
nop
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402e90
mov dl, byte [edi + 1]
add dl, byte [ebx + 1]
mov eax, 0x3884
mov esi, 0xc
cmp ecx, esi
cmovl ecx, esi
dec eax
jne 0x402eb3
mov ecx, dword [ebp - 4]
movzx eax, dl
pop edi
mov al, byte [eax + ecx]
movzx ecx, byte [ebp + 0xc]
movzx eax, al
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret