joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107268d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10726a4
xor eax, eax
jmp 0x10726af
not al
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret 4

Function at 0x1073070
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, esi
push edi
mov dword [ebp - 0x114], esi
mov edi, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x107309e
sub eax, ecx
cmp eax, 0x103
jbe 0x10730b2
xor eax, eax
jmp 0x1073123
test esi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
je 0x1073119
push 0x10094ec
push edi
call sub.msvcrt.dll_strstr
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x10c], eax
je 0x107310f
push dword [ebp - 0x110]
sub eax, esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
call ebx
inc dword [ebp - 0x10c]
mov esi, dword [ebp - 0x114]
mov edi, dword [ebp - 0x10c]
test edi, edi
jne 0x10730bd
push dword [ebp - 0x110]
push esi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0106bc50
leave
ret 8

Function at 0x10734d3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
push 0x1024b18
call fcn.0106bf63
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10734ed
mov dword [eax], esi
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x10734f6
mov dword [eax], esi
lea eax, [ebp - 0x24]
push eax
push 1
push esi
push 0x1024398
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x10735ad
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
mov ebx, 0x101534c
push ebx
push dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x1073582
push dword [ebp - 0x20]
call sub.msvcrt.dll_malloc
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, esi
jne 0x1073555
mov dword [ebp - 0x1c], 8
jmp 0x10735a4
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
push esi
push ebx
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x1073578
mov edi, dword [ebp + 8]
push dword [edi]
call sub.msvcrt.dll_free
pop ecx
mov dword [edi], esi
jmp 0x10735a4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x10735a4
cmp eax, 2
je 0x107358c
cmp eax, 3
jne 0x10735a4
push 1
push 2
call sub.msvcrt.dll_calloc
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
call fcn.010735c7
push dword [ebp - 0x1c]
call fcn.01037f35
xor eax, eax
cmp dword [ebp - 0x1c], esi
sete al
call fcn.0106bf9e
ret 8
Function at 0x1074d37
Capabilities:
Query environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
xor edi, edi
push 0x2000
mov dword [ebp - 4], edi
call sub.msvcrt.dll_malloc
mov ebx, eax
cmp ebx, edi
pop ecx
jne 0x1074d60
push 8
call fcn.01037f35
jmp 0x1074d85
push esi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
test eax, eax
jne 0x1074d90
mov dword [ebp - 4], 1
push ebx
call sub.msvcrt.dll_free
pop ecx
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc
xor edi, edi
push edi
mov esi, 0x1000
push esi
push ebx
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
je 0x1074d7d
lea eax, [ebp + 0xc]
push eax
push ebx
lea edi, [ebx + 0x1000]
push edi
mov dword [ebp + 0xc], esi
call fcn.01074cbc
test eax, eax
je 0x1074e1f
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1074e1f
cmp eax, esi
ja 0x1074e1f
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1074dd7
sub eax, esi
push 0
lea edi, [eax + ebx]
lea ecx, [ebp - 8]
push ecx
add eax, 2
push eax
mov esi, 0x1010290
movsw word es:[edi], word [esi]
push ebx
push dword [ebp + 0x10]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1074d7d
lea eax, [ebp - 0x18]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
test eax, eax
jne 0x1074d8e
jmp 0x1074d76
push 0x7a
call fcn.01037f35
jmp 0x1074d7d
Function at 0x107624b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
push 0xc
pop ecx
mov esi, 0x100aa44
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push 5
pop ecx
mov esi, 0x100a9d4
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x1099a38]
and dword [ebp - 0x5c], 0
movsw word es:[edi], word [esi]
mov esi, 0x1024cbc
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 4], eax
inc ebx
call sub.msvcrt.dll_malloc
push esi
mov dword [ebp - 0x64], eax
call sub.msvcrt.dll_malloc
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x58]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10763a3
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x5c], esi
call edi
cmp eax, 0xea
jne 0x1076322
push dword [ebp - 0x60]
call sub.msvcrt.dll_free
push dword [ebp - 0x5c]
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
je 0x10763a3
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x68]
call edi
xor ebx, ebx
cmp eax, ebx
jne 0x10763a3
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + eax - 1], bl
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x64]
lea eax, [ebp - 0x6c]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x5c], esi
call edi
cmp eax, 0xea
jne 0x107637d
push dword [ebp - 0x64]
call sub.msvcrt.dll_free
push dword [ebp - 0x5c]
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
je 0x1076381
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x68]
call edi
test eax, eax
je 0x1076386
xor ebx, ebx
inc ebx
jmp 0x10763a3
mov eax, dword [ebp - 0x64]
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
push eax
mov byte [eax + ecx - 1], 0
call sub.msvcrt.dll__stricmp
mov ebx, eax
neg ebx
pop ecx
sbb ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x64]
call sub.msvcrt.dll_free
push dword [ebp - 0x60]
call sub.msvcrt.dll_free
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0106bc50
leave
ret
Function at 0x107837d
Capabilities:
Parse pe header

Disassembly:
push 0x1c
push 0x10268d0
call fcn.0106bf63
mov dword [ebp - 0x1c], 0x57
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp esi, ecx
je 0x1078435
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x1078435
cmp dword [ebp + 0x14], ecx
je 0x1078435
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x1078435
lea ebx, [esi + 0x10040]
add eax, esi
mov dword [ebp - 0x24], eax
mov dword [edi], ecx
mov dword [edi + 4], ecx
cmp eax, ebx
jae 0x10783ce
mov ebx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], esi
lea eax, [esi + 0x40]
cmp eax, ebx
jae 0x1078431
cmp dword [ebp - 0x1c], 0x57
jne 0x1078431
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], esi
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x20], eax
cmp word [esi], 0x5a4d
jne 0x1078423
lea ecx, [eax + 0xf8]
cmp ecx, dword [ebp - 0x24]
jae 0x1078423
cmp dword [eax], 0x4550
jne 0x1078423
cmp word [eax + 4], 0x14c
jne 0x1078423
push edi
push esi
call fcn.01078280
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x1078423
and dword [ebp - 0x1c], 0
add esi, dword [ebp + 0x14]
xor ecx, ecx
jmp 0x10783d1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.0106bf9e
ret 0x10

Function at 0x1078ef9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov esi, 0x1026c50
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ebx
movsw word es:[edi], word [esi]
call fcn.010735d1
test eax, eax
je 0x1078f32
mov dword [ebp - 0x14], 0x40
jmp 0x1078fca
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push 0x1026c34
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1078fca
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov edi, 0x1026c28
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x1078fc1
push dword [ebp - 0x1c]
call sub.msvcrt.dll_malloc
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1078f94
sub eax, ecx
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call sub.msvcrt.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x1078fb8
mov dword [ebp - 0x14], 0x62
push dword [ebp - 0x20]
call sub.msvcrt.dll_free
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret
Function at 0x107c243
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0107813b
mov esi, eax
test esi, esi
jne 0x107c2b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x107c2b0
mov eax, dword [ebp + 0xc]
and dword [ebp - 0xc], esi
and dword [ebp - 8], esi
and dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 1
push edi
mov byte [ebp - 0x14], 1
mov byte [ebp - 0x13], 0
mov word [ebp - 0x12], 4
call esi
lea eax, [ebp - 0x14]
push eax
push 4
push edi
call esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call fcn.0107813b
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x107c534
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xfffa
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x10f6960
push esi
xor edi, edi
push eax
push 0x10f54c0
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x42c], edi
call fcn.01070fc9
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push esi
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call edi
push ebx
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x424]
push 0
push 0
call edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, 0x80
push ebx
push esi
call edi
push esi
push dword [ebp - 0x420]
call int.0103a535
lea eax, [ebp - 0x20c]
push eax
call fcn.01073650
test eax, eax
je 0x107c61c
cmp eax, 0x800b0100
je 0x107c5f7
push eax
push esi
push 0x1027bf0
jmp 0x107c648
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x2584
push 0x1027bd8
push 0x1027b88
call fcn.01071ac0
add esp, 0x14
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010736bc
test eax, eax
jne 0x107c641
mov dword [ebp - 0x418], 1
jmp 0x107c650
push eax
push esi
push 0x1027b40
call fcn.01071ac0
add esp, 0xc
push ebx
push esi
call edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.01071c4d
test eax, eax
je 0x107c67e
push dword [ebp - 0x41c]
push esi
call fcn.0107c243
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x107dc27
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1099a38]
push ebx
push esi
xor ebx, ebx
cmp dword [0x10bceb4], ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], ebx
jne 0x107dc61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10bceb4], eax
cmp dword [ebp + 8], ebx
mov esi, 0x80
je 0x107dc7a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x107dc84
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push esi
push 4
push ebx
mov ebx, 0xc0000000
jmp 0x107dcda
inc dword [ebp - 0x214]
cmp dword [ebp - 0x214], 9
ja 0x107de57
push dword [ebp - 0x214]
lea eax, [ebp - 0x108]
push dword [ebp - 0x210]
push 0x10282f0
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
push 0
push esi
push 4
push 0
push 1
lea eax, [ebp - 0x108]
push ebx
push eax
call edi
cmp eax, 0xffffffff
mov dword [0x10bceb0], eax
je 0x107dca0
xor esi, esi
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x108]
mov byte [ecx + 0x10f6840], dl
inc ecx
test dl, dl
jne 0x107dcf4
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x107dd5c
lea eax, [ebp - 0x108]
push eax
call fcn.01070f95
cmp eax, esi
je 0x107dd5c
push eax
lea eax, [ebp - 0x20c]
push 0x1026f64
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push dword [0x10bceb0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x14
pop ecx
mov eax, 0x3d3d3d3d
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
push esi
mov byte [ebp - 0xb8], 0
call fcn.01071a91
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push eax
push 0x10282c4
push esi
call fcn.01071a7b
add esp, 0x24
push 0x104
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x107de50
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call fcn.0107c2b8
movzx eax, word [ebp - 0x218]
mov edx, dword [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x214]
mov ecx, eax
shrd edx, ecx, 0x10
shr ecx, 0x10
movzx ecx, dx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
movzx eax, ax
push eax
lea eax, [ebp - 0x108]
push eax
push 0x10282a8
push esi
mov dword [ebp - 0x210], edx
call fcn.01071a7b
add esp, 0x1c
mov eax, dword [0x10bceb0]
jmp 0x107de60
and dword [0x10bceb0], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x107de96
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x10bcba8
cmp eax, esi
push edi
je 0x107deba
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x107deb0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x107debf
sub eax, edx
lea edi, [eax + 0x10bcba8]
mov byte [edi], 0x5c
inc edi
and dword [ebp + 8], 0
mov ebx, 0x10bc130
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 8], eax
mov word [edi], 0x2a
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x107df6b
test byte [0x10bc130], 0x10
jne 0x107df48
mov eax, 0x10bc15c
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x107df08
push 0x10282fc
push edi
call sub.msvcrt.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x107df38
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x107df48
push dword [ebp + 0xc]
push esi
call fcn.0107c243
test eax, eax
je 0x107df48
inc dword [ebp + 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x107def6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jne 0x107dedb
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x107e2d6
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, edx
not eax
je 0x107e2ec
push esi
movsx esi, byte [ecx]
rol eax, 3
xor eax, esi
inc ecx
dec edx
jne 0x107e2df
pop esi
ret
Function at 0x1081f6a
Capabilities:
Enumerate services

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push 5
push esi
push esi
mov dword [ebp - 4], esi
mov dword [eax], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x1082003
push ebx
push edi
xor ebx, ebx
mov edi, 0x1000
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push ebx
call sub.msvcrt.dll_free
add edi, dword [ebp - 0xc]
push edi
call sub.msvcrt.dll_malloc
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x1081fee
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push 1
push 0x30
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
test eax, eax
jne 0x108200f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x108200b
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jb 0x1081f9d
push ebx
call sub.msvcrt.dll_free
pop ecx
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 4
cmp eax, esi
jne 0x1081fee
cmp dword [ebp - 4], esi
je 0x1081fee
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1081ff8

Function at 0x10821e5
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0xd
pop ecx
xor ebx, ebx
push ebx
push ebx
push 0x1004
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
call esi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push 0x1007
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x1082232
or eax, eax
jmp 0x10822d5
mov edi, dword [ebp + 0xc]
push dword [edi + 4]
push dword [edi]
push dword [edi + 8]
push 0x1029b50
call fcn.01071ac0
add esp, 0x10
test byte [0x10bd0f0], 4
mov ebx, 0x102e
je 0x108228c
push dword [edi + 8]
push 0x1029b48
push 0x1106960
call sub.msvcrt.dll_sprintf
and dword [ebp - 0x68], 0
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 1
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x1106960
call esi
test byte [0x10bd0f0], 1
je 0x10822b0
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
mov dword [ebp - 0x68], eax
mov eax, dword [edi]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test byte [0x10bd0f0], 2
je 0x10822d2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x108ecc8
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 0xffff
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x108ed74
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], eax
je 0x108ed6b
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x108ed66
cmp dword [ebp - 0x10], 0x200
jb 0x108ed5f
cmp word [eax], 0x5a4d
jne 0x108ed5f
mov ecx, dword [eax + 0x3c]
mov cx, word [ecx + eax + 4]
mov word [ebp - 0xc], cx
mov dword [ebp - 8], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call edi
push ebx
call edi
cmp dword [ebp - 8], esi
pop edi
jne 0x108ed8d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102cce0
push 1
call fcn.0108e8f0
add esp, 0x10
mov ax, word [ebp - 0xc]
pop esi
pop ebx
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1099a38]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x214], eax
mov edi, 0x103
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0108c975
mov esi, dword [sym.imp.msvcrt.dll_strrchr]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
pop ecx
mov byte [eax], 0
jmp 0x1090ecc
lea eax, [ebp - 0x108]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0108c975
jmp 0x1090eb9
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
pop ecx
pop ecx
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1090ea9
lea eax, [ebp - 0x108]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1090e93
push dword [ebp + 0x10]
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0xc