joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b172
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edi, [esi + 0x22414]
mov byte [esi + 1], 0
mov byte [esi], 0
call fcn.00479de3
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x111], 0
and eax, ebx
mov dword [ebp - 0x118], 0x41
test eax, eax
je 0x47b223
push dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push str._c:_
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x47b223
movzx eax, byte [ebp - 0x111]
sub al, 2
mov edi, esi
push eax
call fcn.0047b25a
test eax, eax
je 0x47b220
inc byte [esi]
inc byte [esi + 1]
add ebx, ebx
mov eax, ebx
and eax, dword [ebp - 0x11c]
inc byte [ebp - 0x111]
inc dword [ebp - 0x118]
cmp byte [ebp - 0x111], 0x20
jb 0x47b1d8
mov al, byte [esi + 1]
sub al, byte [esi]
mov ecx, dword [ebp - 4]
neg al
pop edi
pop ebx
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00499bb9
leave
ret

Function at 0x47ee4c
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4b0b81
call fcn.004afcf2
lea ebx, [esi + 4]
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi], edi
jne 0x47eeb1
push 0xc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x47ee84
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x47ee86
xor eax, eax
cmp eax, edi
je 0x47eead
mov ecx, dword [ebp + 0xc]
push edi
push edi
push eax
push 0x47ef19
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
push edi
push edi
mov dword [eax], esi
mov dword [eax + 8], ecx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
cmp dword [esi], edi
je 0x47eeb4
xor edi, edi
inc edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.004afdca
ret 8

Function at 0x47eec5
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea edi, [esi + 4]
push edi
call ebx
cmp dword [esi], 0
je 0x47ef0f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebp
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call ebx
mov eax, dword [esi]
test eax, eax
je 0x47ef09
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
push edi
call ebp
pop ebp
jmp 0x47ef16
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
ret
Function at 0x47f30e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x47f364
mov ax, word [ebp - 0x20c]
mov word [esi], ax
xor eax, eax
inc eax
jmp 0x47f366
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499bb9
leave
ret

Function at 0x47f372
Capabilities:
Delete file

Disassembly:
push 0x58
mov eax, 0x4b085f
call fcn.004afd5b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
and dword [ebp - 4], 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00441186
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x2c]
push eax
call fcn.00441175
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00441274
test al, al
pop ecx
jne 0x47f3eb
xor esi, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
call fcn.004afdde
ret
lea eax, [ebp - 0x2c]
call fcn.004413a7
cmp dword [ebp - 0x14], 8
mov esi, eax
mov eax, dword [ebp - 0x28]
jae 0x47f401
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
test esi, esi
setg al
mov esi, eax
jmp 0x47f3c9
Function at 0x47f413
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.MSVCR80.dll_wcslen]
mov ebx, eax
cmp ebx, 0x104
pop ecx
jbe 0x47f449
or eax, 0xffffffff
jmp 0x47f4ad
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x7e]
push esi
push eax
mov word [ebp - 0x80], si
call sub.MSVCR80.dll_memset
add esp, 0xc
test ebx, ebx
jbe 0x47f4aa
lea eax, [ebp - 0x80]
sub edi, eax
lea eax, [edi + esi*2]
movzx eax, word [ebp + eax - 0x80]
cmp ax, 0x5c
mov word [ebp + esi*2 - 0x80], ax
je 0x47f484
cmp ax, 0x2f
jne 0x47f4a5
lea eax, [ebp - 0x80]
push 0
push eax
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
je 0x47f4a5
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR80.dll__wmkdir]
test eax, eax
pop ecx
jne 0x47f4ac
inc esi
cmp esi, ebx
jb 0x47f46b
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop ebx
call fcn.00499bb9
add ebp, 0x18c
leave
ret

Function at 0x47f6d8
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x2c
mov eax, 0x4b2863
call fcn.004afcf2
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.MSVCR80.dll_towlower]
add eax, 0x41
movzx esi, ax
push esi
call edi
push dword [ebp + 8]
mov bx, ax
call edi
cmp bx, ax
pop ecx
pop ecx
jne 0x47f79a
mov eax, dword [0x4f7c54]
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
movzx eax, si
push eax
push 0x4ca3b4
lea ecx, [ebp - 0x14]
call fcn.00417742
mov ebx, dword [ebp - 0x14]
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x18]
test ecx, eax
je 0x47f78e
and dword [ebp - 0x20], 0
xor eax, eax
and dword [ebp - 0x28], eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x47f78e
push ebx
call fcn.0047f372
test eax, eax
pop ecx
je 0x47f78e
test si, si
ja 0x47f7af
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.0040113b
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x1a
jne 0x47f6fc
xor eax, eax
call fcn.004afdca
ret
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov word [ebp - 0x30], si
mov dword [ebp - 0x34], eax
lea esi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx - 0x10]
movsd dword es:[edi], dword [esi]
call fcn.0040113b
xor eax, eax
inc eax
jmp 0x47f7a9
Function at 0x47f7d6
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x70
mov eax, 0x4b2840
call fcn.004afcf2
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x43
call fcn.0047f30e
test eax, eax
je 0x47f912
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
add eax, 0x41
movzx esi, ax
cmp si, word [ebp - 0x1c]
je 0x47f8fc
mov eax, dword [0x4f7c54]
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
movzx eax, si
push eax
push 0x4ca3b4
lea ecx, [ebp - 0x18]
call fcn.00417742
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x20]
test ecx, eax
je 0x47f8ed
and dword [ebp - 0x2c], 0
xor eax, eax
and dword [ebp - 0x34], eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x47f8f0
cmp dword [ebp - 0x28], 0
ja 0x47f8a0
jb 0x47f89a
cmp dword [ebp - 0x2c], 0x80000000
jae 0x47f8a0
cmp dword [ebp + 8], 0
jne 0x47f8f0
push edi
call fcn.0047f372
test eax, eax
pop ecx
je 0x47f8f0
test si, si
jbe 0x47f8f0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
mov word [ebp - 0x44], si
mov esi, dword [ebx + 4]
push eax
push dword [esi + 4]
push esi
call fcn.0047f99a
mov ecx, dword [ebx + 8]
mov edx, 0xfffffff
sub edx, ecx
cmp edx, 1
jb 0x47f918
inc ecx
mov dword [ebx + 8], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
jmp 0x47f8f0
mov edi, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
call fcn.0040113b
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1a
jne 0x47f811
xor eax, eax
cmp eax, dword [ebx + 8]
sbb eax, eax
neg eax
call fcn.004afdca
ret
push str.list_T__too_long
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.0040183b
push 0x4e05ec
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], vtable.std::length_error.0
call sub.MSVCR80.dll__CxxThrowException
int3
Function at 0x4810de
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, eax
cmp esi, edi
mov ebx, ecx
mov dword [esp + 0x1c], edi
jne 0x481113
mov eax, dword [0x4f9b74]
cmp eax, edi
je 0x481101
mov esi, dword [eax + 4]
jmp 0x481103
xor esi, esi
cmp esi, edi
jne 0x481113
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x481138
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x481138
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x481138
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push esi
mov ecx, ebx
mov dword [ebx + 0x438], edi
call fcn.004819ea
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x48115e
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x481266
mov edx, eax
call fcn.0040e8de
mov dword [esp + 0x20], eax
mov eax, esi
call fcn.0045f29e
cmp dword [ebx + 0x428], edi
je 0x48120e
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp ebp, dword [esp + 0x14]
je 0x4811b7
push 1
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x14]
je 0x4811ef
push edi
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x48120e
push edi
push edi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
lea ebp, [ebx + 4]
push ebp
mov dword [ebx + 0x438], edi
call fcn.00405d31
cmp dword [esp + 0x1c], edi
je 0x48124e
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x48124e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x48124e
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040e8de
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4817c1
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x481800
mov eax, dword [0x4f9b74]
cmp eax, esi
je 0x4817eb
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
jmp 0x4817ee
mov dword [ebp + 8], esi
cmp dword [ebp + 8], esi
jne 0x481800
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x48182a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp + 8], eax
je 0x48182a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x48182a
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebx + 0x438], esi
call fcn.00481eae
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x481854
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x481969
mov edx, eax
call fcn.0040e8de
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
call fcn.0045f29e
cmp dword [ebx + 0x428], esi
je 0x48190e
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp edi, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4818b7
push 1
push dword [esp + 0x18]
push dword [esp + 0x14]
call edi
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
je 0x4818ef
push esi
push eax
push dword [esp + 0x14]
call edi
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x48190e
push esi
push esi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
lea edi, [ebx + 4]
push edi
mov dword [ebx + 0x438], esi
call fcn.00405d31
cmp dword [esp + 0x18], esi
je 0x481952
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 8], esi
je 0x481952
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi]
jne 0x481952
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x1c]
call fcn.0040e8de
push dword [edi]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x482aef
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x4e
push ebx
push esi
push edi
mov edi, eax
jne 0x482b4d
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0xffffffff
jne 0x482bbd
xor ebx, ebx
inc ebx
mov dword [edi + 0x56c], ebx
cmp dword [eax + 8], ebx
jne 0x482b30
cmp dword [eax + 0xc], 0xcb
jne 0x482b30
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebx
jmp 0x482b38
xor eax, eax
mov dword [edi + 0x56c], eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp dword [edi + 0x56c], 0
je 0x482bbd
mov eax, ebx
jmp 0x482bdb
cmp dword [ebp + 0xc], 0x110
jne 0x482b78
push ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
lea esi, [edi + 0x56c]
inc ebx
mov eax, esp
mov dword [esi], ebx
mov dword [eax], ecx
call fcn.00482d2b
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp dword [esi], 0
jmp 0x482b44
cmp dword [ebp + 0xc], 0x112
jne 0x482bbd
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
sub eax, 0xf030
mov dword [edi + 0x56c], ebx
je 0x482baf
sub eax, 0x30
je 0x482ba2
and dword [edi + 0x56c], 0
jmp 0x482bb5
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x482bb5
mov dword [edi + 0x56c], ebx
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x482b3d
push 0
push dword [ebp + 0x18]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048315d
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x483f7e
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x483fe7
mov eax, dword [eax + 0xc]
cmp eax, 0xcb
jne 0x483fc2
push dword [esi + 0x544]
push dword [esi + 0x540]
push 2
call fcn.0047c9d6
add esp, 0xc
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
inc eax
pop esi
ret
cmp eax, 0x130
jne 0x483fd0
call fcn.0048449f
jmp 0x483fbd
cmp eax, 0xcc
jne 0x483fe7
push dword [esi + 0x544]
push dword [esi + 0x540]
push 1
jmp 0x483fa1
and dword [esi + 0x520], 0
xor eax, eax
pop esi
ret

Function at 0x48449f
Capabilities:
Hide graphical window

Disassembly:
push dword [esi + 0x544]
push dword [esi + 0x540]
push 3
call fcn.0047c9d6
lea eax, [esi + 0x548]
add esp, 0xc
cmp dword [eax], 0
je 0x4844c9
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
ret
Function at 0x484d00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x3cc]
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x484d31
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x484d75
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x150]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x484d75
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x278]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x3b8]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x484ec7
push eax
call fcn.0041c863
mov edi, eax
test edi, edi
pop ecx
je 0x484e46
mov eax, dword [edi + 0x14]
push 2
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x484dbb
push 1
push edi
call fcn.0046f0a7
movzx eax, word [ebp + 0xc]
movzx ebx, bx
shl ebx, 0x10
or ebx, eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0040e874
mov eax, dword [ebp - 4]
cmp dword [esi + 0x3b8], eax
jne 0x484e11
mov ecx, dword [edi + 0x44]
xor eax, eax
cmp ecx, eax
je 0x484e03
cmp word [ecx], ax
je 0x484e03
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x484e46
cmp dword [edi + 0x14], eax
je 0x484e46
mov dword [ebp - 0xc], 1
jmp 0x484e46
mov eax, dword [edi]
push 1
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x484e2f
push 1
push edi
call fcn.0046f0a7
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.0040e874
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x3b8], eax
je 0x484e88
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x484ec7
cmp dword [ebp - 0x10], eax
je 0x484ec7
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x484ec7
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x3b4
cmp eax, dword [esi]
jne 0x484ec7
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4851cd
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3d4]
sub esp, 0x454
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x3d0], eax
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
xor ebx, ebx
push 0x400
mov dword [ebp - 0x78], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0x410
call dword [sym.imp.MSVCR80.dll_malloc]
push 0x3f
mov dword [esi], eax
lea eax, [ebp + 0x391]
push ebx
push eax
mov byte [ebp + 0x390], bl
call sub.MSVCR80.dll_memset
add esp, 0x10
lea edi, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
mov al, byte [edi]
cmp al, bl
je 0x4852b9
mov ecx, dword [esi]
mov edx, dword [ebp - 0x74]
mov byte [edx + ecx], al
movsx eax, byte [edi]
push eax
lea eax, [ebp + 0x390]
push str.._c:
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
lea eax, [ebp + 0x390]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x4852a6
mov eax, dword [esi]
mov ecx, dword [ebp - 0x74]
push ebx
lea eax, [eax + ecx + 8]
lea ecx, [ebp - 0x80]
push ecx
push 0x20
push eax
push ebx
push ebx
push 0x74004
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x7c]
inc dword [ebp - 0x78]
add dword [ebp - 0x74], 0x28
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCR80.dll_strlen
lea edi, [edi + eax + 1]
cmp edi, ebx
pop ecx
jne 0x485229
mov ecx, dword [ebp + 0x3d0]
mov eax, dword [ebp - 0x78]
pop edi
xor ecx, ebp
pop ebx
call fcn.00499bb9
add ebp, 0x3d4
leave
ret