joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a128
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.004dbe65
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x4623da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4623be
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x64]
call fcn.0045aad0
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x4624a6
xor esi, esi
mov dword [ebp - 0x14], esi
lea esp, [esp]
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
call eax
cmp eax, 0xffffffff
je 0x46246e
test eax, eax
je 0x462499
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x462495
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x462499
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x462467
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x462499
test eax, eax
jg 0x462430
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x4623f6
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00459890
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4624cd
push eax
call fcn.004f1ca3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4624fa
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 esp, ebp
pop ebp
ret
Function at 0x462570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a178
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.004dbe65
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x46260a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4625ee
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x6c]
call fcn.0045acd0
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x4626d6
xor esi, esi
mov dword [ebp - 0x14], esi
lea esp, [esp]
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x6c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx]
call eax
cmp eax, 0xffffffff
je 0x46269e
test eax, eax
je 0x4626c9
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x4626c5
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x4626c9
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x462697
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x4626c9
test eax, eax
jg 0x462660
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x462626
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00459ad0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4626fd
push eax
call fcn.004f1ca3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46272a
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 esp, ebp
pop ebp
ret
Function at 0x4627a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.004dbe65
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x46283a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x46281e
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x68]
call fcn.0045ae80
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x462906
xor esi, esi
mov dword [ebp - 0x14], esi
lea esp, [esp]
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
call eax
cmp eax, 0xffffffff
je 0x4628ce
test eax, eax
je 0x4628f9
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x4628f5
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x4628f9
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x4628c7
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x4628f9
test eax, eax
jg 0x462890
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x462856
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00459d40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46292d
push eax
call fcn.004f1ca3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46295a
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 esp, ebp
pop ebp
ret
Function at 0x4629d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a213
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.004dbe65
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x462a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x462a4e
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x84]
call fcn.0045e7c0
mov byte [ebp - 4], 2
lea esp, [esp]
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x462b4d
xor esi, esi
mov dword [ebp - 0x14], esi
lea ebx, [ebx]
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x84]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x462b15
test eax, eax
je 0x462b40
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x462b3c
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x462b40
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x462b0e
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x462b40
test eax, eax
jg 0x462ad0
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x462a90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0045f430
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x462b73
push eax
call fcn.004f1ca3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462ba0
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 esp, ebp
pop ebp
ret
Function at 0x46b880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bbb3
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.004dbe65
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x46b91a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x46b8fe
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x84]
call fcn.00469f80
mov byte [ebp - 4], 2
lea esp, [esp]
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x46b9fc
xor esi, esi
mov dword [ebp - 0x14], esi
lea ebx, [ebx]
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x84]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
call eax
cmp eax, 0xffffffff
je 0x46b9c4
test eax, eax
je 0x46b9ef
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x46b9eb
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x46b9ef
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x46b9bd
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x46b9ef
test eax, eax
jg 0x46b980
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x46b940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00469ef0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46ba22
push eax
call fcn.004f1ca3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ba4f
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 esp, ebp
pop ebp
ret
Function at 0x476860
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52da4d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CAppLogItem.0
call fcn.0045a020
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x28]
mov ecx, 0x58c214
mov dword [ebp - 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x2c]
mov ecx, 0x58c214
mov dword [ebp - 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 4
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x30]
mov ecx, 0x58c214
mov dword [ebp - 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x34]
mov ecx, 0x58c214
mov dword [ebp - 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 8
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x38]
mov ecx, 0x58c214
mov dword [ebp - 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xa
lea edi, [esi + 0x3c]
push 0x24
mov dword [ebp - 0x18], edi
mov dword [edi + 8], ebx
call fcn.004f1c23
add esp, 4
cmp eax, ebx
je 0x47698e
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov ecx, dword [edi + 4]
mov al, 1
mov byte [ecx + 0x20], al
mov edx, dword [edi + 4]
mov byte [edx + 0x21], al
mov byte [ebp - 4], 0xe
mov dword [esi + 0x4c], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.004f16a5
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
mov byte [ebp - 4], 0xa
push 0x566444
lea ecx, [ebp - 0x24]
push ecx
call fcn.004f08d9
int3
Function at 0x47b9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e763
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.004dbe65
add esp, 4
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x47ba8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x47ba73
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x9c]
call fcn.00476860
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, 0x1fa0
sub eax, esi
push eax
lea ecx, [esi + ebx]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
add esi, eax
mov dword [ebp - 0x28], esi
add dword [ebp - 0x20], eax
test eax, eax
je 0x47bb5b
xor esi, esi
mov dword [ebp - 0x18], esi
jmp 0x47bae6
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
sub edi, esi
add ebx, esi
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push ebx
lea ecx, [ebp - 0x9c]
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx]
call eax
cmp eax, 0xffffffff
je 0x47bb25
test eax, eax
je 0x47bb4b
add esi, eax
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x28]
jb 0x47bb47
xor esi, esi
mov dword [ebp - 0x18], esi
jmp 0x47bb4b
cmp edi, 0x1fa0
ja 0x47bb1e
push edi
push ebx
push 0x1fa0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x18], esi
jmp 0x47bb4b
test eax, eax
jg 0x47bae3
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], 0
jne 0x47bab1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.00478ac0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x47bb7e
push ebx
call fcn.004f1ca3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47bbab
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 esp, ebp
pop ebp
ret
Function at 0x47e4d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ec0b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
lea edx, [ebp - 0x224]
push edx
push 0x2001f
push esi
push ecx
push eax
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x47e629
mov ecx, dword [ebp - 0x21c]
xor eax, eax
cmp ecx, esi
je 0x47e566
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], esi
mov ecx, dword [ebp - 0x224]
mov edi, eax
mov dword [ebp - 0x21c], ecx
cmp eax, esi
jne 0x47e629
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x234]
push eax
push esi
push esi
push esi
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x210]
push eax
push esi
push ecx
mov dword [ebp - 0x220], 0x100
call edi
test eax, eax
jne 0x47e602
lea esp, [esp]
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0047e4d0
mov ebx, eax
cmp ebx, esi
jne 0x47e667
lea edx, [ebp - 0x234]
push edx
mov edx, dword [ebp - 0x21c]
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x210]
push ecx
push esi
push edx
mov dword [ebp - 0x220], 0x100
call edi
test eax, eax
je 0x47e5b0
mov ebx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x47e619
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], esi
mov eax, dword [ebp - 0x228]
push eax
mov ecx, ebx
call fcn.0047dd50
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x47e647
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x47e685
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], esi
mov eax, ebx
jmp 0x47e649