joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402baa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404128
push 0x402ce2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x405274], 0xffffffff
or dword [0x405278], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x405270]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40526c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40527c], eax
call fcn.00402ce1
cmp dword [0x405250], 0
jne 0x402c2d
push 0x402cde
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402ccc
push 0x40500c
push 0x405008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x405268]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x405264]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x405004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00402240
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x10001390
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push edi
push 0xf01ff
push eax
push ecx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x100013ec
lea edx, [esp + 8]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100013e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x100013e0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret
push esi
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x10001cf0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x1004a610]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10001d30
push 0x40
push 0x2000
push 0x20000
push 0
call esi
test eax, eax
mov dword [0x1004a610], eax
jne 0x10001d1b
pop esi
ret
xor ecx, ecx
mov dword [0x1004a61c], eax
mov dword [0x1004a614], ecx
mov dword [0x1004a618], ecx
jmp 0x10001d36
mov ecx, dword [0x1004a614]
mov edx, dword [0x1004a61c]
sub edx, eax
add edx, 0x60
cmp edx, ecx
jbe 0x10001d72
cmp ecx, 0x20000
jl 0x10001d51
xor eax, eax
pop esi
ret
push 0x40
add ecx, 0x1000
push 0x1000
push ecx
push eax
call esi
test eax, eax
jne 0x10001d68
pop esi
ret
add dword [0x1004a614], 0x1000
push edi
mov edi, dword [0x1004a61c]
mov ecx, 0x18
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [0x1004a618]
mov ecx, dword [0x1004a61c]
inc esi
mov eax, ecx
add ecx, 0x60
mov dword [0x1004a618], esi
pop edi
mov dword [0x1004a61c], ecx
pop esi
ret
Function at 0x10002160
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x10002178
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x10002191
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ebp, ebp
call fcn.10030921
mov ecx, dword [edi + 0x50]
and eax, 0x7fff
push 4
push 0x2000
shl eax, 0x10
push ecx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x100021c6
inc ebp
cmp ebp, 0xa
jb 0x10002199
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], eax
mov edx, dword [edi + 0x50]
push edx
push ebx
call esi
mov eax, dword [edi + 0x54]
push 4
push 0x1000
push eax
push ebx
call esi
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0x54]
push ebp
mov edi, dword [esi + 0x3c]
add ecx, edi
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebp], eax
mov dword [eax + 0x34], ebx
call fcn.10002290
mov eax, dword [esi + 0x34]
add esp, 0xc
sub ebx, eax
je 0x1000224e
push ebx
push ebp
call fcn.10002420
add esp, 8
push ebp
call fcn.100024a0
add esp, 4
test eax, eax
push ebp
jne 0x1000226c
call fcn.10002690
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.10002360
mov eax, dword [ebp]
add esp, 4
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x10002285
mov dword [ebp + 0x10], 1
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10002290
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10002351
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x100022fb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x1000232f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x1000232f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x100022be
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10002360
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x10002419
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x100023b7
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100023ff
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x10046ac0]
je 0x100023d1
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x100023ec
test al, 0x40
je 0x100023e3
mov ecx, dword [ebx + 0x20]
jmp 0x100023ea
test al, 0x80
je 0x100023ff
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x100023ff
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10002384
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10002790
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
push edi
jne 0x1000279f
pop edi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100027c8
pop edi
xor eax, eax
pop ebx
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.10030d66
add esp, 4
lea edx, [esp + 0x14]
mov dword [ebx], eax
push 0
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10002802
mov dword [eax], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
ret

Function at 0x10002820
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
test ebx, ebx
je 0x10002877
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10002877
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002877
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100049e0
Capabilities:
Check os version
Create thread
Terminate thread

Disassembly:
sub esp, 0x49c
push ebx
mov ebx, dword [esp + 0x4a8]
push ebp
mov ebp, dword [sym.imp.ntdll.dll_NtQueryObject]
push esi
mov esi, dword [esp + 0x4ac]
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0xb0]
push 0
push ecx
push 1
push esi
mov dword [esp + 0x24], 0
mov word [ebx], 0
call ebp
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004aad
cmp dword [esp + 0x1c], 5
jne 0x10004a55
cmp dword [esp + 0x20], 2
je 0x10004aad
push 0
lea eax, [esp + 0xb0]
push 0x400
push eax
push 1
push esi
call ebp
test eax, eax
jl 0x10004ae8
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x10004ae8
test ebx, ebx
je 0x10004a9d
mov ax, word [ecx]
mov edx, ebx
test ax, ax
je 0x10004a97
add ecx, 2
mov word [edx], ax
add edx, 2
mov ax, word [ecx]
test ax, ax
jne 0x10004a86
mov cx, word [ecx]
mov word [edx], cx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x49c
ret
lea edx, [esp + 0x14]
push edx
push 0
push esi
push 0x10004b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0
push 0x32
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0x102
jne 0x10004af5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x49c
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [esp + 0xb0]
push 0x400
push eax
push 1
push esi
call ebp
test eax, eax
jl 0x10004ae8
test ebx, ebx
je 0x10004b44
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x10004b44
mov ax, word [ecx]
mov edx, ebx
test ax, ax
je 0x10004b3e
add ecx, 2
mov word [edx], ax
add edx, 2
mov ax, word [ecx]
test ax, ax
jne 0x10004b2d
mov cx, word [ecx]
mov word [edx], cx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x49c
ret
Function at 0x10005100
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [ebp - 0xc], 0
jne 0x1000511a
xor eax, eax
jmp 0x1000512f
cmp word [ebx], 0
mov eax, ebx
je 0x1000512b
add eax, 2
cmp word [eax], 0
jne 0x10005122
sub eax, ebx
sar eax, 1
push edi
lea edi, [eax + eax]
mov dword [ebp - 8], edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x10]
mov dx, word [eax + 0x38]
mov word [ebp - 2], dx
mov dx, word [ebp - 8]
mov word [eax + 0x38], dx
mov dx, word [eax + 0x3a]
mov word [ebp - 0x10], dx
mov dx, word [ebp - 8]
add dx, 2
mov word [eax + 0x3a], dx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
and ecx, 0xffff
test esi, esi
je 0x100051cf
cmp ecx, 8
jae 0x10005188
test ecx, ecx
jbe 0x100051cf
xor eax, eax
mov edi, esi
jmp 0x100051bb
push 4
push ecx
call fcn.1003114a
mov ebx, eax
add esp, 8
mov ecx, edx
mov edx, esi
test ebx, ebx
mov dword [ebp - 0x10], ecx
jle 0x100051b1
mov ecx, ebx
xor eax, eax
mov edi, esi
lea edx, [esi + ebx*4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100051cc
jle 0x100051cc
xor eax, eax
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 8]
and edi, 0xffff
add edi, 2
mov ecx, edi
pop edi
test esi, esi
je 0x100051fa
test ebx, ebx
je 0x100051fa
test ecx, ecx
je 0x100051fa
dec ecx
mov edx, ebx
mov eax, esi
sub edx, esi
lea esi, [ecx + 1]
mov cl, byte [edx + eax]
mov byte [eax], cl
inc eax
dec esi
jne 0x100051f1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b3a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
test eax, eax
push edi
je 0x1000b3f2
push ebx
push esi
push 4
push 0x94
xor ebx, ebx
call fcn.1003114a
mov esi, eax
add esp, 8
test esi, esi
lea edi, [esp + 0xc]
jle 0x1000b3da
mov ecx, esi
mov eax, ebx
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea edi, [esp + esi*4 + 0xc]
pop esi
pop ebx
test edx, edx
je 0x1000b3f2
jle 0x1000b3f2
mov ecx, edx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
pop edi
cmp eax, 6
jne 0x1000b41c
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x1000b41e
xor eax, eax
add esp, 0x94
ret

Function at 0x1000b430
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
test eax, eax
push edi
je 0x1000b482
push ebx
push esi
push 4
push 0x94
xor ebx, ebx
call fcn.1003114a
mov esi, eax
add esp, 8
test esi, esi
lea edi, [esp + 0xc]
jle 0x1000b46a
mov ecx, esi
mov eax, ebx
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea edi, [esp + esi*4 + 0xc]
pop esi
pop ebx
test edx, edx
je 0x1000b482
jle 0x1000b482
mov ecx, edx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
pop edi
cmp eax, 5
jne 0x1000b4ac
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x1000b4ae
xor eax, eax
add esp, 0x94
ret
Function at 0x1002cc50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x400
push ebx
mov ebx, dword [esp + 0x408]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x1002cd30
mov edi, dword [esp + 0x414]
test edi, edi
je 0x1002cd30
cmp byte [esi], 0
je 0x1002cc8d
mov eax, dword [esi + 4]
push eax
call fcn.10030d5b
add esp, 4
mov byte [esi], 0
push edi
mov dword [esi + 8], edi
call fcn.10030d66
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x1002cd30
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002ccbc
dec ecx
mov edx, ebx
sub edx, eax
lea edi, [ecx + 1]
mov cl, byte [edx + eax]
mov byte [eax], cl
inc eax
dec edi
jne 0x1002ccb3
push ebp
xor ecx, ecx
lea edi, [esi + 0x14]
lea ebp, [esp + 0x10]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
sub ebp, edi
mov eax, ecx
xor edx, edx
mov dword [edi], ecx
add edi, 4
div dword [esi + 8]
xor eax, eax
inc ecx
cmp ecx, 0x100
mov al, byte [edx + ebx]
mov dword [edi + ebp - 4], eax
jb 0x1002ccce
xor eax, eax
lea edi, [esp + 0x10]
lea ecx, [esi + 0x14]
mov ebx, 0x100
mov edx, dword [ecx]
mov ebp, dword [edi]
add ebp, edx
add edi, 4
add ebp, eax
add ecx, 4
and ebp, 0xff
dec ebx
mov eax, ebp
mov ebp, dword [esi + eax*4 + 0x14]
mov dword [ecx - 4], ebp
mov dword [esi + eax*4 + 0x14], edx
jne 0x1002ccfa
pop ebp
mov byte [esi], 1
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x400
ret 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x400
ret 8

Function at 0x1002cd40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov al, byte [ecx]
push ebp
test al, al
push edi
je 0x1002cda5
mov edi, dword [esp + 0xc]
test edi, edi
je 0x1002cda5
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1002cda5
mov eax, dword [ecx + 0xc]
push esi
mov esi, dword [ecx + 0x10]
jbe 0x1002cd97
push ebx
inc eax
and eax, 0xff
mov edx, dword [ecx + eax*4 + 0x14]
add esi, edx
and esi, 0xff
mov ebx, dword [ecx + esi*4 + 0x14]
mov dword [ecx + eax*4 + 0x14], ebx
add ebx, edx
and ebx, 0xff
mov dword [ecx + esi*4 + 0x14], edx
mov dl, byte [ecx + ebx*4 + 0x14]
mov bl, byte [edi]
xor bl, dl
mov byte [edi], bl
inc edi
dec ebp
jne 0x1002cd62
pop ebx
mov dword [ecx + 0x10], esi
pop esi
mov dword [ecx + 0xc], eax
pop edi
mov al, 1
pop ebp
ret 8
pop edi
xor al, al
pop ebp
ret 8

Function at 0x1002d390
Capabilities:
Copy file

Disassembly:
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x114]
push eax
push esi
lea ecx, [eax + 1]
push str._s_X
push edx
mov dword [esi + 0x114], ecx
call fcn.100304d0
mov edi, dword [esp + 0x120]
add esp, 0x10
lea eax, [esp + 8]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1002d3e3
lea ecx, [esp + 8]
push ecx
push edi
mov ecx, esi
call fcn.1002d410
pop edi
pop esi
add esp, 0x104
ret 4
Function at 0x1002ecf0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
jne 0x1002ed03
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edi, dword [esp + 0x18]
xor ebp, ebp
mov eax, edi
dec edi
test eax, eax
mov ebx, esi
jle 0x1002edb8
mov al, byte [esi]
test al, al
je 0x1002edb8
cmp al, 0x26
jne 0x1002edab
inc esi
push 3
push 0x10047580
push esi
call fcn.1003247b
add esp, 0xc
test eax, eax
jne 0x1002ed45
add esi, 2
sub edi, 3
jmp 0x1002edab
push 3
push 0x1004757c
push esi
call fcn.1003247b
add esp, 0xc
test eax, eax
jne 0x1002ed61
add esi, 2
sub edi, 3
jmp 0x1002edab
push 4
push str.amp_
push esi
call fcn.1003247b
add esp, 0xc
test eax, eax
jne 0x1002ed7d
add esi, 3
sub edi, 4
jmp 0x1002edab
push 5
push str.apos_
push esi
call fcn.1003247b
add esp, 0xc
test eax, eax
je 0x1002eda5
push 5
push str.quot_
push esi
call fcn.1003247b
add esp, 0xc
test eax, eax
jne 0x1002edff
add esi, 4
sub edi, 5
inc ebp
inc esi
mov ecx, edi
dec edi
test ecx, ecx
jg 0x1002ed16
lea edx, [ebp + 1]
push edx
call fcn.10032108
mov esi, eax
add esp, 4
mov eax, ebp
dec ebp
test eax, eax
mov edi, esi
je 0x1002eecd
inc ebp
mov al, byte [ebx]
cmp al, 0x26
jne 0x1002eec2
inc ebx
push 3
push 0x10047580
push ebx
call fcn.1003247b
add esp, 0xc
test eax, eax
jne 0x1002ee62
mov byte [esi], 0x3c
inc esi
add ebx, 3
jmp 0x1002eec6
mov al, byte [esi]
xor edi, edi
test al, al
je 0x1002ee19
cmp al, 0x3b
je 0x1002ee19
cmp edi, 0xa
jge 0x1002ee19
mov al, byte [edi + esi + 1]
inc edi
test al, al
jne 0x1002ee07
inc edi
lea edx, [edi + 1]
push edx
call fcn.10032108
mov ebx, eax
add esp, 4
mov eax, edi
mov byte [ebx + edi], 0
dec edi
test eax, eax
je 0x1002ee44
lea eax, [ebx + edi]
sub esi, ebx
inc edi
mov cl, byte [esi + eax]
dec edi
mov byte [eax], cl
dec eax
test edi, edi
ja 0x1002ee39
push ebx
push str.unknown_escape_character:__s
call fcn.1003243a
push ebx
call fcn.10030c72
add esp, 0xc
push 0xff
call fcn.10032338
push 3
push 0x1004757c
push ebx
call fcn.1003247b
add esp, 0xc
test eax, eax
jne 0x1002ee7f
mov byte [esi], 0x3e
inc esi
add ebx, 3
jmp 0x1002eec6
push 4
push str.amp_
push ebx
call fcn.1003247b
add esp, 0xc
test eax, eax
jne 0x1002ee9c
mov byte [esi], 0x26
inc esi
add ebx, 4
jmp 0x1002eec6
push 5
push str.apos_
push ebx
call fcn.1003247b
add esp, 0xc
test eax, eax
jne 0x1002eeb9
mov byte [esi], 0x27
inc esi
add ebx, 5
jmp 0x1002eec6
mov byte [esi], 0x22
inc esi
add ebx, 5
jmp 0x1002eec6
mov byte [esi], al
inc esi
inc ebx
dec ebp
jne 0x1002edd4
mov eax, edi
mov byte [esi], 0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100010a0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10030034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
mov ebx, edx
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x100010ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x100011c6
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x100010fc
cmp eax, edi
jne 0x100011d7
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
jne 0x100011d7
mov ecx, 0x2710
lea ebx, [ebx]
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x1000113a
mov edx, 0x3e8
jmp 0x10001143
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x100011bb
cmp dword [ebp - 0x14], esi
jbe 0x10001171
call edi
mov esi, dword [ebp - 0x14]
mov ebx, eax
jmp 0x10001184
call edi
mov edx, dword [ebp + 0xc]
sub eax, ebx
test edx, edx
mov ecx, edx
cmove ecx, dword [ebp - 0x10]
cmp eax, ecx
ja 0x100011a2
mov eax, dword [ebp - 0x24]
mov ecx, 0x2710
cmp eax, dword [ebp - 0x2c]
je 0x10001120
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b732
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x38], 0x20
mov eax, str.stop
mov ecx, str.start
cmovne eax, ecx
push eax
push str.Timeout_waiting_for_service_to__s.
jmp 0x100011cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
push eax
push str.Failed_to_call_QueryServiceStatusEx__Error___d.
call fcn.10019db0
add esp, 8
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b732
mov esp, ebp
pop ebp
ret