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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10de03c]
push ebx
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 0x154]
mov ebx, dword [esi + 0xf0]
dec eax
dec eax
mov dword [ebp - 0x2c], ebx
je 0x10b1217
dec eax
je 0x10b1217
dec eax
dec eax
je 0x10b120e
xor ebx, ebx
inc ebx
push ebx
push 0
push esi
call fcn.010af580
mov word [esi + 0xd4], bx
jmp 0x10b12c0
mov dword [ebp - 0x28], 0x11
jmp 0x10b121e
mov dword [ebp - 0x28], 0x20
push edi
mov edi, dword [sym.imp.msvcrt.dll_fseek]
push 0
push dword [esi + 0x150]
push ebx
call edi
add esp, 0xc
test eax, eax
je 0x10b123c
xor ebx, ebx
inc ebx
jmp 0x10b12af
push ebx
push dword [ebp - 0x28]
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x28]
jne 0x10b12af
movzx eax, word [esi + 0x154]
dec eax
dec eax
je 0x10b126e
dec eax
je 0x10b126e
dec eax
dec eax
jne 0x10b1272
or byte [ebp - 0x1d], 4
jmp 0x10b1272
or byte [ebp - 0xe], 4
push 0
push dword [esi + 0x150]
push dword [ebp - 0x2c]
call edi
add esp, 0xc
test eax, eax
jne 0x10b12af
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp - 0x28]
jne 0x10b12af
push 2
push 0
push dword [ebp - 0x2c]
call edi
add esp, 0xc
test eax, eax
je 0x10b12bf
push ebx
push 0
push esi
call fcn.010af580
mov word [esi + 0xd4], bx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 4

Function at 0x10b12d6
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10de03c]
push esi
mov esi, dword [sym.imp.msvcrt.dll_fseek]
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
call esi
add esp, 0xc
test eax, eax
je 0x10b1303
mov eax, 0xfffffde7
jmp 0x10b1350
push edi
push 1
lea eax, [ebp - 0x28]
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10b12fc
mov eax, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc], eax
call esi
add esp, 0xc
test eax, eax
jne 0x10b12fc
push edi
push 1
lea eax, [ebp - 0x28]
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffde7
mov ecx, dword [ebp - 4]
pop esi
call fcn.01075aef
leave
ret 8
Function at 0x10b14bb
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.010b088c
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 0x10b15b4
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 0x10b159b
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 0x10b1651
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 0x10b15c2
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.010b1362
test ax, ax
jne 0x10b1651
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 0x10b1651
test byte [ebp - 0x40], al
jne 0x10b161d
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 0x10b1651
cmp word [ebp - 0xc], 0
je 0x10b1664
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 0x10b1664
push 1
push 0
push ebx
call fcn.010af580
mov word [ebx + 0xd4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 0xc
Function at 0x10b1f43
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 0x10b1fa1
mov eax, dword [ebx + 4]
add esi, dword [eax + 0xa4]
cmp esi, 0x10000
mov word [ebp - 0x28], si
jb 0x10b1fb3
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 0x10b1fd2
mov edi, dword [ebp - 0x2c]
jmp 0x10b1fed
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
mov edi, dword [ebp - 0x2c]
pop ecx
jne 0x10b1fed
push edi
call fcn.010b167b
test eax, eax
je 0x10b1ffd
push esi
push 0
push edi
call fcn.010af580
mov word [edi + 0xd4], si
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 4
Function at 0x10b563b
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 0x10b5686
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 0x10b567e
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 0x10b8f85
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 0x10b8fbd
cmp dword [ebp + 0x10], esi
je 0x10b8fc6
mov ebx, dword [0x10ed5d8]
push 4
pop ecx
sub ecx, ebx
movzx ebx, byte [edx]
shl ecx, 3
shl ebx, cl
xor eax, ebx
dec word [0x10ed5d8]
dec dword [ebp + 0x10]
inc edx
cmp word [0x10ed5d8], si
jne 0x10b8f98
mov esi, dword [ebp + 0x10]
mov ecx, esi
shr ecx, 2
je 0x10b8fd8
xor eax, dword [edx]
add edx, 4
dec ecx
jne 0x10b8fd0
and esi, 3
je 0x10b9006
mov word [0x10ed5d8], 4
mov ebx, dword [0x10ed5d8]
push 4
pop ecx
sub ecx, ebx
movzx ebx, byte [edx]
shl ecx, 3
shl ebx, cl
xor eax, ebx
dec word [0x10ed5d8]
inc edx
dec esi
jne 0x10b8fe6
mov ecx, dword [ebp + 8]
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret 0xc

Function at 0x10b93c8
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 0x10b93f3
or ax, 0xffff
jmp 0x10b950e
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 0x10b9508
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 0x10b949c
push 0
lea eax, [ebp - 0x41c]
push eax
call edi
test eax, eax
jne 0x10b94a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10b94a6
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10b94a6
lea eax, [ebp - 0x41c]
push 0x5c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10b9498
lea eax, [ebp - 0x41c]
and word [eax], 0
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x10b9453
lea eax, [ebp - 0x41c]
push eax
call esi
cmp ax, word [ebp - 0x424]
pop ecx
jae 0x10b94ff
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 0x10b94f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10b94f5
push eax
call fcn.010a6a34
mov dword [ebp - 0x420], eax
cmp word [ebp - 0x420], 0
je 0x10b94a6
mov ax, word [ebp - 0x420]
jmp 0x10b950c
mov ax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075aef
leave
ret 8
Function at 0x10bc1c1
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 0x10bc2f6
test ebx, ebx
je 0x10bc2f6
cmp dword [eax + 0x34], 0
jne 0x10bc2f6
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 0x10bc258
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 0x10bc308
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 0x10bc2ad
push eax
push 0x100d9e0
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10bc2a3
mov word [esi], 0x5f
jmp 0x10bc2a9
mov ax, word [edi]
mov word [esi], ax
inc edi
inc edi
inc esi
inc esi
mov ax, word [edi]
test ax, ax
jne 0x10bc28a
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 0x10121a4
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.01075aef
leave
ret 4
or ax, 0xffff
jmp 0x10bc2f9
Function at 0x10bdac3
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 0x10bdb2f
and dword [ebp + 8], 0
push ebx
push 4
pop esi
sub esi, edi
cmp dword [ebp + 0x10], 0
jle 0x10bdb19
mov ecx, edi
shl ecx, 3
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
jge 0x10bdb19
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 0x10bdaf6
cmp dword [ebp + 0x10], esi
pop ebx
jge 0x10bdb2c
mov ecx, dword [ebp + 0x10]
add edi, ecx
mov dword [eax + 0x230], edi
jmp 0x10bdb72
sub dword [ebp + 0x10], esi
mov esi, dword [ebp + 0x10]
shr esi, 2
test esi, esi
mov ecx, edx
jle 0x10bdb4c
lea edx, [edx + esi*4]
mov edi, dword [ecx]
xor dword [eax + 0x22c], edi
add ecx, 4
dec esi
jne 0x10bdb3e
mov esi, dword [ebp + 0x10]
and esi, 3
mov dword [eax + 0x230], esi
je 0x10bdb72
test esi, esi
jle 0x10bdb72
xor ecx, ecx
movzx edi, byte [edx]
shl edi, cl
add ecx, 8
xor dword [eax + 0x22c], edi
inc edx
dec esi
jne 0x10bdb60
pop edi
pop esi
leave
ret 0xc

Function at 0x10be46e
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 0x10be4a6
xor ax, ax
jmp 0x10be54f
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 0x10be53d
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010bcefc
mov edi, eax
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10be51c
push esi
call ebx
or esi, 0xffffffff
test edi, edi
je 0x10be55b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10be535
mov dword [ebp - 0x458], 0xfffffe05
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp esi, 0xffffffff
jne 0x10be4ea
push esi
call ebx
mov ax, word [ebp - 0x458]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01075aef
leave
ret 8
or ax, 0xffff
jmp 0x10be54c
Function at 0x10bef96
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 0x10befef
cmp esi, ebx
jne 0x10beff8
xor eax, eax
xor edx, edx
jmp 0x10bf115
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 0x10bf078
xor edi, edi
jmp 0x10bf105
lea eax, [ebp - 0x404]
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x10bf092
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 0x10bf0cc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jmp 0x10bf0d5
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10bf0f9
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 0x10bf0ad
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.01075aef
leave
ret 0x14
Function at 0x10bf129
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 0x10bf17f
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 0x10bf198
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 0x10bf273
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax]
cmp eax, 5
jne 0x10bf21c
mov eax, dword [edi + 0x14]
cmp word [eax + 0x1a], 0
jne 0x10bf20b
mov ebx, 0x100205c
push ebx
mov edi, 0x10125b0
push edi
push 0x1012530
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bef96
add dword [esi + 0x38], eax
push ebx
push edi
adc dword [esi + 0x3c], edx
push 0x10124a8
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bef96
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push 0x1012488
push 0x1012470
push 0x10123f0
jmp 0x10bf258
cmp eax, 6
jne 0x10bf26a
mov eax, dword [edi + 0x14]
cmp word [eax + 0x1a], 0
mov edi, 0x1012378
jne 0x10bf24d
push 0x100205c
push 0x1012354
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bef96
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push 0x1012488
push 0x1012324
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bef96
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.01075aef
leave
ret 8

Function at 0x10bf4a7
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 0x10bf4c7
mov si, 0xfe05
jmp 0x10bf4fc
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10bf4e0
cmp dword [ebp - 0x18], 2
jne 0x10bf4f9
call fcn.01075a13
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xb4
jl 0x10bf4c9
xor si, si
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ax, si
pop esi
leave
ret 4
Function at 0x10c0693
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
je 0x10c0745
push esi
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x41c]
push 0x1004204
push eax
call esi
lea eax, [ebp - 0x41c]
push edi
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
jmp 0x10c073f
test byte [ebp - 0x66c], 0x10
jne 0x10c0723
mov edx, dword [ebp - 0x64c]
mov ecx, dword [ebp - 0x650]
xor eax, eax
xor edi, edi
or eax, edx
or ecx, edi
add dword [ebx], eax
adc dword [ebx + 4], ecx
lea eax, [ebp - 0x66c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10c073f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x10c0701
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01075aef
leave
ret 0x10
Function at 0x10c2650
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.010b51f9
test ax, ax
je 0x10c2683
or ax, 0xffff
jmp 0x10c270c
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 0x10c26fb
mov ecx, dword [edi + 0x14]
mov ebx, 0x4000000
test dword [ecx + 0x9c], ebx
jne 0x10c26ca
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 0x10c26e2
mov esi, 0x80
mov eax, dword [edi + 0x14]
test dword [eax + 0x9c], ebx
jne 0x10c2702
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10c2702
mov dword [ebp - 4], 0xfffffe05
push edi
call fcn.010b4b1b
mov ax, word [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x10c2715
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.010b51f9
test ax, ax
je 0x10c2745
or ax, 0xffff
jmp 0x10c2776
mov eax, dword [ebp - 4]
cmp word [eax + 6], di
je 0x10c276b
mov esi, dword [esi + 0x40]
cmp esi, edi
jne 0x10c275a
mov esi, 0x80
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10c276b
mov edi, 0xfffffe05
push dword [ebp + 8]
call fcn.010b4b1b
mov ax, di
pop edi
pop esi
leave
ret 4

Function at 0x10c2b94
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.010b51f9
test ax, ax
je 0x10c2bc3
or ax, 0xffff
jmp 0x10c2bf8
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x10c2bed
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10c2bed
mov dword [ebp - 4], 0xfffffe05
push esi
call fcn.010b4b1b
mov ax, word [ebp - 4]
pop edi
leave
ret 4