joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448640
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov edx, dword [esp + 4]
push ebp
push esi
xor eax, eax
xor ecx, ecx
xor esi, esi
mov ebp, edx
cmp byte [edx], al
je 0x4486dc
push ebx
push edi
mov edi, dword [esp + 0x18]
lea esp, [esp]
movsx edx, byte [ebp]
mov edx, dword [edx*4 + 0x49b2a0]
cmp edx, 0xffffffff
je 0x4486d3
cmp esi, 3
ja case.default.0x448675
jmp dword [esi*4 + 0x4486e0]
mov esi, 1
jmp case.default.0x448675
cmp eax, dword [esp + 0x1c]
jge 0x44869b
mov ebx, edx
sar ebx, 4
add cl, cl
and bl, 3
add cl, cl
or bl, cl
mov byte [eax + edi], bl
inc eax
mov esi, 2
jmp case.default.0x448675
cmp eax, dword [esp + 0x1c]
jge 0x4486b9
mov ebx, edx
sar ebx, 2
and bl, 0xf
shl cl, 4
or bl, cl
mov byte [eax + edi], bl
inc eax
mov esi, 3
jmp case.default.0x448675
cmp eax, dword [esp + 0x1c]
jge 0x4486cf
shl cl, 6
or cl, dl
mov byte [eax + edi], cl
inc eax
xor esi, esi
mov ecx, edx
inc ebp
cmp byte [ebp], 0
jne 0x448660
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4489a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 0x14]
push eax
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push 0x485514
push SysReAllocStringLen
mov dword [esp + 0x30], 0xb4
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x448a03
mov esi, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x4860d0
push esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [esp + 0xc]
test esi, esi
je 0x448a12
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret

Function at 0x44c010
Capabilities:
Get disk information

Disassembly:
sub esp, 0x204
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x200], eax
mov ecx, dword [ecx + 4]
push 0
push 0
push 0
push 0
push 0
push 0x1fe
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00472076
add esp, 0x204
ret
Function at 0x44c270
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x479780
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov esi, dword [esp + 0x228]
mov dword [esp + 8], 0
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x22c]
push ecx
mov ecx, dword [esp + 0x234]
push 0x208
lea eax, [esp + 0x14]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x238], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004062a0
mov eax, dword [esp + 0x22c]
add eax, 0xfffffff0
mov byte [esp + 0x220], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44c31f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x230]
add eax, 0xfffffff0
mov dword [esp + 0x220], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44c34d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00472076
add esp, 0x21c
ret 0xc
Function at 0x44d9a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push str.IsWow64Process
xor ebx, ebx
push str.kernel32
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x44d9e8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push edi
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, 1
cmp eax, edx
jne 0x44dac4
cmp edi, 4
jne 0x44dac4
cmp ecx, ebx
jne 0x44dac4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp eax, edx
jne 0x44dae6
cmp edi, 4
jne 0x44dae6
cmp ecx, 0x5a
jne 0x44dae6
mov dword [esp + 0x18], edx
xor ebp, ebp
cmp eax, 2
jne 0x44da66
cmp edi, 4
jne 0x44db07
cmp ecx, ebx
jne 0x44db07
mov ebx, edx
xor esi, esi
cmp eax, 2
jne 0x44da7a
cmp edi, 5
jne 0x44da7a
cmp ecx, edx
je 0x44db28
xor edx, edx
cmp eax, 2
jne 0x44db28
cmp edi, 5
jne 0x44db28
cmp ecx, eax
jne 0x44db28
lea ecx, [edx + 1]
xor eax, eax
cmp dword [esp + 0x14], 0
pop edi
je 0x44db44
pop esi
pop ebp
mov eax, 0xb
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00472076
add esp, 0x128
ret
mov dword [esp + 0x1c], ebx
cmp eax, edx
jne 0x44da2a
cmp edi, 4
jne 0x44da2a
cmp ecx, 0xa
jne 0x44da2a
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
cmp eax, 2
jne 0x44da4c
cmp edi, 3
jne 0x44da4c
cmp ecx, 0x33
jne 0x44da4c
mov ebp, edx
cmp eax, 2
jne 0x44da66
cmp edi, 5
jne 0x44da66
test ecx, ecx
jne 0x44da66
mov esi, edx
jmp 0x44da7a
xor ecx, ecx
cmp eax, 2
jne 0x44da99
cmp edi, 6
jne 0x44da99
lea eax, [ecx + 1]
jmp 0x44da9b
cmp dword [esp + 0x18], 0
je 0x44db68
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00472076
add esp, 0x128
ret
cmp dword [esp + 0xc], 0
je 0x44db8c
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00472076
add esp, 0x128
ret
cmp dword [esp + 0x14], 0
je 0x44dbb0
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00472076
add esp, 0x128
ret
test ebp, ebp
je 0x44dbd1
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00472076
add esp, 0x128
ret
test ebx, ebx
je 0x44dbf2
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00472076
add esp, 0x128
ret
test esi, esi
je 0x44dc13
pop esi
pop ebp
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00472076
add esp, 0x128
ret
test edx, edx
je 0x44dc34
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00472076
add esp, 0x128
ret
test ecx, ecx
je 0x44dc55
pop esi
pop ebp
mov eax, 8
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00472076
add esp, 0x128
ret
mov ecx, dword [esp + 0x130]
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 3
pop ebx
xor ecx, esp
add eax, 7
call fcn.00472076
add esp, 0x128
ret
Function at 0x44eea0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x479aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov esi, dword [esp + 0x438]
mov edi, dword [esp + 0x43c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x226]
push ecx
mov word [esp + 0x228], ax
call sub.MSVCR90.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2a]
push eax
mov word [esp + 0x2c], dx
call sub.MSVCR90.dll_memset
add esp, 0x18
mov dword [esp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x430], 0
test esi, esi
je 0x44f00f
test edi, edi
je 0x44f00f
lea ecx, [esp + 0x21c]
push ecx
push 0x104
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x44ef92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, 0xffff0000
jne 0x44f014
test esi, esi
jle 0x44f014
and esi, 0xffff
or esi, 0x80070000
jmp 0x44f014
lea edx, [esp + 0x14]
push edx
push 0
push str.DeviceIcon
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x44efd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, 0xffff0000
jne 0x44f014
test esi, esi
jle 0x44f014
and esi, 0xffff
or esi, 0x80070000
jmp 0x44f014
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x487df4
push esi
call eax
mov esi, eax
test esi, esi
jl 0x44f014
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 5
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
test esi, esi
jl 0x44f014
lea ecx, [esp + 0x14]
push ecx
call ebx
jmp 0x44f014
mov esi, 0x80070057
cmp word [esp + 0x21c], 0
je 0x44f026
lea edx, [esp + 0x14]
push edx
call ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x430], 0xffffffff
test eax, eax
je 0x44f041
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00472076
add esp, 0x424
ret

Function at 0x44f960
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4509f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x424
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
mov esi, dword [esp + 0x42c]
push 0x44
push 0
push 0x49f258
call sub.MSVCR90.dll_memset
push esi
lea ecx, [esp + 0x24]
xor eax, eax
push str.regsvr32__s___s_
push ecx
mov dword [0x49f258], 0x44
mov word [0x49f288], ax
call dword [sym.imp.MSVCR90.dll__swprintf]
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0x49f258
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x424]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00472076
add esp, 0x424
ret
Function at 0x450aa0
Capabilities:
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x479ca0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x49f474]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f474
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
mov dword [esp + 0x20], 0
jge 0x450b08
push edi
lea ecx, [esp + 0x18]
call fcn.00401ea0
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], edi
jge 0x450b17
push 0x80070057
call fcn.00401120
push 1
push 0x2b
xor eax, eax
push esi
mov dword [esi - 0xc], edi
push eax
mov word [esi + 0x208], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x450c26
mov eax, dword [esi - 8]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_wcsnlen]
add esp, 8
test eax, eax
jl 0x450b0d
cmp eax, dword [esi - 8]
jg 0x450b0d
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x26
mov word [esi + eax*2], cx
push str.SamsungDeviceServiceDCAM_DSC_Codec_
lea ecx, [esp + 0x1c]
call fcn.00404470
mov edx, dword [0x49f474]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f474
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x14]
push str._sPxtrAACD.dll
push ecx
mov byte [esp + 0x2c], 1
call fcn.00402e10
mov edx, dword [esp + 0x1c]
push edx
call fcn.004509f0
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
test eax, eax
jne 0x450bb5
push str.PxtrAACD.dll_reg_failed
call ebp
push esi
lea eax, [esp + 0x14]
push str._sPxtrMP4S.dll
push eax
call fcn.00402e10
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004509f0
add esp, 0x10
test eax, eax
jne 0x450bdd
push str.PxtrMP4S.dll_reg_failed
call ebp
push esi
lea edx, [esp + 0x14]
push str._sPxtrVDF.dll
push edx
call fcn.00402e10
mov edi, dword [esp + 0x1c]
push edi
call fcn.004509f0
add esp, 0x10
test eax, eax
jne 0x450c05
push str.PxtrVDF.dll_reg_failed
call ebp
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450c26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450c4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x451560
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x45157c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4514d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4515a4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x451e50
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp byte [0x49f2e8], 0
push esi
mov esi, ecx
je 0x451e65
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, esi
call fcn.00451cd0
cmp al, 1
jne 0x451e95
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00451b80
pop esi
pop ecx
ret 4
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
Function at 0x455000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479fb1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [0x49f474]
mov edx, dword [eax + 0xc]
mov esi, 1
mov ecx, 0x49f474
mov dword [esp + 0x24], esi
call edx
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x30]
push ecx
mov dword [esp + 0x1c], esp
mov ebx, esp
push ecx
mov dword [esp + 0x20], esp
mov ebp, esp
push ecx
mov dword [esp + 0x20], esi
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00401510
add esp, 4
add eax, 0x10
push ebp
mov dword [esi], eax
call fcn.00411390
add esp, 8
push ebx
call fcn.00454ef0
add esp, 8
call fcn.00454cb0
add esp, 4
test eax, eax
je 0x4550a8
push 0x49f3dc
mov ecx, edi
call fcn.004043f0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4550cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x45c480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47aa2e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov dword [ebx], vtable.CXmlParserWMModelProfile.0
mov ebp, dword [ebx + 0x70]
lea edi, [ebx + 0x60]
mov dword [esp + 0x30], 2
cmp dword [edi + 0xc], ebp
jbe 0x45c4cc
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x14], eax
cmp esi, dword [edi + 0x10]
jbe 0x45c4e0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
push ebp
push ecx
push esi
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.0045bf30
mov ebp, dword [ebx + 0x88]
cmp dword [ebx + 0x84], ebp
lea esi, [ebx + 0x78]
jbe 0x45c50d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x45c529
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
push ebp
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0045ad30
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0045b020
mov ecx, edi
mov byte [esp + 0x30], 0
call fcn.0045c050
mov ecx, ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.00459210
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x45cf60
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47aaf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
push 0x47e748
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebx
push edx
call esi
add esp, 0x18
cmp eax, ebx
je 0x45cffc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x45cfcd
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45cff5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45d0fa
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_ftell]
mov edx, dword [esp + 0x18]
push ebx
push ebx
push edx
mov edi, eax
call esi
lea eax, [edi + 2]
push eax
call fcn.00463e98
mov ecx, dword [esp + 0x28]
push ecx
push edi
mov esi, eax
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
mov byte [eax + esi], bl
mov byte [eax + esi + 1], bl
mov al, byte [esi]
add esp, 0x24
cmp al, 0xff
jne 0x45d04e
cmp byte [esi + 1], 0xfe
jne 0x45d04e
lea edx, [esi + 2]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jmp 0x45d0b3
cmp al, 0xef
jne 0x45d0ad
cmp byte [esi + 1], 0xbb
jne 0x45d0ad
cmp byte [esi + 2], 0xbf
jne 0x45d0ad
push ebx
push ebx
push 0xffffffffffffffff
lea edi, [esi + 3]
push edi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ebp, [eax + 1]
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00463e98
add esp, 4
push ebp
mov ebx, eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jmp 0x45d0b3
push esi
call fcn.00463590
push esi
mov edi, eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x45d0d0
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d0f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x45d3f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ab3b
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
mov eax, dword [0x49f474]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f474
mov dword [esp + 0x824], 1
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x830]
push eax
lea ecx, [esp + 0x14]
push str._s_version.dat
push ecx
mov byte [esp + 0x830], 2
call fcn.00402e10
mov edi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45d518
lea eax, [edi - 0x10]
mov byte [esp + 0x824], 1
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d4b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x82c]
add eax, 0xfffffff0
mov byte [esp + 0x824], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d4e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x830]
add eax, 0xfffffff0
mov dword [esp + 0x824], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d511
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45d601
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x22]
push edx
mov word [esp + 0x24], cx
call sub.MSVCR90.dll_memset
mov ebp, dword [esp + 0x838]
lea edx, [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x14], 0
mov eax, ebp
sub edx, ebp
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x45d550
mov eax, dword [ebp - 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
add eax, eax
push eax
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov byte [esp + 0x824], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d5a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x82c]
add eax, 0xfffffff0
mov byte [esp + 0x824], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d5ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x830]
add eax, 0xfffffff0
mov dword [esp + 0x824], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d5fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00472076
add esp, 0x818
ret 8