joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x502703
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54c494]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.NtfsNewFileStream.0
mov dword [esp + 0x14], 1
call fcn.004650a0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x46516b
push eax
call fcn.00487d62
add esp, 4
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi], vtable.AbstractStream.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4655d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x502808
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54c494]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
lea ecx, [esi + 4]
mov dword [esi], vtable.DirectoryEntryProperties.0
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 7
push eax
mov dword [esp + 0x1c], eax
mov word [ecx + 4], ax
mov eax, dword [esp + 0x24]
push eax
call fcn.0041ba00
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [eax]
mov dword [esi + 0x28], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x2c], edx
mov ecx, dword [eax]
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x34], edx
mov ecx, dword [eax]
mov dword [esi + 0x38], ecx
mov edx, dword [eax + 4]
mov al, byte [esp + 0x34]
mov cl, byte [esp + 0x38]
mov byte [esi + 0x40], al
mov al, byte [esp + 0x40]
mov dword [esi + 0x3c], edx
mov dl, byte [esp + 0x3c]
mov byte [esi + 0x43], al
mov al, byte [esp + 0x4c]
mov byte [esi + 0x41], cl
mov cl, byte [esp + 0x44]
mov byte [esi + 0x42], dl
mov dl, byte [esp + 0x48]
mov byte [esi + 0x46], al
mov byte [esi + 0x44], cl
mov byte [esi + 0x45], dl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x34
Function at 0x490095
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4900d8
call fcn.0048939a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4900d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4900f3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0048fc4c
test ebx, ebx
mov esi, eax
je 0x4900f1
test edi, edi
je 0x4900f1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x49252a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0048939a
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x492561
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0049214c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4925b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x4925d9
cmp dword [edi + 0x54], 0
jne 0x4925d9
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0048939a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00492580
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x496f81
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x506621
call fcn.004bd300
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x496fa6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x496ff2
call fcn.00493281
push eax
lea ecx, [ebp - 0x10]
call fcn.00401cb0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004010e0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011c0
mov eax, esi
call fcn.004bd39f
ret 8
Function at 0x49c898
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0048939a
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x49c8c3
xor eax, eax
jmp 0x49c967
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x49c8bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x49c8bc
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487d37
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x49c918
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x49c907
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0049b6da
push edi
mov ebx, eax
call fcn.00487d62
test ebx, ebx
pop ecx
je 0x49c95a
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0049bd81
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0049be33
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4b596a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54c494]
jne 0x4b5974
repz ret
jmp fcn.004c146c
Function at 0x4c9a0f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004bf11d
xor ebx, ebx
cmp dword [0x55a124], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4c9ae4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4c9a4f
xor eax, eax
jmp 0x4c9ba8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x522698
push edi
call esi
cmp eax, ebx
je 0x4c9a48
push eax
call fcn.004bf0ba
mov dword [esp], 0x522688
push edi
mov dword [0x55a124], eax
call esi
push eax
call fcn.004bf0ba
mov dword [esp], 0x522674
push edi
mov dword [0x55a128], eax
call esi
push eax
call fcn.004bf0ba
mov dword [0x55a12c], eax
lea eax, [ebp - 8]
push eax
call fcn.004b8dc3
test eax, eax
pop ecx
pop ecx
je 0x4c9ab2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b5efe
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4c9ae4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004bf0ba
cmp eax, ebx
pop ecx
mov dword [0x55a134], eax
je 0x4c9ae4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004bf0ba
pop ecx
mov dword [0x55a130], eax
mov eax, dword [0x55a130]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4c9b5d
cmp dword [0x55a134], esi
je 0x4c9b5d
push eax
call fcn.004bf126
pop ecx
call eax
cmp eax, ebx
je 0x4c9b2a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x55a134]
call fcn.004bf126
pop ecx
call eax
test eax, eax
je 0x4c9b2a
test byte [ebp - 0x18], 1
jne 0x4c9b5d
lea eax, [ebp - 0xc]
push eax
call fcn.004b8dfa
test eax, eax
pop ecx
je 0x4c9b45
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b5efe
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4c9b54
or dword [ebp + 0x10], 0x200000
jmp 0x4c9b8e
or dword [ebp + 0x10], 0x40000
jmp 0x4c9b8e
mov eax, dword [0x55a128]
cmp eax, esi
je 0x4c9b8e
push eax
call fcn.004bf126
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4c9b8e
mov eax, dword [0x55a12c]
cmp eax, esi
je 0x4c9b8e
push dword [ebp - 4]
push eax
call fcn.004bf126
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x55a124]
call fcn.004bf126
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d17d6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x54c494]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004d176b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004b7050
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4d1825
cmp dword [ebp - 0x1c], 5
jb 0x4d183d
jmp 0x4d1839
cmp dword [ebp - 0x10], 1
jne 0x4d183d
cmp dword [ebp - 0x1c], 4
ja 0x4d1839
jne 0x4d183d
cmp dword [ebp - 0x18], 0
jbe 0x4d183d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x52298c
call fcn.004d165c
test eax, eax
jge 0x4d185e
mov byte [0x54e7e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b596a
add ebp, 0x78
leave
ret
Function at 0x4d18b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508439
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x54c494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x91]
mov dword [ebp - 0x90], eax
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00402090
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call fcn.004d1be0
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x4d1931
mov byte [ebp - 0x49], 0
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00402090
mov al, byte [ebp - 0x49]
jmp 0x4d1a95
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403870
mov byte [ebp - 4], 1
push str.Ghost_Imp_Guide.pdf
call fcn.004b7160
pop ecx
mov dword [ebp - 0xa4], eax
push dword [ebp - 0xa4]
push str.Ghost_Imp_Guide.pdf
lea ecx, [ebp - 0x2c]
call fcn.00410553
cmp dword [ebp - 0x14], 0x10
jb 0x4d1976
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x124], eax
jmp 0x4d197f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x124], eax
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d1a1f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x68]
call fcn.00403870
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 2
push str.Ghost_NSW_Guide.pdf
push dword [ebp - 0x12c]
lea eax, [ebp - 0x84]
push eax
call fcn.00424c60
add esp, 0xc
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 3
push dword [0x50e1cc]
push 0
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x2c]
call fcn.00403320
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.00402090
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.00402090
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call fcn.004d1d84
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x4d1a68
mov byte [ebp - 0x85], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402090
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00402090
mov al, byte [ebp - 0x85]
jmp 0x4d1a95
mov byte [ebp - 0x86], 1
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402090
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00402090
mov al, byte [ebp - 0x86]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b596a
leave
ret
Function at 0x4d1be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x54c494]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareSymantecInstalledApps
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4d1c7d
push 0x7d2
lea eax, [ebp - 0x134]
push eax
call fcn.004d2083
pop ecx
pop ecx
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
cmp dword [eax + 0x18], 0x10
jb 0x4d1c45
mov eax, dword [ebp - 0x154]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1b4], eax
jmp 0x4d1c54
mov eax, dword [ebp - 0x154]
add eax, 4
mov dword [ebp - 0x1b4], eax
push 0x10
push 0
push dword [ebp - 0x1b4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 1
lea ecx, [ebp - 0x134]
call fcn.00402090
xor al, al
jmp 0x4d1d78
mov dword [ebp - 4], 0x104
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push str.GHOST
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4d1d45
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push str.Norton_Ghost
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4d1d45
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7d2
lea eax, [ebp - 0x150]
push eax
call fcn.004d2083
pop ecx
pop ecx
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 0x18], 0x10
jb 0x4d1d10
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1b8], eax
jmp 0x4d1d1f
mov eax, dword [ebp - 0x16c]
add eax, 4
mov dword [ebp - 0x1b8], eax
push 0x10
push 0
push dword [ebp - 0x1b8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 1
lea ecx, [ebp - 0x150]
call fcn.00402090
xor al, al
jmp 0x4d1d78
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x118]
push eax
call fcn.004b7160
pop ecx
mov dword [ebp - 0x184], eax
push dword [ebp - 0x184]
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403480
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b596a
leave
ret
Function at 0x4d2652
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50850b
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x54c494]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a0], ecx
mov eax, dword [ebp - 0x1a0]
mov dword [eax], vtable.VersionInfo.0
mov eax, dword [ebp - 0x1a0]
and dword [eax + 4], 0
push 0x522a87
mov ecx, dword [ebp - 0x1a0]
add ecx, 8
call fcn.00403e00
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.00487d67
pop ecx
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x12c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x1a0]
push dword [eax + 4]
push dword [ebp - 0x10]
push dword [ebp - 0x128]
lea eax, [ebp - 0x124]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
mov eax, dword [ebp - 0x1a0]
push dword [eax + 4]
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
push eax
push str.StringFileInfo_04x_04x_
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
call fcn.004b7160
pop ecx
mov dword [ebp - 0x170], eax
push dword [ebp - 0x170]
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x1a0]
add ecx, 8
call fcn.00403480
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b596a
leave
ret 4
Function at 0x4d411b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 1
push 1
lea eax, [ebp + 8]
push eax
call fcn.004f2d0d
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
leave
ret 4

Function at 0x4d4142
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 1
push 1
push dword [ebp + 8]
call fcn.004f3aa8
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
leave
ret 4

Function at 0x4d6120
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret
Function at 0x4f5980
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ac9f
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push esi
push edi
mov eax, dword [0x54c494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
push str.getLength
push dword [0x54e460]
lea ecx, [ebp - 0x20]
call fcn.0040a190
and dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4f5a8c
push 8
call fcn.00487d37
pop ecx
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 0
je 0x4f5a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.004d3197
mov dword [ebp - 0xb4], eax
jmp 0x4f5a32
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0
push dword [ebp - 0x70]
lea ecx, [ebp - 0x6c]
call fcn.004dc26e
mov byte [ebp - 4], 2
mov dword [ebp - 0x7c], str...Win32File.cpp
mov dword [ebp - 0x78], 0x28c
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0xb0]
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x64]
call fcn.004f8f37
push 0x541430
lea eax, [ebp - 0x64]
push eax
call fcn.004b63ed
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.004f6633
mov esi, dword [ebp - 0x10]
xor edi, edi
mov eax, dword [ebp - 0x24]
xor edx, edx
mov cl, 0x20
call fcn.004bd3e0
or eax, esi
or edx, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040a269
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4f5ada
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50aced
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x54c494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
push str.setEndOfFile
push dword [0x54e460]
lea ecx, [ebp - 0x10]
call fcn.0040a190
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
movzx eax, byte [eax + 0x1c]
test eax, eax
je 0x4f5c0a
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x13c]
call fcn.004f484b
push edx
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.004f44ad
mov byte [ebp - 4], 1
xor eax, eax
cmp dword [ebp - 0x24], 0
sete al
movzx eax, al
test eax, eax
jne 0x4f5bfe
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x4f5bb4
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xd8]
mov dword [ecx], eax
jmp 0x4f5bbc
and dword [ebp - 0x6c], 0
and dword [ebp - 0x68], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x74], str...Win32File.cpp
mov dword [ebp - 0x70], 0x2a2
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x13c]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x64]
call fcn.004f8f37
push 0x541430
lea eax, [ebp - 0x64]
push eax
call fcn.004b63ed
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.004f6633
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004f6633
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x114], eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f5ce1
push 8
call fcn.00487d37
pop ecx
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0xc4], 0
je 0x4f5c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0xc4]
call fcn.004d3197
mov dword [ebp - 0x140], eax
jmp 0x4f5c69
and dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0
push dword [ebp - 0xc0]
lea ecx, [ebp - 0xbc]
call fcn.004dc26e
mov byte [ebp - 4], 4
mov dword [ebp - 0xcc], str...Win32File.cpp
mov dword [ebp - 0xc8], 0x2a7
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0x13c]
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004f8f37
push 0x541430
lea eax, [ebp - 0xb4]
push eax
call fcn.004b63ed
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.004f6633
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a269
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret