joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e82c0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x564610]
xor eax, esp
mov dword [esp + 0x208], eax
cmp dword [esp + 0x218], 0
push esi
mov esi, dword [esp + 0x214]
je 0x4e8333
lea eax, [esp + 4]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e8382
lea ecx, [esp + 0x218]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push 0x523240
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x4e8382
push 0x1fe
lea ecx, [esp + 0x12]
push 0
push ecx
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [esp + 0x10]
push eax
push str._s_s
push 0xff
push 0x100
push esi
call dword [sym.imp.MSVCR80.dll__snwprintf_s]
add esp, 0x18
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004f019a
add esp, 0x20c
ret

Function at 0x4e83a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x240
mov eax, dword [0x564610]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
mov esi, dword [esp + 0x248]
test esi, esi
jne 0x4e83d8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.004f019a
add esp, 0x240
ret
push esi
call fcn.004f65b0
add esp, 4
test eax, eax
jne 0x4e8453
push 0x1fe
push eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x4a]
push eax
call sub.MSVCR80.dll_memset
push 0
lea ecx, [esp + 0x50]
push 0x100
push ecx
call fcn.004e82c0
push 0x38
lea edx, [esp + 0x24]
push 0
push edx
mov dword [esp + 0x28], 0x3c
call sub.MSVCR80.dll_memset
add esp, 0x24
lea ecx, [esp + 4]
lea eax, [esp + 0x40]
push ecx
mov dword [esp + 0x14], str.open
mov dword [esp + 0xc], 0x100040
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x240]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004f019a
add esp, 0x240
ret
Function at 0x4e91f0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x10]
imul eax, edx
test ebp, ebp
push edi
mov dword [esi + 8], eax
jne 0x4e9210
mov ebp, ecx
mov eax, dword [esi + 4]
push eax
xor edi, edi
call fcn.004e8970
add esp, 4
test al, al
je 0x4e9283
test ecx, ecx
jne 0x4e9252
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MFC80U.DLL_Ordinal_265
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0x10
mov ecx, edi
mov ebp, edi
mov edx, dword [esi + 0x1c]
push edx
push ecx
call fcn.004e8980
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
lea eax, [esi + 0x20]
push eax
call fcn.004edea0
add esp, 0x18
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push ecx
push 1
push edx
push ebp
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x4e92a9
push edi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
test bl, bl
je 0x4e92ec
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push ecx
push 0x18
push ecx
mov ecx, esp
jb 0x4e92c9
mov eax, dword [esi + 0x40]
jmp 0x4e92cc
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.004edea0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, esi
call fcn.004e8fd0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 8
Function at 0x4ee490
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_fread]
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
test bl, bl
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
je 0x4ee605
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0x4ee4e4
mov eax, dword [esi + 0x40]
jmp 0x4ee4e7
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.004edea0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x4ee5ab
xor edx, edx
sub ebx, 1
cmp byte [esp + 0x13], dl
je 0x4ee52b
cmp byte [edi], dl
jmp 0x4ee52f
cmp word [edi], 0
sete dl
test edx, edx
je 0x4ee55c
test eax, eax
je 0x4ee553
cmp edi, eax
je 0x4ee553
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
add ebp, 1
add edi, ecx
test ebx, ebx
jne 0x4ee51c
test eax, eax
je 0x4ee580
cmp edi, eax
je 0x4ee580
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
test ebp, ebp
je 0x4ee5ab
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.004edea0
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x4ee5f7
mov eax, dword [esi + 4]
push eax
call fcn.004e8970
add esp, 4
test al, al
je 0x4ee5f7
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.004e8980
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.004edea0
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ecx, esi
call fcn.004e8fd0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x4f019a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x564610]
jne 0x4f01a4
repz ret
jmp fcn.004f0a28

Function at 0x4f1570
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x564610]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x210]
push ecx
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f15da
mov dword [ebp - 4], 1
jmp 0x4f15f6
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x4f15f6
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x4f1614
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f019a
mov esp, ebp
pop ebp
ret
Function at 0x4f1b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x564610]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0x80004005
cmp dword [ebp + 8], 0
je 0x4f1b95
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
jne 0x4f1b9f
jmp 0x4f1c93
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x4f1bc0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
cmp ecx, 0x5c
je 0x4f1bc0
jmp 0x4f1c93
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x2f
jne 0x4f1bd5
jmp 0x4f1c93
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4f1bed
jmp 0x4f1c93
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4f1c28
push 0x103
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCR80.dll__wfullpath]
add esp, 0xc
test eax, eax
jne 0x4f1c1c
jmp 0x4f1c93
lea edx, [ebp - 0x210]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x4f1c56
mov ecx, dword [ebp - 0x214]
and ecx, 0x400
je 0x4f1c56
jmp 0x4f1c93
cmp dword [ebp + 0x14], 0
je 0x4f1c66
mov edx, dword [ebp + 0x14]
movzx eax, word [edx]
test eax, eax
jne 0x4f1c72
mov dword [ebp - 0x218], 0
jmp 0x4f1c93
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call fcn.004f19d0
add esp, 8
test eax, eax
je 0x4f1c93
mov dword [ebp - 0x218], 0
cmp dword [ebp + 0x18], 1
je 0x4f1cbb
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.004f1630
add esp, 0x14
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f019a
mov esp, ebp
pop ebp
ret
Function at 0x4f3ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5233a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f3d38
push 0x400
push eax
lea ecx, [ebp - 0x40a]
push ecx
mov word [ebp - 0x40c], ax
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x40c]
push eax
push 0
push 0
push 0x5233dc
push ecx
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f3d23
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x40c]
push edx
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4f3e00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
push ebx
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x2f6]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x2f8], di
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
cmp eax, 7
ja 0x4f3e53
lea ecx, [eax + eax*4]
shl ecx, 4
lea edx, [ecx + esi + 4]
push edx
lea eax, [ebp - 0x8c]
push 0x28
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x8c]
push ecx
push str._page__s
lea edx, [ebp - 0xf0]
push 0x32
push edx
call dword [sym.imp.MSVCR80.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x2f8]
push eax
call fcn.004f3ca0
lea eax, [ebp - 0x2f8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4f3e86
sub eax, edx
sar eax, 1
je 0x4f3eb0
push 0x523304
lea ecx, [ebp - 0x2f8]
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
jmp 0x4f3ec3
push str.QQPConfig.exe
lea edx, [ebp - 0x2f8]
push 0x104
push edx
call ebx
add esp, 0xc
push 0x38
lea eax, [ebp - 0x38]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2f8]
lea edx, [ebp - 0xf0]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
cmp esi, edi
je 0x4f3f22
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f4180
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x4f42a0
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f4192
sub eax, edx
sar eax, 1
je 0x4f42a0
cmp word [ebp + 2], 0x3a
jne 0x4f42a0
cmp word [ebp + 4], 0x5c
jne 0x4f42a0
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f41c2
sub eax, edx
push ebx
sar eax, 1
push esi
mov esi, eax
xor ecx, ecx
lea eax, [esi + 4]
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call sub.MFC80U.DLL_Ordinal_265
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 4
mov edi, eax
lea eax, [esi + 1]
push eax
push ebp
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x4f4217
push 2
push 0x5231c0
push eax
call ebx
mov ebp, dword [sym.imp.MSVCR80.dll_wcschr]
lea ecx, [edi + 6]
push 0x5c
push ecx
mov dword [esp + 0x1c], 1
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x4f428e
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
push edi
mov word [esi], 0
call ebx
cmp eax, 0xffffffff
je 0x4f4251
test al, 0x10
jne 0x4f425e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4f4286
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call ebp
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f4240
push edi
call sub.MFC80U.DLL_Ordinal_266
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], 0
push edi
call sub.MFC80U.DLL_Ordinal_266
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4f4790
Capabilities:
Read file on windows

Disassembly:
push ecx
xor eax, eax
push esi
lea esi, [edi + 0x44]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
lea eax, [esp + 8]
push eax
push 0x20
push esi
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi], 0x4b4150
mov dword [edi + 0x40], eax
pop esi
jne 0x4f47ed
cmp word [edi + 0x4a], 0
jne 0x4f47ed
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x4f4800
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0x20000
call sub.MFC80U.DLL_Ordinal_265
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x4f4895
push 0x20000
push ebx
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push 0x20000
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [edi], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call ebx
test eax, eax
je 0x4f4886
nop
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4f4886
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
add dword [edi], eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x20000
push esi
push ebp
call ebx
test eax, eax
jne 0x4f4850
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4f48b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push eax
mov dword [esi + 8], eax
mov dword [esp + 0x10], eax
mov word [esi + 0xc], ax
lea eax, [esp + 0x10]
push eax
push 4
push esi
push edi
call ebp
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
lea ebx, [esi + 4]
push ebx
push edi
call ebp
movzx eax, word [ebx]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MFC80U.DLL_Ordinal_265
movzx ecx, word [ebx]
lea edx, [ecx + ecx + 2]
push edx
push 0
push eax
mov dword [esp + 0x20], eax
call sub.MSVCR80.dll_memset
movzx ecx, word [ebx]
mov ebx, dword [esp + 0x20]
add esp, 0x10
push 0
lea eax, [esp + 0x10]
push eax
add ecx, ecx
push ecx
push ebx
push edi
call ebp
mov ecx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebx
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esi + 6]
push eax
push edi
call ebp
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
add esi, 0xa
push esi
push edi
call ebp
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x40]
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x4f4980
Capabilities:
Write file on windows

Disassembly:
lea eax, [esi + 0x44]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 4]
push 0
mov dword [eax], 0x4b4150
mov dx, word [ecx + 8]
lea ecx, [esp + 8]
push ecx
push 0x20
push eax
push edi
mov word [esi + 0x48], dx
mov word [esi + 0x4a], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x40], eax
ret 4
Function at 0x4f4dd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ebp, 8
cmp dword [edi + 0x18], ebp
mov esi, ecx
lea ebx, [edi + 4]
jb 0x4f4dec
mov eax, dword [ebx]
jmp 0x4f4dee
mov eax, ebx
push eax
call fcn.004f42b0
add esp, 4
cmp dword [edi + 0x18], ebp
mov dword [esp + 0x18], esi
jb 0x4f4e02
mov ebx, dword [ebx]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4f4ef5
push 0x20000
call sub.MFC80U.DLL_Ordinal_265
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
je 0x4f4edd
push 0x20000
push ebx
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp esi, 0x20000
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov eax, esi
jb 0x4f4e62
mov eax, 0x20000
cmp esi, ebx
jbe 0x4f4eaf
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [esp]
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f4eaf
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push ebp
call ebx
sub esi, dword [esp + 0x14]
cmp esi, 0x20000
mov eax, esi
jb 0x4f4eab
mov eax, 0x20000
test esi, esi
ja 0x4f4e70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call sub.MFC80U.DLL_Ordinal_266
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
add dword [esi + 0x40], edx
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov esi, dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x4f50c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x502589
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x2c]
cmp dword [esi + 0x18], 8
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
lea ebx, [esi + 4]
jb 0x4f50f6
mov eax, dword [ebx]
jmp 0x4f50f8
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f5108
test al, 0x10
jne 0x4f5119
cmp dword [esi + 0x18], 8
jb 0x4f5110
mov ebx, dword [ebx]
push ebx
call fcn.004f4180
add esp, 4
push esi
lea ecx, [edi + 4]
call dword [0x5096b8]
mov esi, dword [esp + 0x2c]
push esi
lea ecx, [edi + 0x20]
call dword [0x5096b8]
lea ecx, [esp + 0x10]
call fcn.004011c0
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
cmp dword [esi + 0x18], 8
jb 0x4f5153
mov esi, dword [esi + 4]
jmp 0x4f5156
add esi, 4
push eax
push eax
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f51a0
mov dword [edi + 0x40], 0
call fcn.004f4790
test eax, eax
je 0x4f5199
push ebx
mov ecx, edi
call fcn.004f4f10
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.004011e0
mov eax, dword [esp + 0x14]
push eax
call sub.MFC80U.DLL_Ordinal_764
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4f51e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5025f4
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x20]
cmp dword [ebx + 0x18], 8
push edi
mov edi, ecx
jb 0x4f520b
mov eax, dword [ebx + 4]
jmp 0x4f520e
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f521e
test al, 0x10
jne 0x4f5233
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
push esi
lea esi, [edi + 4]
push ebx
mov ecx, esi
call dword [0x5096b8]
mov ebx, dword [esp + 0x2c]
push ebx
lea ecx, [edi + 0x20]
call dword [0x5096b8]
lea ecx, [esp + 0xc]
call fcn.004011c0
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
call fcn.004f4700
add esp, 4
cmp eax, 1
jae 0x4f52ab
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004011e0
mov eax, dword [esp + 0x10]
push eax
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov edx, dword [edi]
mov edx, dword [edx]
push ebx
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, edi
call edx
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.004011e0
mov eax, dword [esp + 0x10]
push eax
call sub.MFC80U.DLL_Ordinal_764
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8