joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bea44
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x529070]
cmp dword [eax], 2
jne 0x4bea6f
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jae 0x4bea7b
mov dword [ebp - 0xc], 1
jmp 0x4bec86
push 0x4bec94
call sub.kernel32.dll_GetModuleHandleW_2
mov esi, eax
push 0x4becb0
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x4becc8
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x4bece0
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
test edi, edi
je 0x4beac0
cmp dword [ebp - 0x10], 0
je 0x4beac0
cmp dword [ebp - 0x14], 0
jne 0x4beacc
mov dword [ebp - 0xc], 0x7f
jmp 0x4bec86
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4bec86
xor edx, edx
push ebp
push 0x4bec7f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
shl eax, 5
call fcn.00403000
mov dword [ebp - 0x24], eax
mov esi, ebx
mov edi, dword [ebp + 0xc]
dec edi
test edi, edi
jl 0x4bebbb
inc edi
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
movzx eax, byte [esi + 6]
push eax
push esi
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
jne 0x4beb70
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4beb66
mov dword [ebp - 0xc], 0x57
call fcn.00404b68
jmp 0x4bec86
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x10]
mov dword [edx + eax*8], ecx
mov edx, dword [ebp - 0x24]
mov dword [edx + eax*8 + 4], 1
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x18], ecx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax*8 + 0x1c], ecx
add esi, 0x14
inc ebx
dec edi
jne 0x4beb2a
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bebe1
call fcn.00404b68
jmp 0x4bec86
xor eax, eax
push ebp
push 0x4bec25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bec2c
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_LocalFree
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c5408
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
xor edx, edx
mov dword [ebp - 0x25c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c54da
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x25c]
mov eax, ebx
call fcn.0048611c
lea eax, [ebp - 0x25c]
mov edx, 0x4c54f8
call fcn.00406854
mov eax, dword [ebp - 0x25c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4c54c1
xor eax, eax
push ebp
push 0x4c54ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
call fcn.004c53b8
test al, al
je 0x4c548f
mov byte [ebp - 1], 1
jmp 0x4c54a3
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4c547a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c54c1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c54e1
lea eax, [ebp - 0x25c]
call fcn.00406438
ret

Function at 0x4c54fc
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffd4c
mov ebx, edx
mov esi, eax
push 0x200
push 0x2b4
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c553c
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, 0x104
call fcn.00406640
jmp 0x4c5545
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x2b4
pop esi
pop ebx
ret

Function at 0x4c5550
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffd4c
mov ebx, edx
mov esi, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x528350]
or eax, 0x4001
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c558f
mov eax, dword [esp + 4]
jmp 0x4c5591
xor eax, eax
add esp, 0x2b4
pop esi
pop ebx
ret

Function at 0x4c559c
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffd4c
mov ebx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x528358]
or eax, 0x4011
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x10
push 0x4c55e0
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c55d5
mov eax, dword [esp + 4]
jmp 0x4c55d7
xor eax, eax
add esp, 0x2b4
pop ebx
ret

Function at 0x4c55bf
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffd4c
mov ebx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x528358]
or eax, 0x4011
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x10
push 0x4c55e0
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c55d5
mov eax, dword [esp + 4]
jmp 0x4c55d7
xor eax, eax
add esp, 0x2b4
pop ebx
ret
Function at 0x4c5a38
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
test dl, dl
je 0x4c5a4c
add esp, 0xfffffff0
call fcn.004044d0
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.00465f54
mov eax, dword [0x4c5af0]
not eax
and eax, dword [esi + 0x50]
mov dword [esi + 0x50], eax
mov edx, 0x79
mov eax, esi
call fcn.004625e4
mov edx, 0x61
mov eax, esi
call fcn.00462618
xor edx, edx
mov eax, esi
call fcn.00463160
mov dl, 1
mov eax, esi
call fcn.0046bb78
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jae 0x4c5aab
mov dx, 0xfffe
mov eax, esi
call fcn.004631a8
push 0
lea eax, [ebp - 0x5c]
push eax
push 0x5c
push 0x1f
call sub.user32.dll_SystemParametersInfoW
test eax, eax
je 0x4c5ad1
lea eax, [ebp - 0x5c]
push eax
call sub.gdi32.dll_CreateFontIndirectW
mov edx, eax
mov eax, dword [esi + 0x64]
call fcn.00438e30
mov eax, esi
test bl, bl
je 0x4c5ae6
call fcn.00404528
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6b8c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c6d58
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4c6d2b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
je 0x4c6be9
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4c6c27
mov eax, ebx
call fcn.004c583c
test al, al
jne 0x4c6c07
mov byte [ebp - 5], 0
call fcn.00404b68
jmp 0x4c6d32
lea edx, [ebp - 0x264]
mov eax, ebx
call fcn.004c54fc
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004c6fb8
mov byte [ebp - 5], 1
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0048611c
lea eax, [ebp - 0x268]
mov edx, 0x4c6d78
call fcn.00406854
mov eax, dword [ebp - 0x268]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4c6d14
xor eax, eax
push ebp
push 0x4c6d0d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004c53b8
test al, al
je 0x4c6ce2
lea eax, [ebp - 4]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00406640
lea edx, [ebp - 0x270]
mov eax, ebx
call fcn.0048611c
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00406854
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x26c]
call fcn.004c54fc
mov eax, dword [ebp - 0x26c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.004c65a8
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4c6c7b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6d14
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6d32
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6d5f
lea eax, [ebp - 0x270]
mov edx, 4
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4c7048
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c723e
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4c70cd
lea edx, [ebp - 0x264]
mov eax, edi
call fcn.004866b0
mov eax, dword [ebp - 0x264]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0048611c
mov eax, dword [ebp - 0x268]
pop edx
call fcn.00486334
test eax, eax
jne 0x4c70cd
lea edx, [ebp - 4]
mov eax, edi
call fcn.00486688
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c720c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x26c]
mov eax, ebx
call fcn.0048611c
lea eax, [ebp - 0x26c]
mov edx, 0x4c7258
call fcn.00406854
mov eax, dword [ebp - 0x26c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4c71f5
xor eax, eax
push ebp
push 0x4c71ee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004c53b8
test al, al
je 0x4c71bf
lea eax, [ebp - 8]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00406640
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00486334
test eax, eax
je 0x4c71bf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.004c669c
test eax, eax
jne 0x4c71bf
lea edx, [ebp - 0x274]
mov eax, ebx
call fcn.0048611c
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 8]
call fcn.00406854
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x270]
call fcn.004c54fc
mov eax, dword [ebp - 0x270]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.004c65a8
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4c7135
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c71f5
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7213
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4c7510
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00415e80
add esp, 0x208
pop ebx
ret
Function at 0x4ca4b4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ca6aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x20
call fcn.004625e4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x20
call fcn.00462618
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b4]
mov edx, 0x20
call fcn.004625e4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b4]
mov edx, 0x20
call fcn.00462618
xor eax, eax
push ebp
push 0x4ca67f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1010
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x10
push 0x4ca6b8
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4ca594
cmp word [ebp - 0x2ac], 0
je 0x4ca594
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x52cb50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b0]
call fcn.004ca3f0
xor edx, edx
mov al, 6
call fcn.004e0b90
test al, al
je 0x4ca5f2
push 0x27
lea edx, [ebp - 0x2bc]
mov eax, dword [0x529078]
mov eax, dword [eax]
call fcn.0048611c
lea eax, [ebp - 0x2bc]
mov edx, 0x4ca6e0
call fcn.00406854
mov eax, dword [ebp - 0x2bc]
call fcn.004064d4
push eax
mov eax, dword [0x52cb50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b4]
call fcn.004ca3f0
jmp 0x4ca675
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
xor eax, eax
call fcn.004e6380
cmp dword [ebp - 4], 0
jne 0x4ca616
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
mov al, 1
call fcn.004e6380
cmp dword [ebp - 4], 0
je 0x4ca675
push 0x1000
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4ca675
cmp word [ebp - 0x2ac], 0
je 0x4ca675
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x52cb50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b4]
call fcn.004ca3f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ca689
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca6b1
lea eax, [ebp - 0x2bc]
call fcn.00406438
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4d4224
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, esi
test ebx, ebx
je 0x4d423d
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4d4271
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
xor eax, eax
call fcn.004d40f4
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4d5a5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d5b6f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x528ca8]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x5283d8]
mov edx, 0x80000002
xor eax, eax
call fcn.00487bac
test eax, eax
jne 0x4d5af1
mov esi, edi
test esi, esi
je 0x4d5ab4
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, edi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4d5ae6
mov eax, 0x4d5b8c
call fcn.004b8b98
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4d5afb
mov eax, 0x4d5bf0
call fcn.004b8b98
test bl, bl
je 0x4d5b54
mov eax, edi
call fcn.004064d4
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x4d5b22
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x4d5b54
lea ecx, [ebp - 0x10]
mov edx, 0x4d5c44
mov al, 0x3a
call fcn.0048a440
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00488494
mov eax, dword [ebp - 0xc]
mov edx, dword [0x528e7c]
mov edx, dword [edx + 0xc8]
call fcn.004d36f8
test al, al
je 0x4d5aff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5b76
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406440
ret
Function at 0x4d913c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4d921d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d9202
test bl, 0x10
je 0x4d9202
lea ecx, [ebp - 4]
mov edx, 0x4d9238
mov eax, esi
call fcn.00486290
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x4d925c
mov eax, 0x4d9278
call fcn.00486a40
mov edx, 0x4d92a4
mov eax, dword [ebp - 8]
call fcn.00413fdc
test eax, eax
jne 0x4d9202
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea ecx, [ebp - 0xc]
mov edx, 0x4d9300
mov eax, esi
call fcn.00486290
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9224
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x4da220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov byte [ebp - 1], al
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4da303
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
je 0x4da2ed
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.0048bb30
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4da320
call fcn.004b8e1c
mov eax, dword [0x528aec]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.0042b3a0
mov esi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4da29c
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
push eax
mov eax, ebx
mov ecx, 0x14
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
movzx eax, byte [ebp - 1]
call fcn.004beec4
test al, al
jne 0x4da2ed
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x4da2d2
mov eax, 0x4da384
call fcn.004b8b98
jmp 0x4da2ed
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4da438
call fcn.004b8e1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da30a
lea eax, [ebp - 0x1c]
call fcn.00406438
ret
Function at 0x4dc130
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dc2f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x258]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0048611c
lea eax, [ebp - 0x258]
mov edx, 0x4dc314
call fcn.00406854
mov eax, dword [ebp - 0x258]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4dc2d3
lea eax, [ebp - 4]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 4]
test eax, eax
je 0x4dc1c3
sub eax, 4
mov eax, dword [eax]
cmp eax, 9
jl 0x4dc1f8
lea eax, [ebp - 0x25c]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406bec
mov eax, dword [ebp - 0x25c]
mov edx, 0x4dc338
call fcn.00413fdc
test eax, eax
sete al
jmp 0x4dc1fa
xor eax, eax
test al, al
je 0x4dc223
mov eax, 0x4dc344
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xa]
cmp si, 0x100
jae 0x4dc21b
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4dc21f
xor eax, eax
jmp 0x4dc225
mov al, 1
jmp 0x4dc225
xor eax, eax
test al, al
je 0x4dc24e
mov eax, 0x4dc344
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xc]
cmp si, 0x100
jae 0x4dc246
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4dc24a
xor eax, eax
jmp 0x4dc250
mov al, 1
jmp 0x4dc250
xor eax, eax
test al, al
je 0x4dc279
mov eax, 0x4dc344
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xe]
cmp si, 0x100
jae 0x4dc271
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4dc275
xor eax, eax
jmp 0x4dc27b
mov al, 1
jmp 0x4dc27b
xor eax, eax
test al, al
je 0x4dc2b8
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0x2e
jne 0x4dc2b8
lea eax, [ebp - 0x260]
push eax
mov ecx, 3
mov edx, 6
mov eax, dword [ebp - 4]
call fcn.00406bec
mov eax, dword [ebp - 0x260]
call fcn.00414f3c
mov edx, dword [ebp + 8]
mov byte [edx + eax - 0x3ec], 1
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4dc1a4
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc300
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret