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

Disassembly:
push 0xffffffffffffffff
push 0x478900
mov eax, dword fs:[0]
push eax
sub esp, 0xa44
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0xa40], eax
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0xa50]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa60]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
mov dword [esp + 0xa58], 1
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0xa26
push eax
lea ecx, [esp + 0x2e]
push ecx
mov dword [esp + 0x28], 1
mov word [esp + 0x30], ax
call sub.MSVCR90.dll_memset
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4a743c
mov dword [esp + 0x10], 0xa28
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xa64]
push 0x23
push ecx
mov byte [esp + 0xa60], 2
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x413761
sub eax, dword [esp + 0xa64]
sar eax, 1
cmp eax, 0xffffffff
jle 0x413761
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xa6c]
call fcn.00407d60
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xa5c], 3
call fcn.00404460
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xa58], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x482aac
push 0x482aa8
lea ecx, [esp + 0x14]
call fcn.004081f0
push 0x481de0
push 0x482a9c
lea ecx, [esp + 0x14]
call fcn.004081f0
jmp 0x413772
lea ecx, [esp + 0xa64]
push ecx
lea ecx, [esp + 0x10]
call fcn.00404460
mov edi, dword [esp + 0xc]
push 0
push edi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x4137b9
mov edx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 1
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
test eax, eax
jne 0x4137b9
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00403480
mov ecx, esi
call fcn.00408420
mov ecx, dword [esi]
push ecx
push str.CDeviceDetect::GetDeviceDescription
push str._s__s
call fcn.00403170
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0xa58], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4137f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa64]
add eax, 0xfffffff0
mov byte [esp + 0xa58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41381d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xa50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa40]
xor ecx, esp
call fcn.004764f6
add esp, 0xa50
ret 8
Function at 0x41a690
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4793f3
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, dword [esp + 0x140]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x144]
mov dword [esp + 0x18], 0x114
mov eax, dword [ecx - 0xc]
or ebp, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x138], ebx
jl 0x41a79f
push str._WIFIVID_SAMSUNGPID_SAMSUNGMI_01
push ecx
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, ebx
je 0x41a79f
mov ecx, dword [esp + 0x144]
sub eax, ecx
sar eax, 1
cmp eax, ebp
je 0x41a79f
lea eax, [ecx - 0x10]
push eax
call fcn.00401520
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 0x482aac
push 0x482aa8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 1
call fcn.004081f0
push 0x481de0
push 0x482a9c
lea ecx, [esp + 0x1c]
call fcn.004081f0
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.00401520
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x138], bl
lea eax, [esi + 0xc]
mov ecx, ebp
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a81e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x41a81e
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a7f7
cmp dword [esp + 0x1c], 6
jne 0x41a7f7
mov eax, dword [esp + 0x144]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebx, esp
push eax
call fcn.00401520
add esp, 4
add eax, 0x10
push edi
mov ecx, esi
mov dword [ebx], eax
call fcn.00415cb0
mov eax, dword [esp + 0x144]
add eax, 0xfffffff0
mov dword [esp + 0x138], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x41a837
mov eax, dword [esp + 0x144]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebx, esp
push eax
call fcn.00401520
add esp, 4
add eax, 0x10
push edi
mov ecx, esi
mov dword [ebx], eax
call fcn.004161b0
mov eax, dword [esp + 0x144]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x138], ebp
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x41a845
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004764f6
add esp, 0x128
ret 8
Function at 0x42d290
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x47a9a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a6eb0]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
mov dword [ebp - 4], 0
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x40c]
lea eax, [ebp + 0x410]
push eax
push ecx
push 0x400
lea edx, [ebp]
push 0x400
mov ebx, 1
push edx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCR90.dll__vsnprintf_s]
add esp, 0x14
test eax, eax
jle 0x42d396
lea eax, [ebp]
push eax
push 0x487c78
lea ecx, [ebp - 0x14]
push str.__s__s
push ecx
call fcn.0040ebb0
add esp, 0x10
push ebx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0042b0a0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x42d35f
test ecx, ecx
jge 0x42d357
push 0x80070057
call fcn.00401120
mov al, byte [eax]
cmp al, 0xa
jne 0x42d35f
xor bl, bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d37e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42d38c
push 0xa
lea ecx, [ebp - 0x14]
call fcn.0042c020
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d3b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.004764f6
add ebp, 0x404
mov esp, ebp
pop ebp
ret
Function at 0x436310
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]
xor ebx, ebx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
call fcn.00406310
mov ecx, dword [esp + 0x28]
push 0x4829f8
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x436392
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebx
push eax
call esi
add esp, 0xc
cmp eax, ebx
je 0x4363c1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x436392
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 0x4363ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4364c1
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], 0
mov byte [eax + esi + 1], 0
mov al, byte [esi]
add esp, 0x24
cmp al, 0xff
jne 0x436415
cmp byte [esi + 1], 0xfe
jne 0x436415
lea edx, [esi + 2]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jmp 0x43647a
cmp al, 0xef
jne 0x436474
cmp byte [esi + 1], 0xbb
jne 0x436474
cmp byte [esi + 2], 0xbf
jne 0x436474
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 0x43647a
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 0x436497
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 0x4364bf
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 0x44f680
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47cf1b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov eax, dword [0x4a6eb0]
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 0x44f7ef
test edi, edi
je 0x44f7ef
lea ecx, [esp + 0x21c]
push ecx
push 0x104
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x44f772
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, 0xffff0000
jne 0x44f7f4
test esi, esi
jle 0x44f7f4
and esi, 0xffff
or esi, 0x80070000
jmp 0x44f7f4
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 0x44f7b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, 0xffff0000
jne 0x44f7f4
test esi, esi
jle 0x44f7f4
and esi, 0xffff
or esi, 0x80070000
jmp 0x44f7f4
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x48c7e4
push esi
call eax
mov esi, eax
test esi, esi
jl 0x44f7f4
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 0x44f7f4
lea ecx, [esp + 0x14]
push ecx
call ebx
jmp 0x44f7f4
mov esi, 0x80070057
cmp word [esp + 0x21c], 0
je 0x44f806
lea edx, [esp + 0x14]
push edx
call ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x430], 0xffffffff
test eax, eax
je 0x44f821
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.004764f6
add esp, 0x424
ret

Function at 0x450140
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 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 0x48cc2c
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 0x49e108
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 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 0x4829f8
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 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 0x4932f8
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 0x4895ec
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 0x4932f8
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