joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e4ea
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x78
cmp dword [eax + 0x28], 2
push esi
push edi
jne 0x42e62b
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [eax + 4]
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffec
push dword [eax + 4]
and esi, 0xff7fffff
or esi, 0x400000
call edi
xor edi, edi
push eax
push edi
push esi
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0xc]
sub dword [ebx], eax
mov eax, dword [esp + 0x10]
sub dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
sub dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
sub dword [ebx + 0xc], eax
push edi
push 0x474e7c
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [esp + 8], eax
cmp eax, edi
je 0x42e62b
mov esi, dword [sym.imp.USER32.dll_CopyRect]
push ebx
lea eax, [esp + 0x30]
push eax
call esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x40]
call fcn.0042e49f
mov esi, dword [esp + 8]
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
push eax
push 4
mov dword [esp + 0x64], 0x24
mov dword [esp + 0x68], esi
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test al, 1
je 0x42e62b
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_SubtractRect]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x42e62b
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x1c]
jne 0x42e621
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x24]
jle 0x42e616
inc dword [ebx]
jmp 0x42e62b
jge 0x42e61d
inc dword [ebx + 4]
jmp 0x42e62b
cmp eax, dword [esp + 0x1c]
jle 0x42e628
dec dword [ebx + 0xc]
jmp 0x42e62b
dec dword [ebx + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4324dc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00432a1f
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, 0xffffffff
je 0x4325a1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
jne 0x432533
inc edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4325a3
cmp ebx, 0xf4240
jle 0x432546
push ebx
push esi
call fcn.0043324b
test eax, eax
je 0x4325a1
lea eax, [ebx + 2]
push eax
push 1
call fcn.00447ee5
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x432526
push edi
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432591
cmp dword [ebp - 4], ebx
jne 0x432591
mov edi, dword [ebp + 8]
mov eax, esi
call fcn.004325aa
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00444e19
xor eax, eax
pop ecx
inc eax
jmp 0x4325a3
push esi
call fcn.00444e19
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43324b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x466aba
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x480070]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, 0x186a0
cmp dword [ebp + 0xc], ebx
jge 0x433284
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00446362
mov edi, eax
xor esi, esi
pop ecx
mov dword [esp + 0x18], edi
cmp edi, esi
jne 0x43329b
xor eax, eax
jmp 0x433312
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], esi
call fcn.00432446
push esi
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push dword [ebp + 8]
mov dword [esp + 0x84], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x4332e9
cmp dword [esp + 0x14], ebx
jne 0x4332e9
mov eax, edi
lea edi, [esp + 0x1c]
call fcn.004325aa
test eax, eax
je 0x4332e9
cmp dword [esp + 0x24], esi
je 0x4332e9
mov dword [esp + 0x10], 1
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esp + 0x18]
call fcn.00444e19
or dword [esp + 0x74], 0xffffffff
pop ecx
lea eax, [esp + 0x1c]
push eax
call fcn.004324b5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43488b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x4349b5
mov ebx, dword [ebp + 0x10]
xor edx, edx
cmp ebx, edx
je 0x4349b5
mov eax, dword [ebp + 8]
cmp eax, edx
je 0x4349b5
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [ebp + 0x10], eax
mov dword [ebx], edx
cmp eax, edx
je 0x4349b0
push edi
jmp 0x4348d6
xor edx, edx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
cmp ecx, eax
jae 0x434911
mov edi, dword [ebp + 0x10]
sub eax, ecx
cmp eax, edi
jge 0x4348eb
mov edi, eax
push edi
push ecx
push dword [ebp + 8]
call fcn.0044a210
add dword [esi + 0xc], edi
add dword [ebp + 8], edi
mov eax, edi
cdq
add esp, 0xc
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], edx
add dword [ebx], edi
sub dword [ebp + 0x10], edi
jmp 0x43499f
mov edi, 0x2000
cmp dword [ebp + 0x10], edi
mov dword [ebp + 0xc], edx
jl 0x434950
mov eax, dword [esi + 8]
push edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4349ab
mov eax, dword [ebp + 0xc]
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], 0
add dword [ebx], eax
sub dword [ebp + 0x10], eax
jmp 0x43499b
mov ecx, dword [esi + 0x1c]
cmp ecx, edx
mov eax, dword [esi + 0x18]
jg 0x434967
jl 0x434960
cmp eax, edx
jae 0x434967
xor eax, eax
mov dword [ebp - 8], edx
jmp 0x43496a
mov dword [ebp - 8], ecx
push edx
lea ecx, [ebp + 0xc]
push ecx
push edx
push edi
push dword [ebp - 8]
push eax
call fcn.0044e600
sub edi, eax
push edi
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4349ab
mov ecx, dword [esi + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
add ecx, eax
mov dword [esi + 0x10], ecx
test eax, eax
je 0x4349af
cmp dword [ebp + 0x10], 0
jne 0x4348d4
jmp 0x4349af
and dword [ebp - 4], 0
pop edi
mov eax, dword [ebp - 4]
jmp 0x4349b7
xor eax, eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x434e76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x434e86
xor eax, eax
jmp 0x434ee3
mov eax, dword [esi + 0xc]
mov ecx, 0x2000
push edi
mov edi, dword [ebp + 0xc]
sub ecx, eax
cmp ecx, edi
jb 0x434eaf
mov ecx, dword [esi + 8]
push edi
push dword [ebp + 8]
add ecx, eax
push ecx
call fcn.0044a210
add esp, 0xc
add dword [esi + 0xc], edi
jmp 0x434ed4
call fcn.00434ee8
test eax, eax
je 0x434ee0
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ee0
cmp dword [ebp + 0xc], edi
jne 0x434ee0
add dword [esi + 0x10], edi
adc dword [esi + 0x14], 0
xor eax, eax
inc eax
jmp 0x434ee2
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x434ee8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
je 0x434f1c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x434f1c
push 0
lea edx, [ebp - 4]
push edx
push eax
push dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434f18
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0xc]
je 0x434f1c
xor eax, eax
leave
ret
and dword [esi + 0xc], 0
xor eax, eax
inc eax
leave
ret

Function at 0x434fa3
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
push edi
xor ebp, ebp
push ebp
mov eax, esi
call fcn.00435021
push ebp
mov edi, 0x80
push edi
push 2
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 1
push 0x40000000
push ebx
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x43500e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x43500a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push 2
push 0
push 1
push 0x40000000
push ebx
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x43500e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x43501e
push ebx
call fcn.00448425
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop ecx
mov dword [esi + 0x18], eax
pop edi
pop ebp
ret

Function at 0x435261
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x43526c
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x43531e
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46c2d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46c2d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46c2d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46c2d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46c2d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46c2d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46c2d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46c2d0]
inc ecx
sub edi, 8
dec esi
jne 0x435283
pop ebx
test edi, edi
je 0x435337
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x46c2d0]
inc ecx
dec edi
jne 0x435322
pop esi
not eax
pop edi
ret
Function at 0x43e637
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x43e63f
mov dword [ecx*4 + 0x485b00], eax
inc ecx
cmp ecx, 0x100
jb 0x43e63a
mov edx, 0x800
jmp 0x43e68c
mov eax, dword [ecx*4 + 0x485700]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x485b00]
inc ecx
mov dword [ecx*4 + 0x485afc], eax
cmp ecx, edx
jb 0x43e66b
mov eax, 0x440996
mov esi, 0x440a32
mov dword [0x485afc], eax
mov dword [0x487b00], eax
mov dword [0x485af8], esi
call fcn.00440bcd
test eax, eax
jne 0x43e6b9
mov dword [0x487b00], esi
pop esi
ret

Function at 0x441dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
push edi
xor edi, edi
and edx, 7
cmp ecx, 5
jae 0x441ddf
xor eax, eax
jmp 0x441ee2
sub ecx, 4
add ecx, eax
push ebx
mov dword [ebp - 4], ecx
push esi
lea esi, [edi + eax]
jmp 0x441df9
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x441dfe
inc esi
cmp esi, dword [ebp - 4]
jb 0x441dee
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, eax
sub edi, eax
cmp esi, dword [ebp - 4]
jae 0x441ecc
cmp ecx, 2
jbe 0x441e9a
xor edx, edx
movzx ecx, byte [esi + 4]
lea ebx, [ecx + 1]
test bl, 0xfe
jne 0x441ec1
movzx ebx, byte [esi + 3]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 2]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 1]
shl ecx, 8
or ecx, ebx
add edi, 5
mov ebx, ecx
sub ebx, edi
test edx, edx
je 0x441e77
and edx, 6
shl edx, 2
mov ecx, edx
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], ecx
inc eax
test al, 0xfe
jne 0x441e72
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
sub ebx, edi
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, ebx
shr ecx, 8
mov byte [esi + 1], bl
mov byte [esi + 2], cl
mov ecx, ebx
shr ebx, 0x18
shr ecx, 0x10
and bl, 1
neg bl
mov byte [esi + 3], cl
mov byte [esi + 4], bl
jmp 0x441de9
shr edx, cl
test edx, edx
je 0x441e1c
cmp edx, 4
ja 0x441ec1
cmp edx, 3
je 0x441ec1
mov ecx, edx
shr ecx, 1
movzx ecx, byte [ecx + esi + 1]
inc ecx
test cl, 0xfe
jne 0x441e1c
or edx, 8
shr edx, 1
inc edi
jmp 0x441de9
push 2
pop eax
shr edx, cl
cmp eax, ecx
mov ecx, dword [ebp + 0xc]
sbb eax, eax
not eax
and eax, edx
pop esi
mov dword [ecx], eax
mov eax, edi
pop ebx
pop edi
leave
ret
Function at 0x444a08
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x483268], 0
push esi
jne 0x44497b
call fcn.004448a1
test eax, eax
je 0x4449be
mov eax, dword [0x483268]
cmp eax, 1
jne 0x44499c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4449be
pop esi
ret
push eax
call dword [0x483270]
test eax, eax
jne 0x444a06
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4449c2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x483268]
call dword [0x483270]
mov edi, eax
test edi, edi
je 0x4449e7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x444a03
mov edi, esi
add esi, 0xff0
push edi
push dword [0x483268]
call dword [0x48326c]
add edi, 0x10
cmp edi, esi
jb 0x4449ef
mov eax, edi
pop edi
pop esi
ret
jmp 0x444968

Function at 0x444b2e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480070]
jne 0x444b38
repz ret
jmp fcn.004493ec

Function at 0x45afe0
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.00449564
and dword [ebp - 4], 0
cmp dword [0x483e48], 0
mov ebx, eax
jne 0x45b091
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45b142
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45b142
push eax
call fcn.004494f2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x483e48], eax
call esi
push eax
call fcn.004494f2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x483e4c], eax
call esi
push eax
call fcn.004494f2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x483e50], eax
call esi
push eax
call fcn.004494f2
pop ecx
mov dword [0x483e58], eax
test eax, eax
je 0x45b091
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004494f2
pop ecx
mov dword [0x483e54], eax
mov eax, dword [0x483e54]
cmp eax, ebx
je 0x45b0e9
cmp dword [0x483e58], ebx
je 0x45b0e9
push eax
call fcn.0044956d
push dword [0x483e58]
mov esi, eax
call fcn.0044956d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45b0e9
test edi, edi
je 0x45b0e9
call esi
test eax, eax
je 0x45b0e0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45b0e0
test byte [ebp - 0xc], 1
jne 0x45b0e9
or dword [ebp + 0x10], 0x200000
jmp 0x45b122
mov eax, dword [0x483e4c]
cmp eax, ebx
je 0x45b122
push eax
call fcn.0044956d
pop ecx
test eax, eax
je 0x45b122
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45b122
mov eax, dword [0x483e50]
cmp eax, ebx
je 0x45b122
push eax
call fcn.0044956d
pop ecx
test eax, eax
je 0x45b122
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x483e48]
call fcn.0044956d
pop ecx
test eax, eax
je 0x45b142
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45b144
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10049080]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push 0x10044f2c
push esi
mov dword [ebp - 0x48], ebx
call fcn.1002372a
mov edi, eax
add esp, 8
mov dword [ebp - 0x4c], edi
test edi, edi
jne 0x10002864
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100193e9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.100246d8
mov esi, dword [ebp - 0x28]
add esp, 8
shr esi, 1
mov ecx, ebx
mov dword [ebp - 0x44], esi
push esi
call fcn.1000eb80
push edi
push esi
push 2
push dword [ebx]
call fcn.10025b6e
add esp, 0x10
xor edi, edi
xor edx, edx
test esi, esi
je 0x100028b8
mov eax, dword [ebx]
lea edx, [eax + edi*2]
inc edi
mov ax, word [edx]
mov ch, al
mov cl, ah
mov eax, edi
mov word [edx], cx
xor ecx, ecx
cdq
cmp edx, ecx
jl 0x10002897
jg 0x100028b6
cmp eax, esi
jb 0x10002897
xor edx, edx
cmp byte [ebp + 8], 0
jne 0x100029b9
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
sub eax, edi
cmp eax, 0x1186040
jne 0x100029b9
xor ecx, ecx
test edx, edx
jb 0x100029b9
ja 0x100028e8
test esi, esi
je 0x100029b9
cmp word [edi + ecx*2], 0
jl 0x10002906
inc ecx
mov eax, ecx
cdq
test edx, edx
jl 0x100028e8
jg 0x100029b9
cmp eax, esi
jb 0x100028e8
jmp 0x100029b9
xor ecx, ecx
cmp esi, 0x20
jb 0x10002989
lea eax, [esi - 1]
lea eax, [edi + eax*2]
cmp edi, ebx
ja 0x1000291f
cmp eax, ebx
jae 0x10002989
movaps xmm2, xmmword [0x100450d0]
mov eax, esi
and eax, 0xffffffe0
mov esi, 0x20
mov ebx, eax
movups xmm0, xmmword [edi + esi - 0x20]
lea esi, [esi + 0x40]
add ecx, 0x20
movaps xmm1, xmm2
mov eax, ecx
paddw xmm0, xmm2
cdq
movups xmmword [edi + esi - 0x60], xmm0
movups xmm0, xmmword [edi + esi - 0x50]
paddw xmm1, xmm0
movups xmmword [edi + esi - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [esi + edi - 0x40]
paddw xmm1, xmm0
movups xmmword [esi + edi - 0x40], xmm1
movups xmm0, xmmword [edi + esi - 0x30]
paddw xmm0, xmm2
movups xmmword [edi + esi - 0x30], xmm0
test edx, edx
jl 0x10002932
jg 0x10002983
cmp eax, ebx
jb 0x10002932
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov eax, ecx
xor edi, edi
cdq
cmp edx, edi
jg 0x100029b9
jl 0x10002998
cmp eax, esi
jae 0x100029b9
mov edx, 0x178
nop dword [eax]
mov eax, dword [ebx]
add word [eax + ecx*2], dx
inc ecx
mov eax, ecx
cdq
cmp edx, edi
mov edx, 0x178
jl 0x100029a0
jg 0x100029b9
cmp eax, esi
jb 0x100029a0
push dword [ebp - 0x4c]
call fcn.10023bc9
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.100193e9
mov esp, ebp
pop ebp
ret
Function at 0x100104e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bd90
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10049080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1001940a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10018806
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10010480
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10016d90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx]
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x10016ded
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x10016db0
mov eax, dword [esi]
jmp 0x10016ecb
cmp eax, 0x4e0
jb 0x10016ecb
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10016e06
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10016e51
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10024620
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10049080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1003f994
push esi
call fcn.1002cea3
pop ecx
pop ecx
test eax, eax
jne 0x1002464e
xor al, al
jmp 0x100246cb
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.10024361
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10024688
push dword [ebp - 0x210]
call fcn.10025786
xor al, al
jmp 0x100246c9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1002468e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x100246ae
push edx
call fcn.10024557
pop ecx
test al, al
je 0x10024679
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100246bc
mov bl, 1
push dword [ebp - 0x210]
call fcn.10025786
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100193e9
leave
ret

Function at 0x10027449
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10027488
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10027488
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10027488
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10027488
cmp dword [ecx + 0x74], 0xe
jbe 0x10027488
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret