joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465eb0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x465ecc
cmp dword [esi + 4], 0
je 0x465ef9
test byte [ebx + 0x55], 1
jne 0x465eeb
mov eax, ebx
call fcn.00464a64
test eax, eax
jne 0x465eeb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x466009
mov edx, esi
mov eax, ebx
call fcn.004659d4
jmp 0x466009
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x466002
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00467d84
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004626ec
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00465eb0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00467d84
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466009
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469354
Capabilities:
Check for time delay via gettickcount
Get number of processors
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [0x50277c]
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 1
xor eax, eax
push ebp
push 0x46952d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046155c
add dword [ebp - 0xc], 4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00462790
mov eax, dword [esi]
call fcn.00457fbc
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
add edx, dword [ebp - 0x14]
cmp eax, edx
jge 0x4693c6
mov eax, dword [esi]
call fcn.00457fbc
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.00457fc8
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x4693ea
mov eax, dword [esi]
call fcn.00457fc8
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00457fb0
cmp eax, dword [ebp - 0x18]
jle 0x469400
mov eax, dword [esi]
call fcn.00457fb0
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00457fa4
cmp eax, dword [ebp - 0xc]
jle 0x469416
mov eax, dword [esi]
call fcn.00457fa4
mov dword [ebp - 0xc], eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00467d84
push eax
call sub.user32.dll_SetWindowPos
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x214]
cmp eax, 0xfa
jbe 0x4694dd
mov eax, ebx
call fcn.0040465c
cmp eax, 0x64
jge 0x4694dd
cmp dword [0x4fce68], 0
je 0x4694dd
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1016
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x4694dd
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1018
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x4694a0
mov bl, 2
jmp 0x4694bb
lea edx, [ebp - 0x20]
mov eax, dword [0x503b74]
call fcn.0046c63c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jle 0x4694b9
xor ebx, ebx
jmp 0x4694bb
mov bl, 1
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x4fcf70]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 4]
call fcn.00467d84
push eax
call dword [0x4fce68]
mov eax, dword [0x502588]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.00465468
push 4
mov eax, dword [ebp - 4]
call fcn.00467d84
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469534
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 0
ret
Function at 0x46c74c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5027ac]
cmp byte [eax + 0xc], 0
je 0x46c8b9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46c8b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x503bc8], 0
jne 0x46c7a0
push 0x46c8c0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x46c8c8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503bc8], eax
cmp dword [0x4fcf98], 0
jne 0x46c89b
push 0x46c8d8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4fcf98], eax
cmp dword [0x4fcf98], 0
je 0x46c89b
push 0x46c8e4
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503bcc], eax
push 0x46c8f4
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503bd0], eax
push 0x46c908
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503bd4], eax
push 0x46c920
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503bd8], eax
push 0x46c938
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503bdc], eax
push 0x46c94c
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503be0], eax
push 0x46c964
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503be4], eax
push 0x46c97c
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503be8], eax
push 0x46c998
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503bec], eax
push 0x46c9a4
mov eax, dword [0x4fcf98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503bf0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c8b9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x471100
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404370
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x47114f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004045f0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476db0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
cmp dword [0x4fd0d0], 0
jg 0x476ed6
mov eax, 0x503c1c
mov edx, 0x104
call fcn.00405060
push 0x104
mov eax, dword [0x503c1c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov edx, eax
mov eax, 0x503c1c
call fcn.00405060
xor eax, eax
mov dword [esp + 8], eax
call sub.kernel32.dll_GetCommandLineW
mov dword [esp], eax
cmp dword [esp], 0
je 0x476ed6
jmp 0x476eb9
add dword [esp], 2
mov eax, dword [esp]
mov di, word [eax]
test di, di
je 0x476e25
cmp di, 0x20
jbe 0x476e10
mov eax, dword [esp]
mov dword [esp + 4], eax
xor ebp, ebp
xor ebx, ebx
jmp 0x476e43
cmp si, 0x22
je 0x476e3b
inc ebp
jmp 0x476e3e
xor bl, 1
add dword [esp + 4], 2
mov eax, dword [esp + 4]
mov si, word [eax]
test si, si
je 0x476e5a
cmp si, 0x20
seta al
or al, bl
jne 0x476e32
mov eax, dword [esp]
cmp eax, dword [esp + 4]
je 0x476eb2
cmp dword [esp + 8], 0
jle 0x476eae
mov eax, dword [esp + 8]
lea eax, [eax*4 + 0x503c1c]
mov edx, ebp
call fcn.00405060
mov ebp, 1
mov eax, dword [esp]
cmp word [eax], 0x22
je 0x476ea1
mov eax, dword [esp + 8]
mov eax, dword [eax*4 + 0x503c1c]
mov edx, dword [esp]
mov dx, word [edx]
mov word [eax + ebp*2 - 2], dx
inc ebp
add dword [esp], 2
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jb 0x476e81
inc dword [esp + 8]
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
cmp word [eax], 0
je 0x476ecd
cmp dword [esp + 8], 8
jl 0x476e14
mov eax, dword [esp + 8]
mov dword [0x4fd0d0], eax
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x476fb8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x477025
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x47700d
mov eax, dword [0x50279c]
cmp dword [eax], 2
jne 0x476fe4
push ebx
call sub.kernel32.dll_GetFileAttributesW
jmp 0x476ffc
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004045a8
mov eax, dword [ebp - 4]
call fcn.0040485c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x477005
test al, 0x10
jne 0x477009
xor ebx, ebx
jmp 0x47700f
mov bl, 1
jmp 0x47700f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47702c
lea eax, [ebp - 4]
call fcn.00404370
ret
Function at 0x4778c8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417c3c]
call fcn.004050c4
xor eax, eax
push ebp
push 0x477a0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4fd0d4], 0
jne 0x47791b
mov ecx, dword [0x5021d4]
mov dl, 1
mov eax, dword [0x408050]
call fcn.0040da5c
call fcn.00403cec
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e9c
mov eax, ebx
call fcn.00404cec
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x477a1c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004061a4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404cfc
test eax, eax
jle 0x4779b3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4779ac
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404624
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004045f0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408fd4
test eax, eax
jne 0x4779ac
mov ebx, 0x15
jmp 0x4779b8
mov ebx, 0x10
jmp 0x4779b8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4fd0d4]
call fcn.00477820
mov eax, dword [ebp - 8]
call fcn.00477820
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004061bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477a13
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404394
lea eax, [ebp - 0x10]
mov edx, dword [0x417c3c]
call fcn.00405194
ret

Function at 0x47bd18
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x47bd72
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x50226c]
cmp byte [eax], 0
je 0x47bd42
push ebx
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x47bd5c
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004045a8
mov eax, dword [ebp - 4]
call fcn.0040485c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bd79
lea eax, [ebp - 4]
call fcn.00404370
ret
Function at 0x47be20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.004079b8
cmp ax, 0xffff
jne 0x47be41
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x47becd
push eax
push edi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x47becd
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, ebx
dec eax
test eax, eax
jl 0x47be8e
inc eax
mov edx, dword [ebp - 8]
movzx edx, word [edx]
add edx, edx
add edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
dec eax
jne 0x47be7a
mov eax, dword [ebp - 8]
movzx esi, word [eax]
add dword [ebp - 8], 2
cmp dword [ebp - 4], 0
je 0x47becd
cmp dword [ebp + 8], 0
jle 0x47becd
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.0042f9c0
mov esi, eax
test esi, esi
jle 0x47bec4
mov ecx, esi
add ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004079cc
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x47ca2c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x47ca90
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004045f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409788
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca97
lea eax, [ebp - 0xc]
call fcn.00404370
ret

Function at 0x47cb3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x47cb98
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x47cb67
call fcn.0040efe4
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402a24
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x47cb98
call fcn.0040efe4
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x4837d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040484c
xor eax, eax
push ebp
push 0x4838ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404370
cmp dword [ebp - 4], 0
je 0x483834
mov eax, dword [ebp - 4]
call fcn.0048b328
test al, al
je 0x483834
lea eax, [ebp - 0x109]
mov edx, dword [ebp - 4]
call fcn.0040a3cc
jmp 0x483845
lea eax, [ebp - 0x109]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x109]
call fcn.0040a570
mov eax, dword [ebp - 0x110]
call fcn.0048b328
test al, al
jne 0x483881
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x109]
call fcn.0040a570
mov eax, dword [ebp - 0x114]
call fcn.0048b6ec
lea eax, [ebp - 0x109]
push eax
push 0
push 0x4838dc
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x109]
call fcn.0040a570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4838d5
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.00404394
lea eax, [ebp - 4]
call fcn.00404370
ret
Function at 0x48668c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.0040484c
xor eax, eax
push ebp
push 0x486780
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048309c
test al, al
je 0x486754
xor edx, edx
push ebp
push 0x4866f6
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004838e4
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
call fcn.00409d90
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x486700
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048360c
test al, al
jne 0x48672e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x524]
push eax
push 0x6232
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3200], 0
je 0x48676a
cmp dword [ebp + 8], 0x20
je 0x48676a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040485c
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x48676a
mov eax, dword [ebp - 4]
add eax, 0x4d8
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3208]
call fcn.004043c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486787
lea eax, [ebp - 0xc]
call fcn.00404370
ret

Function at 0x486c20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
test edx, edx
jle 0x486c4c
mov ebx, dword [ecx]
movzx esi, byte [eax]
xor ebx, esi
and ebx, 0xff
mov esi, dword [0x5024f0]
movzx ebx, word [esi + ebx*2]
mov esi, dword [ecx]
shr esi, 8
xor ebx, esi
mov dword [ecx], ebx
inc eax
dec edx
test edx, edx
jg 0x486c26
pop esi
pop ebx
ret

Function at 0x4875f8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040484c
xor eax, eax
push ebp
push 0x48765d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x487640
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048b11c
mov eax, dword [ebp - 8]
call fcn.0048b0cc
push eax
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
jmp 0x487642
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487664
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404394
ret
Function at 0x48766c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040484c
xor eax, eax
push ebp
push 0x487738
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x487713
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x60]
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4876f8
push pe_nt_image_headers32
lea eax, [ebx + 0x10d]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
push pe_nt_image_headers32
lea eax, [ebx + 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0048b11c
mov eax, dword [ebp - 0x10]
call fcn.0048b0cc
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4876fc
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48771a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x487c0c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x487c25
add esp, 0xfffffff0
call fcn.00403884
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp + 0x10]
call fcn.0040484c
mov eax, dword [ebp + 0xc]
call fcn.0040484c
xor eax, eax
push ebp
push 0x487d1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0x58], esi
mov eax, esi
mov dword [ebx + 0x34], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa0]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x3c], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa4]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x44], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa8]
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x2c], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xac]
mov dword [ebx + 0x28], edx
mov eax, dword [eax + 0x558]
mov dword [ebx + 0x5c], eax
mov ax, word [ebp + 8]
and ax, 0xffff
cmp ax, 0xffff
jne 0x487cc5
lea edx, [ebp - 8]
mov eax, dword [ebp + 0x10]
call fcn.004837d8
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x64]
call fcn.004043c4
lea eax, [ebx + 0x54]
mov edx, dword [ebp + 0xc]
call fcn.004043c4
mov byte [ebx + 0x50], 1
jmp 0x487cdc
lea eax, [ebx + 0x64]
mov edx, dword [ebp + 0xc]
call fcn.004043c4
lea eax, [ebx + 0x54]
call fcn.00404370
mov byte [ebx + 0x50], 0
mov ax, word [ebp + 8]
push eax
mov ecx, dword [ebx + 0x64]
xor edx, edx
mov eax, ebx
call fcn.0048c014
mov ax, word [ebp + 8]
mov word [ebx + 0x62], ax
mov byte [ebx + 0x60], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487d23
lea eax, [ebp - 8]
call fcn.00404370
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00404394
ret