joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453600
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4afbd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a473e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a9d8c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004ab2a8
test eax, eax
je 0x45371c
mov ecx, dword [esp + 0x3c]
call fcn.004a9db9
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4536e0
push edi
mov ecx, esi
call fcn.004a7423
mov ecx, esi
call fcn.00453880
cmp dword [esp + 0x38], 1
jne 0x453715
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a755e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4557d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x455803
push esi
call fcn.00463b60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4557fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x455889
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x455872
mov eax, dword [esi + 8]
test eax, eax
je 0x455827
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45586e
cmp eax, 2
je 0x455872
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45581a
cmp eax, 3
je 0x45584d
cmp eax, 1
jne 0x45581a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45581a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45581a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004558b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x455898
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004558b0
add esp, 4
pop esi
ret

Function at 0x456120
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x456141
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x456141
mov eax, dword [eax + 0x44]
test eax, eax
je 0x456141
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4724c0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x472507
mov edi, dword [esp + 0x10]
push edi
call fcn.004a2ed1
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.0048abc5
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x47253b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x47253b
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x472525
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x47253b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00472600
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x47256e
cmp edi, 0x5a
jle 0x47256e
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x47256e
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x47259d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x4725e3
cmp ebx, 1
jge 0x4725e3
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x4725e3
mov al, byte [esi + 0x1d]
test al, al
jne 0x4725e3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x4725e3
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x4725e3
mov al, byte [esi + 0x1d]
test al, al
je 0x4725c3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00472600
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x473790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x4737b7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.0048abc5
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.0048af6e
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.0048abc5
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x4737eb
push esi
push ebx
push edi
mov ecx, ebp
call fcn.00473940
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x473800
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f8e88]
xor edx, edx
cmp eax, edx
jne 0x473826
xor eax, eax
mov byte [eax + 0x4f8d88], al
inc eax
cmp eax, 0x100
jl 0x47380e
mov dword [0x4f8e88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f8d88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4738b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47388a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x473858
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4738c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x473913
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4738fa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47a290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aff7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047abb0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4bd6bc
call fcn.004a2ed1
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47a323
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a2ed1
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47a31c
push 0
mov ecx, eax
call fcn.00471460
mov dword [esi + 0xc], eax
jmp 0x47a325
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47a325
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x494c8a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e28fc]
jne 0x494c94
repz ret
jmp fcn.0049d792
Function at 0x49c814
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.0048f218
and dword [ebp - 4], 0
cmp dword [0x50b3e8], 0
mov ebx, eax
jne 0x49c8c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49c976
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c4c50
push edi
call esi
test eax, eax
je 0x49c976
push eax
call fcn.0048f1a6
mov dword [esp], 0x4c4c40
push edi
mov dword [0x50b3e8], eax
call esi
push eax
call fcn.0048f1a6
mov dword [esp], 0x4c4c2c
push edi
mov dword [0x50b3ec], eax
call esi
push eax
call fcn.0048f1a6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x50b3f0], eax
call esi
push eax
call fcn.0048f1a6
pop ecx
mov dword [0x50b3f8], eax
test eax, eax
je 0x49c8c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048f1a6
pop ecx
mov dword [0x50b3f4], eax
mov eax, dword [0x50b3f4]
cmp eax, ebx
je 0x49c91d
cmp dword [0x50b3f8], ebx
je 0x49c91d
push eax
call fcn.0048f221
push dword [0x50b3f8]
mov esi, eax
call fcn.0048f221
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49c91d
test edi, edi
je 0x49c91d
call esi
test eax, eax
je 0x49c914
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49c914
test byte [ebp - 0xc], 1
jne 0x49c91d
or dword [ebp + 0x10], 0x200000
jmp 0x49c956
mov eax, dword [0x50b3ec]
cmp eax, ebx
je 0x49c956
push eax
call fcn.0048f221
pop ecx
test eax, eax
je 0x49c956
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49c956
mov eax, dword [0x50b3f0]
cmp eax, ebx
je 0x49c956
push eax
call fcn.0048f221
pop ecx
test eax, eax
je 0x49c956
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50b3e8]
call fcn.0048f221
pop ecx
test eax, eax
je 0x49c976
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49c978
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a551a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a5552
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a35eb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a35c3
jmp 0x4a555e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a6c11
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a6c53
call fcn.004ac588
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a6c53
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a6c4a
xor eax, eax
jmp 0x4a6c5b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a6c61
pop edi
pop esi
pop ebx
ret 4
Function at 0x4acab8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4acae6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4acb04
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aca1e
jmp 0x4acb04
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4acb04
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aca1e
test edi, edi
mov eax, edi
jne 0x4acaee
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x509380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
mov dword [ebp - 0x10c], esi
call fcn.0049e980
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x108]
mov dword [esi + 0x14], 0
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401505
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, esi
call fcn.004028c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049cd8d
mov esp, ebp
pop ebp
ret
Function at 0x401b20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b6e
mov eax, dword [ebp + 0x14]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x401b51
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x401be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401c05
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x408700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x509380]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x50ab38], ecx
inc eax
cmp eax, 0x100
jb 0x408712
cmp eax, 0x800
jae 0x4087e3
nop word [eax + eax]
mov edx, dword [eax*4 + 0x50a738]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x50ab38]
mov dword [eax*4 + 0x50ab38], edx
inc eax
cmp eax, 0x800
jb 0x4087c0
lea eax, [ebp - 0x24]
mov dword [0x50cb38], 0x4037b0
push eax
call fcn.00409e40
add esp, 4
test eax, eax
je 0x4088ad
push esi
push edi
mov edi, dword [ebp - 0x14]
xor ecx, ecx
mov esi, edi
mov eax, 0x509010
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
push ebx
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
jne 0x40883b
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x18]
jne 0x40883b
cmp dword [eax], ebx
je 0x408858
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x408824
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cd8d
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x408891
sub ecx, 1
je 0x408875
sub ecx, 1
jne 0x4088aa
cmp esi, 6
jb 0x408886
jne 0x4088a0
cmp edi, 0xf
jae 0x4088a0
jmp 0x408886
cmp esi, 5
jb 0x408886
jne 0x4088a0
cmp edi, 6
jb 0x408886
cmp edi, 0xa
jne 0x4088a0
mov eax, 1
test eax, eax
jne 0x4088aa
jmp 0x4088a0
cmp esi, 6
jb 0x4088aa
jne 0x4088a0
cmp edi, 0x100c
je 0x4088aa
mov dword [0x50cb38], 0x403850
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cd8d
mov esp, ebp
pop ebp
ret
Function at 0x409c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x409cb0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
lea edx, [esi - 4]
add edx, ecx
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x409ce2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x409cdf
inc esi
cmp esi, edx
jb 0x409cd0
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x409e0a
cmp ecx, 3
jbe 0x409d22
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x409d60
cmp cl, 0xff
je 0x409d60
mov edx, dword [ebp + 0xc]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x409cc4
dec ecx
shl eax, cl
and eax, 7
je 0x409cfa
cmp byte [eax + 0x4c6774], 0
je 0x409d4d
movzx ecx, byte [eax + 0x4c677c]
mov edx, esi
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x409d4a
cmp cl, 0xff
jne 0x409cfa
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x409cc4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x409d8e
lea edx, [edi + ebx]
add edx, esi
jmp 0x409d94
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x409dd2
movzx edi, byte [eax + 0x4c677c]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x409dbe
cmp cl, 0xff
jne 0x409dd2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x409d81
mov esi, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
neg cl
mov byte [esi + 1], dl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x409cc4
pop edi
pop esi
cmp ecx, 3
jbe 0x409e1f
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a230
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x509380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
call fcn.0049e980
add esp, 0xc
cmp dword [esi + 0x10], 0
jbe 0x40a2c2
cmp dword [esi + 0x14], 0xf
jbe 0x40a26b
mov esi, dword [esi]
movsx eax, byte [esi]
push eax
lea eax, [ebp - 0x108]
push str._c:_
push eax
call fcn.00409ff0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
xor ecx, ebp
mov edx, dword [ebp - 0x10c]
pop esi
call fcn.0049cd8d
mov esp, ebp
pop ebp
ret 4
call fcn.004022e0
int3
Function at 0x40a2d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c362d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x509380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x40a4b8
cmp byte [esi], 0
je 0x40a4b8
push 0x5c
push esi
call fcn.0049f170
mov edi, eax
add esp, 8
test edi, edi
je 0x40a4b8
mov ecx, esi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a340
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00409f50
sub edi, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
lea eax, [edi + 1]
push eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00401e70
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x40a3a3
mov ecx, eax
call fcn.00402c10
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x78]
call fcn.00402c10
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x40a4a7
cmp eax, 5
je 0x40a4a7
push esi
lea ecx, [ebp - 0x58]
call fcn.00402030
push 0xffffffffffffffff
push dword [ebp - 0x60]
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x58]
call fcn.00401e70
push eax
lea ecx, [ebp - 0x58]
call fcn.00401fb0
lea ecx, [ebp - 0x78]
call fcn.00402c10
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push 0x4c6940
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.00409f50
mov ecx, dword [ebp - 0x30]
or eax, 0xffffffff
xor esi, esi
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40a483
mov edx, dword [ebp - 0x48]
cmp ecx, esi
jbe 0x40a4d7
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
lea edi, [ebp - 0x58]
cmova eax, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0xf
cmova edi, dword [ebp - 0x58]
mov al, byte [eax + esi]
test edx, edx
je 0x40a478
push edx
movsx eax, al
push eax
push edi
call fcn.0049f2a0
add esp, 0xc
test eax, eax
je 0x40a475
sub eax, edi
jns 0x40a483
mov ecx, dword [ebp - 0x30]
jmp 0x40a47b
mov ecx, dword [ebp - 0x30]
or eax, 0xffffffff
mov edx, dword [ebp - 0x48]
inc esi
cmp esi, ecx
jb 0x40a435
cmp eax, 0xffffffff
lea ecx, [ebp - 0x40]
sete byte [ebp - 0x59]
call fcn.00402c10
lea ecx, [ebp - 0x58]
call fcn.00402c10
lea ecx, [ebp - 0x28]
call fcn.00402c10
mov al, byte [ebp - 0x59]
jmp 0x40a4ba
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x59], 0
call fcn.00402c10
mov al, byte [ebp - 0x59]
jmp 0x40a4ba
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049cd8d
mov esp, ebp
pop ebp
ret 4
call fcn.004022e0
int3