joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498580
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x498638
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00498518
test al, al
je 0x49861a
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004042f8
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x49861a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004046c8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.004046c8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404400
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4985d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49863f
lea eax, [ebp - 0x2c]
call fcn.00404208
lea eax, [ebp - 0xc]
call fcn.00404208
ret

Function at 0x498648
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x498700
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00498518
test al, al
je 0x4986e2
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004042f8
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4986e2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004046c8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.004046c8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404400
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x49869b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498707
lea eax, [ebp - 0x2c]
call fcn.00404208
lea eax, [ebp - 0xc]
call fcn.00404208
ret
Function at 0x49895c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00497dbc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004046c8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4989ba
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5128b8]
mov dl, 1
mov eax, dword [0x497cb4]
call fcn.0040c69c
call fcn.00403bc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4989c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004046c8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x498a1c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x512bd8]
mov dl, 1
mov eax, dword [0x497cb4]
call fcn.0040c69c
call fcn.00403bc0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00497dec
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x49ca44
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.0040747c
ret
Function at 0x4a9cc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x511714]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x511714]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x511714]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x511714]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x511298]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x4a9ceb
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4adae4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x4adbc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402704
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004033c4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4adb9d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
call fcn.0040a758
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x10]
mov eax, 0x4adbdc
call fcn.0040b400
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
mov edx, 0x4adbf0
call fcn.004acbdc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004e7780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adba4
mov eax, dword [ebp - 0xc]
call fcn.004033f4
mov eax, dword [ebp - 4]
call fcn.00402724
ret

Function at 0x4af614
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4af665
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4af64c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4af63c
jmp 0x4af665
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4af64d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf7c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x160], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004046b8
lea eax, [ebp - 0x15c]
mov edx, dword [0x407a88]
call fcn.00404cfc
xor eax, eax
push ebp
push 0x4bf908
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004046c8
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea ecx, [ebp - 0x15c]
mov edx, 0x10
mov eax, 0x4bf920
call fcn.004090c0
jmp 0x4bf8ba
mov eax, dword [0x51297c]
mov eax, dword [eax]
call fcn.00481930
mov eax, dword [ebp - 0x150]
mov edx, 0x4bf92c
call fcn.00404614
je 0x4bf8ba
mov eax, dword [ebp - 0x150]
mov edx, 0x4bf938
call fcn.00404614
je 0x4bf8ba
mov eax, dword [esi + 0x22c]
call fcn.0044bf10
mov ebx, eax
mov edx, dword [ebp - 0x150]
mov eax, ebx
call fcn.0044b9b0
push dword [ebp - 4]
push 0x4bf944
push dword [ebp - 0x150]
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x160]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4bf950
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4bf960
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x15c]
call fcn.00409110
test eax, eax
je 0x4bf82a
mov edx, esi
mov eax, edi
call fcn.004c4208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf90f
lea eax, [ebp - 0x160]
call fcn.00404208
lea eax, [ebp - 0x15c]
mov edx, dword [0x407a88]
call fcn.00404dcc
lea eax, [ebp - 4]
call fcn.00404208
ret

Function at 0x4bfac8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bfba6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 4]
lea eax, [ebp - 0x109]
call fcn.004095f8
mov edx, dword [ebp - 4]
mov eax, 0x4bfbbc
call fcn.0040480c
dec eax
jl 0x4bfb4d
lea eax, [ebp - 0x110]
push eax
mov ecx, 3
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404728
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 4]
mov ecx, 0x4bfbcc
call fcn.00404514
jmp 0x4bfb76
lea eax, [ebp - 0x114]
push eax
mov ecx, 3
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404728
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
mov ecx, 0x4bfbe0
call fcn.00404514
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040425c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfbad
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.0040422c
lea eax, [ebp - 4]
call fcn.00404208
ret
Function at 0x4c1ddc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4c1de4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c1fa1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402704
mov ebx, eax
push 0xff
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00404400
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, 0x4c1fb8
call fcn.00404514
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43ab18]
call fcn.0043abc8
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004033c4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c1f77
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x10]
mov edx, 0x4c1fcc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4c1f59
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov edx, dword [0x4beb5c]
mov eax, 8
call fcn.00405138
mov ebx, eax
mov eax, ebx
mov edx, 0x4c1fcc
call fcn.0040425c
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 4]
call fcn.0040425c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov edx, ebx
call fcn.004197a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov eax, dword [eax + 0x22c]
call fcn.0044bf10
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0044b9b0
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x28]
mov edx, 0x4c1fcc
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 8]
mov edx, 0x4c1fdc
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0044bb68
mov ecx, 2
mov edx, 2
mov eax, ebx
call fcn.0044bb68
inc esi
dec dword [ebp - 0x14]
jne 0x4c1e86
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1f7e
mov eax, dword [ebp - 0xc]
call fcn.004033f4
mov eax, dword [ebp - 0x10]
call fcn.004033f4
ret
Function at 0x4c1fe4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4c1fec
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c218d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402704
mov ebx, eax
push 0xff
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00404400
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, 0x4c21a4
call fcn.00404514
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43ab18]
call fcn.0043abc8
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004033c4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c2163
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x10]
mov edx, 0x4c21b8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4c2145
inc eax
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov edx, dword [0x4beb5c]
mov eax, 8
call fcn.00405138
mov esi, eax
mov eax, esi
mov edx, 0x4c21b8
call fcn.0040425c
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 4]
call fcn.0040425c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov edx, esi
call fcn.004197a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov eax, dword [eax + 0x22c]
call fcn.0044bf10
mov esi, eax
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.0044b9b0
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x28]
mov edx, 0x4c21b8
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x24]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 8]
mov edx, 0x4c21c4
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec dword [ebp - 0x14]
jne 0x4c208e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c216a
mov eax, dword [ebp - 0xc]
call fcn.004033f4
mov eax, dword [ebp - 0x10]
call fcn.004033f4
Function at 0x4c6034
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c6294
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c6097
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c5afc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cfa8
cmp al, 1
jne 0x4c6097
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c5e14
test al, al
je 0x4c6223
cmp dword [ebp - 8], 0
jge 0x4c60b5
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c5afc
mov eax, dword [ebp - 0x210]
call fcn.004044c8
cmp ebx, eax
jge 0x4c60ff
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c5afc
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x512ba0]
and eax, 0xff
bt dword [edx], eax
jae 0x4c60ff
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4c6113
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c6010
cmp ebx, dword [ebp - 8]
je 0x4c6215
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c613f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035f0
and eax, 0x7f
movzx eax, word [eax*2 + 0x512474]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4c6202
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035f0
and eax, 0x7f
movzx eax, word [eax*2 + 0x512474]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00468430
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035f0
and eax, 0x7f
movzx eax, word [eax*2 + 0x512474]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00468430
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6209
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4c6276
cmp dword [ebp - 8], 0
jge 0x4c622e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c5afc
mov eax, dword [ebp - 0x218]
call fcn.004044c8
cmp eax, dword [ebp - 8]
jg 0x4c6268
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c5afc
mov eax, dword [ebp - 0x21c]
call fcn.004044c8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c6010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c629b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040422c
ret
Function at 0x4d29d8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffffac
mov ebx, eax
push 0x51
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x51
call fcn.00404478
add esp, 0x54
pop ebx
ret
Function at 0x4d5190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d5229
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004e712c
mov eax, dword [ebp - 4]
mov edx, 0x4d523c
call fcn.00404614
je 0x4d51ea
mov eax, dword [ebp - 4]
mov edx, 0x4d524c
call fcn.00404614
je 0x4d51ea
mov eax, dword [ebp - 4]
mov edx, 0x4d525c
call fcn.00404614
je 0x4d51ea
mov eax, dword [ebp - 4]
mov edx, 0x4d526c
call fcn.00404614
jne 0x4d51f8
push 1
push 0x4d5274
call sub.kernel32.dll_WinExec
jmp 0x4d5213
mov dl, 1
mov eax, dword [ebx + 0x380]
call fcn.00461b68
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4d4224]
call fcn.004222dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5230
lea eax, [ebp - 4]
call fcn.00404208
ret

Function at 0x4d61c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d626b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4d624b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.00404208
lea eax, [ebp - 4]
push eax
mov ecx, 2
mov edx, 1
mov eax, esi
call fcn.00404728
push 0x104
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
call fcn.004046c8
push eax
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
jle 0x4d6241
lea edx, [ebp - 0x109]
mov ecx, ebx
xchg ecx, eax
call fcn.004042f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d6255
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6272
lea eax, [ebp - 4]
call fcn.00404208
ret
Function at 0x4d627c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4d6284
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046b8
xor eax, eax
push ebp
push 0x4d643a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, pe_nt_image_headers32
call fcn.00402704
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004033c4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d6410
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.0041ae80
xor eax, eax
push ebp
push 0x4d63eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0xc]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x4d632d
mov ebx, dword [ebp - 0xc]
jmp 0x4d6328
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00404400
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0040940c
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x4d6309
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4d63d5
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.004d61c8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004089c4
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004087b0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov ecx, 0x4d6450
call fcn.00404514
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004087b0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.004042a0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.0040480c
test eax, eax
jle 0x4d63cd
mov al, byte [0x4d6454]
push eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040dab4
jmp 0x4d63d5
inc ebx
dec esi
jne 0x4d6343
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d63f2
mov eax, dword [ebp - 0x10]
call fcn.0041af3c
ret