joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4514b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x424
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
mov esi, dword [esp + 0x42c]
push 0x44
push 0
push 0x4a7218
call sub.MSVCR90.dll_memset
push esi
lea ecx, [esp + 0x24]
xor eax, eax
push str.regsvr32__s___s_
push ecx
mov dword [0x4a7218], 0x44
mov word [0x4a7248], ax
call fcn.00451490
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0x4a7218
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.004764f6
add esp, 0x424
ret
Function at 0x451560
Capabilities:
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x47d130
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
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 0x4515c8
push edi
lea ecx, [esp + 0x18]
call fcn.00401e80
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], edi
jge 0x4515d7
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 0x4516e6
mov eax, dword [esi - 8]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_wcsnlen]
add esp, 8
test eax, eax
jl 0x4515cd
cmp eax, dword [esi - 8]
jg 0x4515cd
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.004044e0
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
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.00402e80
mov edx, dword [esp + 0x1c]
push edx
call fcn.004514b0
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
test eax, eax
jne 0x451675
push str.PxtrAACD.dll_reg_failed
call ebp
push esi
lea eax, [esp + 0x14]
push str._sPxtrMP4S.dll
push eax
call fcn.00402e80
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004514b0
add esp, 0x10
test eax, eax
jne 0x45169d
push str.PxtrMP4S.dll_reg_failed
call ebp
push esi
lea edx, [esp + 0x14]
push str._sPxtrVDF.dll
push edx
call fcn.00402e80
mov edi, dword [esp + 0x1c]
push edi
call fcn.004514b0
add esp, 0x10
test eax, eax
jne 0x4516c5
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 0x4516e6
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 0x45170a
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 0x451b90
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 0x451bac
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x451b00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x451bd4
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 0x452480
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp byte [0x4a72b0], 0
push esi
mov esi, ecx
je 0x452495
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.00452300
cmp al, 1
jne 0x4524c5
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.004521b0
pop esi
pop ecx
ret 4
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4

Function at 0x4524d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47d1a2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, dword [esp + 0x234]
mov dword [esp + 0x10], 0
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
mov dword [esp + 0x22c], 0
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SoftwareSamsungKies2.0
push SysReAllocString
mov dword [esp + 0x240], 0
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4525c4
push 0x104
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], 0x104
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.LocalVer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4525b3
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00403480
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004764f6
add esp, 0x228
ret
Function at 0x452790
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47d226
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x328], eax
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x136]
push ecx
mov word [esp + 0x138], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x130]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x10]
call fcn.00406310
push str.ErrorReport.exe
push 0x48ca8c
lea ecx, [esp + 0x14]
mov dword [esp + 0x348], 0
call fcn.004081f0
cmp eax, 1
jne 0x452951
push 0x2000
call fcn.00468318
mov esi, eax
add esp, 4
test esi, esi
je 0x452951
push 0x1000
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x34c]
mov edx, dword [esp + 0x348]
push ecx
push edx
lea eax, [esp + 0x18]
push str.CM_RegiError_d_HR_x
push eax
mov byte [esp + 0x350], 1
call fcn.00402e80
lea ecx, [esp + 0x24]
push ecx
call fcn.004524d0
mov edi, dword [esp + 0x24]
mov edx, dword [eax]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push str.ConnectionManagerError_
push edi
push edx
push str.UnKnown
push eax
push ecx
push str.0.0.0.0
push str.ModuleNameDeviceManager_HiddenIP_sOS_Version_d._dOS_Locale_sSW_Version_sError_sComments_s
push 0xfff
push esi
call dword [sym.imp.MSVCR90.dll__snwprintf]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 0x3c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45290d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push 1
push 0
push esi
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x340], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x452951
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x340], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.004764f6
add esp, 0x338
ret
Function at 0x452cd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
cmp byte [edi + 4], 0
jne 0x452cfa
push 0x4a56ec
lea ecx, [esp + 8]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x49df68
lea eax, [esp + 8]
push eax
call sub.MSVCR90.dll__CxxThrowException
xor edx, edx
cmp dword [edi + 0x3cc], edx
jle 0x452d20
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
lea ecx, [ecx]
mov cl, byte [esi]
xor byte [eax], cl
inc edx
inc esi
inc eax
cmp edx, dword [edi + 0x3cc]
jl 0x452d10
pop esi
pop edi
add esp, 0xc
ret 8
Function at 0x457200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47d4f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov esi, 1
mov ecx, 0x4a743c
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.00401520
add esp, 4
add eax, 0x10
push ebp
mov dword [esi], eax
call fcn.00414660
add esp, 8
push ebx
call fcn.004570f0
add esp, 8
call fcn.00456eb0
add esp, 4
test eax, eax
je 0x4572a8
push 0x4a73a4
mov ecx, edi
call fcn.00404460
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 0x4572cd
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 0x45e500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47df9e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
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 0x45e54c
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 0x45e560
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.0045dfb0
mov ebp, dword [ebx + 0x88]
cmp dword [ebx + 0x84], ebp
lea esi, [ebx + 0x78]
jbe 0x45e58d
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 0x45e5a9
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.0045cde0
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0045d0a0
mov ecx, edi
mov byte [esp + 0x30], 0
call fcn.0045e0d0
mov ecx, ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.0045b2e0
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 0x45efe0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e068
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
push 0x4829a0
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 eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x45f06d
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45f057
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebx
push eax
call esi
add esp, 0xc
cmp eax, ebx
je 0x45f0b0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x45f092
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
jmp 0x45f04b
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.00468318
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 0x45f102
cmp byte [esi + 1], 0xfe
jne 0x45f102
lea edx, [esi + 2]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jmp 0x45f167
cmp al, 0xef
jne 0x45f161
cmp byte [esi + 1], 0xbb
jne 0x45f161
cmp byte [esi + 2], 0xbf
jne 0x45f161
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.00468318
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 0x45f167
push esi
call fcn.00467a10
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 0x45f184
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 0x45f1ac
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
Function at 0x45f4b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e0ab
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
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.00402e80
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 0x45f5d8
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 0x45f578
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 0x45f5a3
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 0x45f5d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45f6c1
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 0x45f610
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 0x45f663
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 0x45f68e
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 0x45f6bc
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.004764f6
add esp, 0x818
ret 8
Function at 0x460070
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x47e1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x2c], 0
call fcn.00401520
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push str.Static_
push str.Cache_
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.004081f0
mov ebp, dword [esp + 0x10]
push ecx
lea esi, [ebp - 0x10]
mov dword [esp + 0x18], esp
mov edi, esp
push esi
call fcn.00401520
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0045fec0
fst qword [esp + 0x1c]
fldz
add esp, 4
fcompp
fnstsw ax
test ah, 5
jp 0x46013d
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00401520
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0045fec0
fcomp qword [esp + 0x1c]
add esp, 4
fnstsw ax
test ah, 0x41
jp 0x46013d
mov eax, dword [esp + 0x30]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [esp + 0x28], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46015b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460183
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x460930
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47e2e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add ecx, eax
push ecx
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
call fcn.004034c0
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
mov dword [esp + 0x28], ebx
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
push ecx
push 0x493158
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
mov dword [esp + 0x24], ebx
call fcn.004601a0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 2
call fcn.00403090
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4609e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x34]
jmp 0x4609f0
push 0x4894f4
push edi
call dword [sym.imp.MSVCR90.dll__mbscmp]
add esp, 8
test eax, eax
setne al
test al, al
je 0x460acd
mov eax, ebx
sub eax, 1
je 0x460abf
cmp ebx, 1
je 0x460acd
lea ecx, [esp + 0x18]
push ecx
push 0x493158
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3c]
call fcn.004601a0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
mov byte [esp + 0x28], 3
cmp eax, esi
je 0x460a94
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x460a82
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x460a82
push eax
call fcn.00401590
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x460a79
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebp + 0x10]
mov dword [esp + 0x34], edi
jmp 0x460a94
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00402ba0
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460ab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
jmp 0x4609f0
push edi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460aee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460b16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8