joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401060
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cdb6
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x413008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
xor esi, esi
call fcn.0040153d
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], esi
push str.inst_file_search
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x401172
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401172
mov eax, dword [0x41382c]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test al, 1
jne 0x40113c
or eax, 1
mov dword [0x41382c], eax
mov byte [ebp - 4], 1
xor eax, eax
push eax
push eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x65006b
mov dword [ebp - 0x28], 0x6e0072
mov dword [ebp - 0x24], 0x6c0065
mov dword [ebp - 0x20], 0x320033
mov dword [ebp - 0x1c], 0x64002e
mov dword [ebp - 0x18], 0x6c006c
call ebx
push esi
push esi
push str.advapi32.dll
mov dword [0x413828], eax
call ebx
push 0x40ce00
mov dword [0x413824], eax
call fcn.00401512
add esp, 4
mov byte [ebp - 4], 0
push 8
push 0
push str.inst.dll
call ebx
mov ebx, eax
test ebx, ebx
je 0x401175
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401175
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401175
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40118b
push 1
push edi
call fcn.0040127f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401527
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401020
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x40198a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019c9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019c9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019c9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019c9
cmp dword [ecx + 0x74], 0xe
jbe 0x4019c9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4027bb
Capabilities:
Terminate process

Disassembly:
jmp 0x41f880
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x41f891
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403d19
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402865
Capabilities:
Query environment variable

Disassembly:
jmp 0x4505ff
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x450610
pop esi
ret
push ebx
push edi
push esi
call fcn.004504e6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402dd3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x450638
push ebx
push esi
push edi
call fcn.00403bcf
add esp, 0xc
push 0
call fcn.00404287
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403c47
Capabilities:
Parse pe header

Disassembly:
jmp 0x40fd58
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40fd98
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40fd98
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fd98
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40fd98
cmp dword [ecx + 0x74], 0xe
jbe 0x40fd98
cmp dword [ecx + 0xe8], 0
je 0x40fd98
mov al, 1
ret
xor al, al
ret

Function at 0x403c51
Capabilities:
Print debug messages

Disassembly:
jmp 0x40e91a
push esi
mov esi, ecx
call fcn.00403eef
mov eax, 0x400000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x46dd4c
call fcn.00402365
test eax, eax
jns 0x40e969
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e962
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x47b100], 1
mov eax, esi
pop esi
ret
Function at 0x44e3ec
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47a014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44e437
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044e9ad
test al, al
jne 0x44e431
sub edx, 2
cmp edx, edi
jne 0x44e417
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44e459
lea eax, [edi + 2]
cmp edx, eax
je 0x44e459
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044dfe5
add esp, 0x10
jmp 0x44e553
push esi
lea ecx, [ebp - 0x255]
call fcn.0044e9ad
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e49c
push dword [ebp - 0x25c]
jmp 0x44e449
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44e4d9
cmp word [ebp - 0x226], 0
je 0x44e4fa
cmp word [ebp - 0x226], ax
jne 0x44e4d9
cmp word [ebp - 0x224], 0
je 0x44e4fa
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044dfe5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44e546
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44e4b3
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44e52e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44e553
push 0x44d8cb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403ac6
add esp, 0x10
jmp 0x44e523
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402450
leave
ret
Function at 0x461144
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47c350]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x461184
cmp byte [ebx], 0xa
jne 0x461184
or byte [eax + edi + 0x28], 4
jmp 0x461189
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x461287
mov al, byte [edx]
cmp al, 0x1a
je 0x461269
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4611b8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4611dd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4611e7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46119a
jmp 0x461287
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461264
cmp dword [ebp - 0xc], 0
je 0x461264
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47c350]
test byte [eax + edi + 0x28], 0x48
je 0x46123e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x461229
mov byte [esi], dl
jmp 0x46123a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47c350]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x461287
cmp byte [ebp - 1], 0xa
jne 0x46124d
cmp esi, ebx
jne 0x46124d
mov byte [esi], 0xa
jmp 0x461286
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004015c3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x461287
mov byte [esi], 0xd
jmp 0x461286
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47c350]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x461283
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x461287
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4612e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47c350]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x461326
cmp word [esi], dx
jne 0x461326
or byte [edi + eax + 0x28], 4
jmp 0x46132b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46147e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46145e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46136d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4613a3
cmp eax, edx
jae 0x4613af
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x461345
jmp 0x46147e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46145a
cmp dword [ebp - 0x14], 0
je 0x46145a
mov eax, dword [ebx*4 + 0x47c350]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x461432
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4613fb
mov word [esi], cx
jmp 0x46142e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47c350]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47c350]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47c350]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46147e
pop ebx
cmp word [ebp - 4], bx
jne 0x461443
cmp esi, dword [ebp + 0xc]
jne 0x461443
mov word [esi], bx
jmp 0x46147b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004015c3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46147e
push 0xd
jmp 0x461477
mov ecx, dword [ebx*4 + 0x47c350]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x461475
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46147e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x5d8ac8
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x5d87dc
inc esi
sub esi, 0x194de15a
sub esi, esi
call fcn.005d8b0a
mov edx, esi
sub edx, edx
xor dword [ecx], ebx
add edx, edx
or esi, esi
mov esi, edx
add ecx, 2
sub esi, 0xfb5e1af0
or edx, esi
and edx, edx
cmp ecx, eax
jl fcn.005d8ac8
sub edx, 0xd0e5153f
ret
Function at 0x401090
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x5c
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
mov dword [ebp - 0x2c], eax
call eax
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x4010e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
mov dword [ebp - 0x40], edx
call edx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [ebp - 0x38], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x30], eax
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4010d8
mov edx, dword [ebp - 0x40]
call edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], edx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov ebx, dword [ebp - 0x38]
call ebx
sub esp, 0x20
mov dword [esp], 0xfffffff5
mov esi, dword [ebp - 0x2c]
call esi
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov edi, dword [ebp - 0x34]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4016a0
Capabilities:
Enumerate services
Get process heap flags
Stop service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x40]
push ebx
lea esi, [ebp - 0x44]
sub esp, 0x6c
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.advapi32.dll_EnumDependentServicesW
sub esp, 0x18
test eax, eax
jne 0x401738
mov ebx, eax
xor ecx, ecx
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
je 0x401768
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x50], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.advapi32.dll_ControlService
mov ecx, dword [ebp - 0x50]
sub esp, 0xc
mov ebx, eax
jmp 0x401705
mov ecx, dword [ebp - 0x44]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ecx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [ebp - 0x54], ecx
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.advapi32.dll_EnumDependentServicesW
mov ecx, dword [ebp - 0x54]
sub esp, 0x18
test eax, eax
je 0x401705
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x401705
lea esi, [ecx + 4]
xor edi, edi
mov dword [ebp - 0x58], ecx
mov eax, dword [esi]
mov dword [esp], 0x68
mov dword [esp + 4], eax
call fcn.00401630
mov dword [esp + 8], 0xf003f
mov eax, dword [esi - 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sub.advapi32.dll_OpenServiceW
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x401825
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
call fcn.004016a0
mov edx, dword [ebp - 0x54]
mov ebx, eax
mov dword [esp], edx
call sub.advapi32.dll_CloseServiceHandle
sub esp, 4
test ebx, ebx
je 0x401848
add edi, 1
add esi, 0x24
cmp edi, dword [ebp - 0x40]
jb 0x4017d5
mov ecx, dword [ebp - 0x58]
test ebx, ebx
jne 0x40173a
jmp 0x401705
mov eax, dword [esi]
mov dword [esp], 0x69
mov dword [esp + 4], eax
call fcn.00401630
jmp 0x401829
Function at 0x401860
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x2038
call fcn.00402b98
sub esp, eax
mov ebx, edx
mov eax, dword [esp + eax]
mov dword [ebp - 0x2030], eax
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.advapi32.dll_OpenSCManagerW
sub esp, 0xc
test eax, eax
je 0x401a18
mov dword [esp + 8], 0xf003f
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.advapi32.dll_OpenServiceW
sub esp, 0xc
mov dword [ebp - 0x202c], eax
test eax, eax
je 0x401a30
mov dword [ebp - 0x201c], 0x1000
lea eax, [ebp - 0x201c]
lea edi, [ebp - 0x2018]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.advapi32.dll_GetServiceDisplayNameW
sub esp, 0x10
cmp word [ebp - 0x2018], 0
jne 0x401918
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x401908
cmp dword [ebp - 0x2030], 2
mov dword [esp + 4], edi
jne 0x401980
mov dword [esp], 0x6f
call fcn.00401630
mov edx, dword [ebp - 0x202c]
mov eax, esi
call fcn.004016a0
mov ebx, eax
test eax, eax
je 0x4019c8
mov dword [esp + 4], edi
mov dword [esp], 0x70
call fcn.00401630
mov eax, dword [ebp - 0x202c]
mov dword [esp], eax
call sub.advapi32.dll_CloseServiceHandle
sub esp, 4
mov dword [esp], esi
call sub.advapi32.dll_CloseServiceHandle
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6c
call fcn.00401630
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x202c]
mov dword [esp], eax
call sub.advapi32.dll_StartServiceW
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4019e8
mov dword [esp + 4], edi
mov dword [esp], 0x6d
call fcn.00401630
jmp 0x401958
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
call fcn.00401200
test eax, eax
je 0x401a50
xor ebx, ebx
jmp 0x401958
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
call fcn.00401200
test eax, eax
jne 0x4019da
mov dword [esp + 4], edi
xor ebx, ebx
mov dword [esp], 0x6e
call fcn.00401630
jmp 0x401958
mov dword [esp], 0x6a
xor ebx, ebx
call fcn.00401630
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6b
xor ebx, ebx
call fcn.00401630
mov dword [esp], esi
call sub.advapi32.dll_CloseServiceHandle
sub esp, 4
jmp 0x401a26
mov dword [esp + 4], edi
xor ebx, ebx
mov dword [esp], 0x71
call fcn.00401630
jmp 0x401958
Function at 0x402af0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401a70
mov dword [esp], eax
call 0x402b60
jmp dword [sym.imp.ucrtbase.dll_exit]
Function at 0x71a08aac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4830
call fcn.71a11ce0
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x108
xor eax, eax
lea edi, [ebp - 0x82f]
mov byte [ebp - 0x830], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
mov byte [ebp - 0x4830], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x482f]
push 0x7f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x40b]
mov byte [ebp - 0x40c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x20
push dword [ebp + 8]
stosb byte es:[edi], al
call dword [fcn.71a01124]
test eax, eax
jne 0x71a08c75
push dword [ebp + 8]
lea eax, [ebp - 0x830]
push eax
call fcn.71a11c8a
pop ecx
lea eax, [ebp - 0x20c]
pop ecx
push 0x200
push eax
push ebx
call dword [fcn.71a010f4]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.71a0de2d
mov byte [eax], bl
lea eax, [ebp - 0x20c]
push 0x71a01a38
push eax
call fcn.71a11ca2
add esp, 0x10
mov esi, dword [fcn.71a01068]
mov edi, 0x80
lea eax, [ebp - 0x20c]
push ebx
push edi
push 3
push ebx
push 3
push 0x80000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x71a08c75
push ebx
push eax
call dword [fcn.71a01064]
cmp eax, 0x400
mov dword [ebp - 4], eax
jae 0x71a08c75
lea ecx, [ebp - 8]
push ebx
push ecx
mov dword [ebp - 0x810], eax
push eax
lea eax, [ebp - 0x4830]
push eax
push dword [ebp + 8]
call dword [fcn.71a01060]
push dword [ebp + 8]
call dword [fcn.71a01100]
push dword [ebp - 4]
lea eax, [ebp - 0x4830]
push eax
lea eax, [ebp - 0x80c]
push eax
call fcn.71a11c84
add esp, 0xc
xor eax, eax
xor byte [ebp + eax - 0x830], 0xea
inc eax
cmp eax, 0x424
jb 0x71a08bf7
lea eax, [ebp - 0x40c]
push eax
push 0x104
call dword [fcn.71a0105c]
push dword [0x71a0474c]
lea eax, [ebp - 0x40c]
push eax
call fcn.71a11ca2
pop ecx
lea eax, [ebp - 0x40c]
pop ecx
push eax
call dword [fcn.71a010ac]
push ebx
push edi
push 1
push ebx
push 3
lea eax, [ebp - 0x40c]
push 0x40000000
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x71a08c75
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x830]
push 0x424
push eax
push esi
call dword [fcn.71a01058]
push esi
call dword [fcn.71a01100]
pop edi
pop esi
pop ebx
leave
ret 4