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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10de03c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x54]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0xf0]
mov dword [ebp - 0x4c], eax
push edi
mov ecx, esi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x46], 0x42524944
call fcn.010b0a1a
mov eax, dword [ebp - 0x54]
add esi, 0x38
mov ecx, dword [eax + 0x34]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x3d]
lea edi, [ebp - 0x1f]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x42]
lea edi, [ebp - 0x1a]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x47]
lea edi, [ebp - 0x15]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
and word [ebp - 8], 0
and word [ebp - 6], 0
test ecx, 0x20000
mov dword [ebp - 0x10], ecx
je 0x10b1742
mov esi, dword [ebp - 0x50]
mov eax, dword [esi + 0x60]
push dword [esi + 0x74]
and byte [ebp - 0xe], 0xfd
mov ecx, dword [eax + 0x1c]
push eax
call dword [ecx + 0xf0]
mov word [ebp - 0xc], ax
xor eax, eax
mov ax, word [ebx + 0x38c]
cmp ax, word [ebp - 0xc]
jae 0x10b1729
mov ecx, dword [ebp - 0xc]
sub ecx, eax
dec cx
shr cx, 9
shl ecx, 9
lea edi, [eax + ecx + 0x200]
movzx eax, di
push eax
push dword [ebx + 0x388]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
je 0x10b17df
mov dword [ebx + 0x388], eax
mov word [ebx + 0x38c], di
mov edi, dword [ebx + 0x388]
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0x1c]
push edi
push dword [esi + 0x74]
push eax
call dword [ecx + 0xb8]
jmp 0x10b1750
movzx edi, word [eax + 0x52]
add edi, eax
mov ax, word [eax + 0x50]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x44
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x44]
mov word [ebp - 0x48], cx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, edi
mov esi, ebx
call fcn.010b14f0
test ax, ax
jne 0x10b17df
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
push 1
lea eax, [ebp - 0x48]
push 0x24
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10b17df
test byte [ebp - 0x40], al
jne 0x10b17ab
push dword [ebp - 0x4c]
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov dword [ebx + 0x150], eax
mov word [ebx + 0x154], 2
push dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
push 1
push 0x20
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10b17df
cmp word [ebp - 0xc], 0
je 0x10b17f2
push dword [ebp - 0x4c]
movzx eax, word [ebp - 0xc]
push eax
push 1
push edi
call esi
movzx ecx, word [ebp - 0xc]
add esp, 0x10
cmp eax, ecx
je 0x10b17f2
push 1
push 0
push ebx
call fcn.010af70e
mov word [ebx + 0xd4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 0xc
Function at 0x10b20d1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0xf0]
mov dword [ebp - 0x2c], eax
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x26], 0x444e4546
mov esi, dword [eax + 0xa4]
push edx
mov dword [ebp - 0x30], edx
call dword [sym.imp.msvcrt.dll_ftell]
add eax, 0x16
xor edx, edx
div esi
pop ecx
sub esi, edx
cmp esi, 0x24
jae 0x10b212f
mov eax, dword [ebx + 4]
add esi, dword [eax + 0xa4]
cmp esi, 0x10000
mov word [ebp - 0x28], si
jb 0x10b2141
mov word [ebp - 0x28], 0x24
push dword [ebp - 0x30]
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x28]
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, esi
je 0x10b2160
mov edi, dword [ebp - 0x2c]
jmp 0x10b217b
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
mov edi, dword [ebp - 0x2c]
pop ecx
jne 0x10b217b
push edi
call fcn.010b1809
test eax, eax
je 0x10b218b
push esi
push 0
push edi
call fcn.010af70e
mov word [edi + 0xd4], si
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 4
Function at 0x10b57c9
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
push edi
mov edi, dword [eax + 0x10]
mov esi, dword [edi + 0x270]
cmp dword [esi], 0
mov word [esi + 0x14], 1
je 0x10b5814
push 0
push 1
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0xea60
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10b580c
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
push esi
call dword [sym.imp.msvcrt.dll_free]
and dword [edi + 0x270], 0
pop ecx
pop edi
pop esi
ret
Function at 0x10b9113
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
jmp 0x10b914b
cmp dword [ebp + 0x10], esi
je 0x10b9154
mov ebx, dword [0x10ed5e0]
push 4
pop ecx
sub ecx, ebx
movzx ebx, byte [edx]
shl ecx, 3
shl ebx, cl
xor eax, ebx
dec word [0x10ed5e0]
dec dword [ebp + 0x10]
inc edx
cmp word [0x10ed5e0], si
jne 0x10b9126
mov esi, dword [ebp + 0x10]
mov ecx, esi
shr ecx, 2
je 0x10b9166
xor eax, dword [edx]
add edx, 4
dec ecx
jne 0x10b915e
and esi, 3
je 0x10b9194
mov word [0x10ed5e0], 4
mov ebx, dword [0x10ed5e0]
push 4
pop ecx
sub ecx, ebx
movzx ebx, byte [edx]
shl ecx, 3
shl ebx, cl
xor eax, ebx
dec word [0x10ed5e0]
inc edx
dec esi
jne 0x10b9174
mov ecx, dword [ebp + 8]
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret 0xc

Function at 0x10b9556
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10de03c]
and dword [ebp - 0x420], 0
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 4], eax
jne 0x10b9581
or ax, 0xffff
jmp 0x10b969c
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcsrchr]
push esi
push 0x5c
push edi
call ebx
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10b9696
and word [esi], 0
lea eax, [ebp - 0x41c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x41c]
mov word [esi], 0x5c
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push eax
call esi
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x41c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x10
lea eax, [ebp + eax*2 - 0x41c]
jmp 0x10b962a
push 0
lea eax, [ebp - 0x41c]
push eax
call edi
test eax, eax
jne 0x10b9634
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10b9634
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10b9634
lea eax, [ebp - 0x41c]
push 0x5c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10b9626
lea eax, [ebp - 0x41c]
and word [eax], 0
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x10b95e1
lea eax, [ebp - 0x41c]
push eax
call esi
cmp ax, word [ebp - 0x424]
pop ecx
jae 0x10b968d
lea eax, [ebp - 0x41c]
push eax
call esi
pop ecx
mov word [ebp + eax*2 - 0x41c], 0x5c
push 0
lea eax, [ebp - 0x41c]
push eax
call edi
test eax, eax
jne 0x10b9683
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10b9683
push eax
call fcn.010a6bef
mov dword [ebp - 0x420], eax
cmp word [ebp - 0x420], 0
je 0x10b9634
mov ax, word [ebp - 0x420]
jmp 0x10b969a
mov ax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075bbb
leave
ret 8
Function at 0x10bc355
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x34]
add ebx, 0xb4
test eax, eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], eax
je 0x10bc48a
test ebx, ebx
je 0x10bc48a
cmp dword [eax + 0x34], 0
jne 0x10bc48a
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x418], eax
mov eax, dword [edi + 4]
push 0x5c
push dword [eax + 0x34]
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10bc3ec
push edi
call esi
mov ecx, dword [ebp - 0x418]
lea eax, [ecx + eax*2 + 2]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0x41c]
mov eax, dword [eax + 0x34]
test eax, eax
mov dword [ebp - 0x418], eax
je 0x10bc49c
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push ebx
call esi
mov ecx, dword [ebp - 0x418]
add esp, 0xc
lea esi, [ecx + eax*2]
xor eax, eax
jmp 0x10bc441
push eax
push 0x100d9f8
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10bc437
mov word [esi], 0x5f
jmp 0x10bc43d
mov ax, word [edi]
mov word [esi], ax
inc edi
inc edi
inc esi
inc esi
mov ax, word [edi]
test ax, ax
jne 0x10bc41e
mov eax, dword [ebp - 0x41c]
mov eax, dword [eax + 0x34]
lea ecx, [eax + 4]
movzx eax, word [eax]
push ecx
push eax
mov eax, dword [ebp - 0x420]
mov eax, dword [eax + 4]
push dword [eax + 0x54]
lea eax, [ebp - 0x414]
push 0x10121bc
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x14
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 4
or ax, 0xffff
jmp 0x10bc48d
Function at 0x10bdc27
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x230]
test edi, edi
je 0x10bdc93
and dword [ebp + 8], 0
push ebx
push 4
pop esi
sub esi, edi
cmp dword [ebp + 0x10], 0
jle 0x10bdc7d
mov ecx, edi
shl ecx, 3
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
jge 0x10bdc7d
movzx ebx, byte [edx]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 8
shl ebx, cl
xor dword [eax + 0x22c], ebx
inc edx
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x10bdc5a
cmp dword [ebp + 0x10], esi
pop ebx
jge 0x10bdc90
mov ecx, dword [ebp + 0x10]
add edi, ecx
mov dword [eax + 0x230], edi
jmp 0x10bdcd6
sub dword [ebp + 0x10], esi
mov esi, dword [ebp + 0x10]
shr esi, 2
test esi, esi
mov ecx, edx
jle 0x10bdcb0
lea edx, [edx + esi*4]
mov edi, dword [ecx]
xor dword [eax + 0x22c], edi
add ecx, 4
dec esi
jne 0x10bdca2
mov esi, dword [ebp + 0x10]
and esi, 3
mov dword [eax + 0x230], esi
je 0x10bdcd6
test esi, esi
jle 0x10bdcd6
xor ecx, ecx
movzx edi, byte [edx]
shl edi, cl
add ecx, 8
xor dword [eax + 0x22c], edi
inc edx
dec esi
jne 0x10bdcc4
pop edi
pop esi
leave
ret 0xc

Function at 0x10be5d2
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x10de03c]
and dword [ebp - 0x458], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x460], eax
jne 0x10be60a
xor ax, ax
jmp 0x10be6b3
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x204]
push 0x1004c50
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, eax
jmp 0x10be6a1
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010bd060
mov edi, eax
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10be680
push esi
call ebx
or esi, 0xffffffff
test edi, edi
je 0x10be6bf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10be699
mov dword [ebp - 0x458], 0xfffffe05
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp esi, 0xffffffff
jne 0x10be64e
push esi
call ebx
mov ax, word [ebp - 0x458]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01075bbb
leave
ret 8
or ax, 0xffff
jmp 0x10be6b0
Function at 0x10bf0fa
Capabilities:
Enumerate files on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov edx, dword [ebp + 0x18]
mov eax, dword [0x10de03c]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x660], edx
lea edx, [ebp - 0x664]
push edx
xor ebx, ebx
push 1
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x668], ebx
mov dword [ebp - 0x65c], ebx
mov dword [ebp - 0x658], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10bf153
cmp esi, ebx
jne 0x10bf15c
xor eax, eax
xor edx, edx
jmp 0x10bf279
lea eax, [ebp - 0x404]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x404]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
push dword [ebp - 0x660]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
mov ebx, 0xfe
sub ebx, eax
lea eax, [ebp - 0x404]
push eax
call esi
sub ebx, eax
add esp, 0x18
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x404]
shl ebx, 1
push eax
mov dword [ebp - 0x66c], ebx
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x404]
push eax
xor esi, esi
push esi
push esi
push edi
push dword [ebp - 0x664]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10bf1dc
xor edi, edi
jmp 0x10bf269
lea eax, [ebp - 0x404]
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x10bf1f6
mov word [eax], 0x24
push dword [ebp - 0x660]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
mov edi, dword [ebp - 0x668]
pop ecx
pop ecx
cmp edi, esi
lea eax, [ebp - 0x654]
push eax
jne 0x10bf230
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jmp 0x10bf239
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10bf25d
mov edx, dword [ebp - 0x634]
mov ecx, dword [ebp - 0x638]
xor eax, eax
xor ebx, ebx
or eax, edx
or ecx, ebx
add dword [ebp - 0x65c], eax
adc dword [ebp - 0x658], ecx
jmp 0x10bf211
mov esi, dword [ebp - 0x65c]
mov edi, dword [ebp - 0x658]
push dword [ebp - 0x664]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0x14
Function at 0x10bf28d
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10de03c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], 0x10
cmp dword [ebx + 0x18], 0
lea eax, [ebp - 0x30]
push 0x1004528
push eax
jne 0x10bf2e3
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [ebp + eax*2 - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x10bf2fc
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebx + 0x18]
push dword [eax + 0x34]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
and dword [esi + 0x38], 0
and dword [esi + 0x3c], 0
lea eax, [ebp - 0x34]
push eax
push 0x80000002
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x10bf3d7
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax]
cmp eax, 5
jne 0x10bf380
mov eax, dword [edi + 0x14]
cmp word [eax + 0x1a], 0
jne 0x10bf36f
mov ebx, 0x100205c
push ebx
mov edi, 0x10125c8
push edi
push 0x1012548
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bf0fa
add dword [esi + 0x38], eax
push ebx
push edi
adc dword [esi + 0x3c], edx
push 0x10124c0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bf0fa
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push 0x10124a0
push 0x1012488
push 0x1012408
jmp 0x10bf3bc
cmp eax, 6
jne 0x10bf3ce
mov eax, dword [edi + 0x14]
cmp word [eax + 0x1a], 0
mov edi, 0x1012390
jne 0x10bf3b1
push 0x100205c
push 0x101236c
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bf0fa
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push 0x10124a0
push 0x101233c
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bf0fa
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 8

Function at 0x10bf60b
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10bf62b
mov si, 0xfe05
jmp 0x10bf660
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10bf644
cmp dword [ebp - 0x18], 2
jne 0x10bf65d
call fcn.01075adf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xb4
jl 0x10bf62d
xor si, si
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ax, si
pop esi
leave
ret 4
Function at 0x10c2797
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
mov esi, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
mov dword [ebp - 4], ebx
push dword [edi + 0xc]
push edi
call fcn.010b5387
test ax, ax
je 0x10c27ca
or ax, 0xffff
jmp 0x10c2853
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x80000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x80], eax
je 0x10c2842
mov ecx, dword [edi + 0x14]
mov ebx, 0x4000000
test dword [ecx + 0x9c], ebx
jne 0x10c2811
lea ecx, [esi + 0x70]
push ecx
lea ecx, [esi + 0x68]
push ecx
lea ecx, [esi + 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x10c2829
mov esi, 0x80
mov eax, dword [edi + 0x14]
test dword [eax + 0x9c], ebx
jne 0x10c2849
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10c2849
mov dword [ebp - 4], 0xfffffe05
push edi
call fcn.010b4ca9
mov ax, word [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x10c285c
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, eax
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.010b5387
test ax, ax
je 0x10c288c
or ax, 0xffff
jmp 0x10c28bd
mov eax, dword [ebp - 4]
cmp word [eax + 6], di
je 0x10c28b2
mov esi, dword [esi + 0x40]
cmp esi, edi
jne 0x10c28a1
mov esi, 0x80
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10c28b2
mov edi, 0xfffffe05
push dword [ebp + 8]
call fcn.010b4ca9
mov ax, di
pop edi
pop esi
leave
ret 4

Function at 0x10c2cdb
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
push dword [eax + 0x18]
push dword [esi + 0xc]
push esi
call fcn.010b5387
test ax, ax
je 0x10c2d0a
or ax, 0xffff
jmp 0x10c2d3f
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x10c2d34
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10c2d34
mov dword [ebp - 4], 0xfffffe05
push esi
call fcn.010b4ca9
mov ax, word [ebp - 4]
pop edi
leave
ret 4
Function at 0x10c2d48
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0x18]
push esi
xor esi, esi
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.010b5387
test ax, ax
je 0x10c2d75
or ax, 0xffff
jmp 0x10c2da9
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
test eax, eax
jne 0x10c2d9d
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10c2d9d
mov esi, 0xfffffe05
push dword [ebp + 8]
call fcn.010b4ca9
mov ax, si
pop edi
pop esi
leave
ret 4

Function at 0x10c300f
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
push esi
mov esi, dword [eax + 0x270]
xor ecx, ecx
push edi
push ecx
push 1
push dword [esi + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov word [esi + 8], 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10c305f
push 0
push dword [esi]
call edi
test eax, eax
je 0x10c306d
call fcn.01075adf
push 0x64
push dword [esi + 0x10]
call edi
cmp eax, 0x102
je 0x10c3050
push 0x1388
push dword [esi]
call edi
cmp eax, 0x102
jne 0x10c3089
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10c309f
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0
je 0x10c30a6
mov dword [ebp - 4], 0xfffffe36
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0xc]
call edi
push dword [esi + 0x10]
call edi
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0xc]
and dword [eax + 0x270], 0
cmp word [ebp - 4], 0
pop ecx
pop edi
pop esi
jne 0x10c30fb
mov eax, dword [ebp - 0x10]
cmp byte [eax], 9
push 1
push eax
push ebx
push dword [ebx]
jne 0x10c30f3
call fcn.010ae3a8
jmp 0x10c30f8
call fcn.010add5f
mov dword [ebp - 4], eax
mov ax, word [ebp - 4]
leave
ret