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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002f690
push 0x10013e80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10032014]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.1001643e
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x10003171
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x100030cb
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x100030cb
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
mov al, byte [esi]
test al, al
je 0x100030b0
cmp al, 0x5c
je 0x100030a8
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003094
test al, al
je 0x100030b0
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100030f0
cmp al, 0x5c
je 0x100030c1
push esi
call ebx
mov esi, eax
jmp 0x100030ad
test al, al
je 0x100030f0
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100030f0
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x100030ea
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100030ea
cmp al, 0x5c
jne 0x100030ea
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
mov al, byte [esi]
test al, al
je 0x10003137
cmp al, 0x5c
jne 0x1000312d
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10003126
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000312a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000312a
push edi
jmp 0x10003169
test al, 0x10
je 0x10003123
mov byte [esi], 0x5c
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100030f0
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.10016449
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10016449
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003460
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x794
mov eax, dword [0x10032014]
xor eax, esp
mov dword [esp + 0x790], eax
push ebx
push esi
push edi
lea eax, [esp + 0x298]
mov dword [esp + 0x1c], ecx
push eax
push 0x100
mov byte [esp + 0x3a0], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x298], 0
lea esi, [esp + 0x298]
xorps xmm0, xmm0
mov edi, 1
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x10], edi
je 0x10003612
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
nop
push 0x104
lea eax, [esp + 0x194]
push 0
push eax
call fcn.100146a0
add esp, 0xc
lea eax, [esp + 0x190]
push 0x104
push eax
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
push 0x160
lea eax, [esp + 0x38]
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [esp + 0x140]
push eax
call ebx
inc eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x190]
push eax
call ebx
mov cl, byte [esi]
inc eax
mov dword [esp + 0x14], eax
cmp cl, 0x41
je 0x1000357b
cmp cl, 0x42
je 0x1000357b
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1000357b
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
shrd edi, eax, 0x14
mov eax, dword [esp + 0x2c]
shrd ebx, eax, 0x14
jmp 0x1000357f
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x10]
mov al, byte [esi]
push esi
mov byte [esp + ecx + 0x39c], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x399], al
lea eax, [esp + 0x140]
mov dword [esp + ecx + 0x39a], edi
mov edi, ecx
mov dword [esp + edi + 0x39e], ebx
mov ebx, dword [esp + 0x18]
push ebx
push eax
lea eax, [esp + 0x3aa]
add eax, edi
push eax
call fcn.10014120
add esp, 0xc
lea eax, [esp + 0x190]
lea ecx, [esp + 0x3a2]
push dword [esp + 0x14]
push eax
lea eax, [ebx + edi]
add eax, ecx
push eax
call fcn.10014120
mov eax, dword [esp + 0x20]
add esp, 0xc
add eax, ebx
add edi, 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, eax
mov dword [esp + 0x10], edi
push esi
call ebx
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x100034d0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x398]
push edi
push eax
call fcn.10006760
mov ecx, dword [esp + 0x79c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012425
mov esp, ebp
pop ebp
ret
Function at 0x10003640
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._s.
push eax
mov dword [ebp - 0x360], ecx
call edi
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10003720
cmp byte [ebp - 0x330], 0x2e
je 0x100036e7
test byte [ebp - 0x35c], 0x10
lea eax, [ebp - 0x330]
push eax
push esi
lea eax, [ebp - 0x114]
push 0x1002e2b8
push eax
je 0x100036d5
call edi
mov ecx, dword [ebp - 0x360]
lea eax, [ebp - 0x114]
add esp, 0x10
push eax
call fcn.10003640
jmp 0x100036e7
call edi
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x35c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10003696
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x10003720
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10012425
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012425
mov esp, ebp
pop ebp
ret 4

Function at 0x10003740
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, ecx
push edi
push 0x104
push 0
lea esi, [eax + 0x1c]
mov dword [ebp - 0xc], eax
push esi
call fcn.100146a0
mov ebx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
sub esi, ebx
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x10003770
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100037a8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
add eax, 0xa
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov ebx, eax
push 0
push ebx
call fcn.100146a0
mov byte [ebx], 0x69
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ebx + 5], edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebx + 1], ecx
call esi
inc eax
push eax
lea eax, [ebx + 9]
push edi
push eax
call fcn.10014120
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push ebx
call fcn.10006760
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100038e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002466b
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x104
push 0
push eax
mov dword [ebp - 0x48c], ebx
call fcn.100146a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x1002e2ec
mov edi, 0x1002e2cd
cmp byte [eax + ebx - 1], 0x5c
lea eax, [ebp - 0x11c]
cmovne edi, ecx
push edi
push ebx
push str._s_s.
push eax
mov dword [ebp - 0x490], edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x488], eax
cmp eax, 0xffffffff
jne 0x10003990
xor al, al
jmp 0x10003aac
cmp byte [ebp - 0x458], 0x2e
je 0x10003a81
test byte [ebp - 0x484], 0x10
lea eax, [ebp - 0x458]
push eax
push edi
push ebx
push str._s_s_s
je 0x100039d7
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.100038e0
jmp 0x10003a7b
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x344]
push eax
call fcn.10003d20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x344]
mov edi, dword [esi + 0x10]
push eax
mov ebx, dword [edi + 4]
push ebx
push edi
call fcn.10003ea0
mov edx, dword [esi + 0x14]
mov ecx, 0x7fffffe
sub ecx, edx
cmp ecx, 1
jb 0x10003acf
lea ecx, [edx + 1]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x330]
mov dword [esi + 0x14], ecx
mov dword [edi + 4], eax
mov dword [ebx], eax
cmp edx, 0x10
jb 0x10003a6f
mov ecx, dword [ebp - 0x344]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10003a65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003aca
push edx
push ecx
call fcn.1001246f
add esp, 8
mov edi, dword [ebp - 0x490]
mov ebx, dword [ebp - 0x48c]
mov eax, dword [ebp - 0x488]
lea ecx, [ebp - 0x484]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10003a9e
mov eax, dword [ebp - 0x488]
jmp 0x10003990
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10012425
mov esp, ebp
pop ebp
ret 4
call fcn.10016624
push str.list_T__too_long
call fcn.1001358c
int3
Function at 0x10003ef0
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002f6d8
push 0x10013e80
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10032014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x440], edi
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x43c], esi
test edi, edi
jne 0x10003f77
test esi, esi
je 0x10003ff3
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10003ff3
cmp dword [ebp - 0x434], 1
je 0x10003fb1
lea eax, [ebp - 0x438]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10003ff3
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x400
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.100146a0
push ebx
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x41c]
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 4], 0xfffffffe
call fcn.10004027
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10012425
mov esp, ebp
pop ebp
ret
Function at 0x10004050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100246a0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x1f4
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], 0
push str.SYSTEMCurrentControlSetServices_
push eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 4], 0
call fcn.10016680
mov edx, 0x10033e50
add esp, 0xc
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100040c0
lea edi, [ebp - 0x208]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100040d0
mov ecx, edx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
lea eax, [ebp - 0x208]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000418c
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 4
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.Type
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x20c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x100041a7
jmp 0x10004162
push dword [ebp - 0x20c]
call edi
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10012425
mov esp, ebp
pop ebp
ret
push 0x10030260
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x1002e2cd
push eax
call fcn.1001487c
push 0x10030260
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], str.RegQueryValueEx_Type_
push eax
call fcn.1001487c
int3
Function at 0x10004da0
Capabilities:
Create process on windows
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x15c], edx
mov esi, ebx
push edi
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10004dc3
sub esi, edi
je 0x10004fce
movaps xmm0, xmmword [0x1002e830]
movups xmmword [ebp - 0x34], xmm0
push 0x2d
movaps xmm0, xmmword [0x1002e7e0]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0xccdac4f0
mov dword [ebp - 0x10], 0xcac5fbc6
mov dword [ebp - 0xc], 0xcfc3cec9
mov byte [ebp - 8], 0xc4
call fcn.1001243f
mov esi, eax
lea edi, [ebp - 0x33]
add esp, 4
mov eax, 1
sub edi, esi
lea edx, [esi + eax]
mov cl, 0xcc
sub cl, al
inc eax
xor cl, byte [edi + edx - 1]
mov byte [edx - 1], cl
cmp eax, 0x2c
jbe 0x10004e17
push 0x104
lea eax, [ebp - 0x150]
mov byte [esi + 0x2c], 0
push 0
push eax
mov dword [ebp - 0x158], 0x104
call fcn.100146a0
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
push 0xf003f
push 0
push str.Applicationsiexplore.exe_shellopencommand
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x2c
push 0
push esi
test eax, eax
je 0x10004e99
call fcn.100146a0
push 1
push esi
call fcn.1001246f
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012425
mov esp, ebp
pop ebp
ret
call fcn.100146a0
push 1
push esi
call fcn.1001246f
add esp, 0x14
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x150]
push eax
push 0
push dword [ebp - 0x154]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x154]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10004fce
lea eax, [ebp - 0x150]
push 0x1002e2d4
push eax
call fcn.10013aa0
add esp, 8
test eax, eax
je 0x10004fce
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xorps xmm0, xmm0
mov dword [ebp - 0x1a8], 0x44
movlpd qword [ebp - 0x1a4], xmm0
lea ecx, [ebp - 0x44]
movlpd qword [ebp - 0x19c], xmm0
movlpd qword [ebp - 0x194], xmm0
movlpd qword [ebp - 0x18c], xmm0
movlpd qword [ebp - 0x184], xmm0
movlpd qword [ebp - 0x17c], xmm0
movlpd qword [ebp - 0x174], xmm0
movlpd qword [ebp - 0x16c], xmm0
movaps xmm0, xmmword [0x1002e800]
movups xmmword [ebp - 0x44], xmm0
call fcn.1000bcb0
mov ecx, dword [ebp - 0x1a0]
mov esi, eax
cmp dword [ebp - 0x15c], 0
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x1a8]
cmovne ecx, esi
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x150]
mov dword [ebp - 0x1a0], ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push 1
mov word [esi + 0xc], 0
push esi
mov byte [esi + 0xe], 0
call fcn.1001246f
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012425
mov esp, ebp
pop ebp
ret
Function at 0x10004ff0
Capabilities:
Access the windows event log
Clear windows event logs
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 0x24], 0xb9ba8a0b
mov dword [ebp - 0x20], 0xa4a5aea4
mov dword [ebp - 0x1c], 0xafadaab0
mov dword [ebp - 0x18], 0xaaaf9808
mov dword [ebp - 0x14], 0xb1afb5bd
mov byte [ebp - 0x10], 0xbd
mov dword [ebp - 0xc], 0xbcbab398
mov word [ebp - 8], 0xaba2
call fcn.1001243f
mov ebx, eax
lea esi, [ebp - 0x23]
add esp, 4
mov eax, 1
sub esi, ebx
nop dword [eax]
lea edx, [ebx + eax]
mov cl, 0xcc
sub cl, al
inc eax
xor cl, byte [esi + edx - 1]
mov byte [edx - 1], cl
cmp eax, 0xb
jbe 0x10005050
push 9
mov byte [ebx + 0xb], 0
mov dword [ebp - 0x24], ebx
call fcn.1001243f
mov edi, eax
lea esi, [ebp - 0x17]
add esp, 4
mov dword [ebp - 0x28], edi
mov eax, 1
sub esi, edi
lea edx, [edi + eax]
mov cl, 0xcc
sub cl, al
inc eax
xor cl, byte [esi + edx - 1]
mov byte [edx - 1], cl
cmp eax, 8
jbe 0x10005084
push 0xffffffffffffff99
mov byte [edi + 8], 0
mov dword [ebp - 0x20], edi
call fcn.1001243f
mov edi, eax
lea esi, [ebp - 0xb]
add esp, 4
mov dword [ebp - 0x2c], edi
mov eax, 1
sub esi, edi
lea edx, [edi + eax]
mov cl, 0xcc
sub cl, al
inc eax
xor cl, byte [esi + edx - 1]
mov byte [edx - 1], cl
cmp eax, 0xffffff98
jbe 0x100050b8
mov byte [edi - 0x68], 0
xor esi, esi
mov dword [ebp - 0x1c], edi
nop word [eax + eax]
push dword [ebp + esi*4 - 0x24]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov edi, eax
test edi, edi
je 0x10005102
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
inc esi
cmp esi, 3
jb 0x100050e0
xorps xmm0, xmm0
movq qword [ebx], xmm0
push 1
mov word [ebx + 8], 0
push ebx
mov byte [ebx + 0xa], 0
call fcn.1001246f
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
push 1
push eax
movq qword [eax], xmm0
call fcn.1001246f
mov esi, dword [ebp - 0x2c]
push 0xffffffffffffff98
push 0
push esi
call fcn.100146a0
push 1
push esi
call fcn.1001246f
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10012425
mov esp, ebp
pop ebp
ret
Function at 0x10005700
Capabilities:
Terminate thread

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], vtable.CKernelManager.0
cmp dword [edi + 0x9e50], ebx
jbe 0x1000573f
push esi
lea esi, [edi + 0x210]
nop dword [eax + eax]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
lea esi, [esi + 4]
cmp ebx, dword [edi + 0x9e50]
jb 0x10005720
pop esi
push dword [edi + 8]
mov dword [edi], vtable.CManager.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
ret
Function at 0x10005ce0
Capabilities:
Delete file
Encode data using xor
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x120]
mov ebx, ecx
push eax
mov dword [ebp - 0x334], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x120]
push 0x1002e2ec
push eax
call esi
add ebx, 0x10
lea eax, [ebp - 0x120]
push ebx
push eax
call esi
push str.ex.dll
lea eax, [ebp - 0x120]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x228]
push str._d.bak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
push 0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x104
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.100146a0
add esp, 0xc
lea eax, [ebp - 0x330]
push str.C:_syslog.dat
push eax
call esi
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xd
mov dword [ebp - 0x14], 0xa7a3bc0c
mov dword [ebp - 0x10], 0xaaa1a8a4
mov dword [ebp - 0xc], 0xb9a7edaa
mov byte [ebp - 8], 0xa5
call fcn.1001243f
mov edi, eax
add esp, 4
lea eax, [ebp - 0x13]
mov ecx, 1
sub eax, edi
lea esi, [edi + ecx]
mov dl, 0xcc
sub dl, cl
inc ecx
xor dl, byte [eax + esi - 1]
mov byte [esi - 1], dl
cmp ecx, 0xc
jbe 0x10005de0
mov esi, dword [ebp - 0x334]
mov byte [edi + 0xc], 0
cmp dword [esi + 0x9e54], 0x120
je 0x10005e13
mov edx, ebx
call fcn.10005450
jmp 0x10005e1a
mov ecx, ebx
call fcn.10003ef0
lea eax, [esi + 0x110]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
xorps xmm0, xmm0
push 1
movq qword [edi], xmm0
push edi
mov dword [edi + 8], 0
call fcn.1001246f
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10012425
mov esp, ebp
pop ebp
ret
Function at 0x10006510
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
lea eax, [esp + 0x18]
mov dword [esp + 4], vtable.CShareRestrictedSD.0
push ebx
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call fcn.10005e60
push str._kaspersky
push 0x594
xor edx, edx
mov dword [esp + 0x14], eax
push 0
test eax, eax
lea ecx, [esp + 0x1c]
push 4
cmove ecx, edx
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x10033c28], eax
test eax, eax
je 0x10006593
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10033c2c], eax
test eax, eax
je 0x10006593
mov bl, 1
jmp 0x10006595
xor bl, bl
mov eax, dword [esp + 0xc]
mov dword [esp + 8], vtable.CShareRestrictedSD.0
test eax, eax
je 0x100065b5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret