joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53e51c
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x53e544
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x53e555
push 2
call edi
test ax, ax
jge 0x53e555
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00532a3b
cmp dword [esi + 0x30], ebx
jne 0x53e62f
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00532a3b
cmp eax, dword [esp + 0x34]
jne 0x53e62f
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x53e5cb
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x53e610
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x53e62f
cmp eax, 0x205
je 0x53e62f
cmp eax, 0x201
je 0x53e62f
cmp eax, 0x204
je 0x53e62f
cmp eax, ebx
jne 0x53e5f6
cmp dword [esp + 0x1c], 0x1b
je 0x53e62f
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0xb881f0]
jbe 0x53e625
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x53e588
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x10031690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1003169f
pop dword [ebp - 0x48]
mov eax, 0x1003169f
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xa794ac27
sub dword [ebp - 0x58], 0x594266dc
mov dword [ebp - 0x54], 0xbc52f784
add dword [ebp - 0x54], 0x75e054c1
mov dword [ebp - 0x50], 0x66338c88
sub dword [ebp - 0x50], 0x19e7485a
mov dword [ebp - 0x4c], 0x279816be
sub dword [ebp - 0x4c], 0x279816be
lea eax, [ebp - 0x58]
push eax
mov eax, 0x1585bad3
sub eax, 0x581da57
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x8cafb63
sub dword [ebp - 0x58], 0x9458920d
mov dword [ebp - 0x54], 0x7129541a
add dword [ebp - 0x54], 0xd0430d5b
mov dword [ebp - 0x50], 0xf350640c
sub dword [ebp - 0x50], 0x8fe0f7a0
mov dword [ebp - 0x4c], 0xbc7bd08d
sub dword [ebp - 0x4c], 0xbc7bd08d
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x995b44ed
sub eax, 0x89576469
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x40ee1
push 0
call eax
mov ecx, 0x5276
xor edx, edx
add edx, eax
mov ebx, 0x884dc966
sub ebx, 0x7846b766
add ebx, dword [ebp - 0x48]
mov esi, 0x86b2e7a5
sub dword [ebp - 0x38], edx
mov edi, dword [ebx]
xor dword [ebp - 0x1c], edx
add edi, esi
sub dword [ebp - 0x34], edx
mov dword [edx], edi
xor dword [ebp - 0x30], ecx
add edx, 0x65ae7212
sub edx, 0x65ae720e
add ebx, 4
loop 0x100317b2
add eax, 0xb040d51a
sub eax, 0xb03f986f
xor ebx, ebx
add ebx, eax
add eax, 0x992db9c8
sub eax, 0x992db9c3
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x100048b0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 0
push 0
push 0xa0000
push 0xa0000
push 0xff
push 0
push 0x40000003
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100049b1
push ebx
push edi
push 0
push 0
push 1
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push esi
movdqu xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10004985
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x217
je 0x10004985
cmp eax, 0x3e5
jne 0x1000496a
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push 0
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1000498a
push eax
mov eax, dword [ebp - 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000498a
jmp 0x10004988
call edi
push eax
push str.CWinPipe::AcceptRaw
push str._s:_ConnectNamedPipe_failed:__d_n
call dword [sym.imp.MSVCR120.dll_printf]
mov edi, dword [ebp + 8]
add esp, 0xc
jmp 0x1000498a
mov edi, dword [ebp + 8]
mov bl, 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test bl, bl
jne 0x100049a6
push esi
call edi
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CWinPipe::AcceptRaw
push str._s:_CreateNamedPipe_failed__d_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100049e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], 0
movdqu xmmword [ebp - 0x20], xmm0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004a55
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x10004a4a
cmp dword [ebp + 0xc], ebx
jne 0x10004a4a
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x10004aae
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 8]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x10004aae
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x10004ac4
cmp dword [ebp + 0xc], ebx
jne 0x10004ac4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
call edi
push eax
push str.CWinPipe::SendRaw
push str._s:_failed:__d_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 0xc
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10004b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov edx, ecx
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 8], edx
xorps xmm0, xmm0
mov dword [ebp - 4], ecx
movdqu xmmword [ebp - 0x28], xmm0
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10004c79
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
nop
lea ebx, [ebp - 0x28]
sub eax, ecx
push ebx
push 0
push eax
mov eax, dword [ebp + 8]
add eax, ecx
push eax
push dword [edx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
test eax, eax
jne 0x10004c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10004c59
mov ecx, dword [ebp - 8]
push 0x1cff
push 0xffffffffffffffff
push 0
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x10004c21
cmp eax, 2
jne 0x10004c59
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
je 0x10004bc2
lea eax, [ebp - 0x44]
push eax
call edi
lea eax, [ebp - 0x44]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x10004c01
jmp 0x10004bc2
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x10004c76
add ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp ecx, eax
jae 0x10004c76
mov edx, dword [ebp - 8]
jmp 0x10004b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CWinPipe::RecvRaw
push str._s:_failed:__d_n
call dword [sym.imp.MSVCR120.dll_printf]
mov ecx, dword [ebp - 4]
add esp, 0xc
pop ebx
pop edi
pop esi
xor eax, eax
cmp ecx, dword [ebp + 0xc]
sete al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10005080
Capabilities:
Initialize winsock library
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
mov dword [ebp - 0x19c], 0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100050bd
push eax
push str.WSAStartup_failed:__d
push 0x5d
jmp 0x100050fc
push 0x100badc8
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [ebp - 0x19c]
push ecx
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetBestInterface]
test eax, eax
je 0x100050ef
push eax
push str.Network_is_unreachable:__lu
push 0x66
push str.SystemUtility::Device::getCurrentNetwork
call fcn.100989a0
add esp, 0x10
push dword [ebp - 0x19c]
push str.Best_interface_is:__lu
push 0x69
push str.SystemUtility::Device::getCurrentNetwork
call fcn.100989a0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x19c]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x10007250
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100aec6d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x28]
mov edx, dword [ebp + 8]
push eax
push edx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.10003fc0
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x10]
mov eax, dword [esi]
push 0xffffffffffffffff
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.10003ea0
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x20], esi
mov dword [esi + 0x10], 0
push 0x24
mov byte [esp + 0x6c], 2
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
jne 0x1000730c
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 4
push ecx
mov ecx, eax
call fcn.1000d480
mov dword [esi + 0x10], eax
mov byte [esp + 0x68], 1
call fcn.100066c0
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 0x18
cmp dword [esp + 0x24], 0x10
jb 0x10007344
push dword [esp + 0x10]
call esi
add esp, 4
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
jb 0x10007369
push dword [esp + 0x28]
call esi
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.100ad688
mov esp, ebp
pop ebp
ret 8

Function at 0x1000acd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100af348
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, 0x100baff8
inc eax
cmp byte [eax], 0
jne 0x1000ad02
sub eax, 0x100baff8
mov dword [esp + 0x28], 0x100005
mov dword [esp + 0x1c], 0x100baff8
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0xc]
mov esi, 0x1606
mov eax, ecx
mov dword [esp + 0x38], 0
cdq
test ecx, ecx
mov dword [esp + 0xc], eax
mov eax, 0x3e06
cmovns esi, eax
mov dword [esp + 0x10], edx
push ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], esi
push eax
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.1000a5c0
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.10009d20
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10009d20
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ad90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100af348
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
mov eax, edx
cmp byte [edx], 0
je 0x1000adcc
inc eax
cmp byte [eax], 0
jne 0x1000adc6
sub eax, edx
mov dword [esp + 0x28], 0x100005
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov dword [esp + 0x38], 0
cmp byte [ecx], 0
je 0x1000adf6
inc eax
cmp byte [eax], 0
jne 0x1000adf0
sub eax, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x100005
push eax
mov ecx, esi
call fcn.1000a5c0
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.10009d20
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10009d20
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000ae50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100af348
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
mov eax, edx
cmp byte [edx], 0
je 0x1000ae8d
inc eax
cmp byte [eax], 0
jne 0x1000ae87
sub eax, edx
mov dword [esp + 0x28], 0x100005
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0xc]
mov esi, 0x1606
mov eax, ecx
mov dword [esp + 0x38], 0
cdq
test ecx, ecx
mov dword [esp + 0xc], eax
mov eax, 0x3e06
cmovns esi, eax
mov dword [esp + 0x10], edx
push ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], esi
push eax
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.1000a5c0
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.10009d20
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10009d20
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000e7b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 8], 0
mov dword [esi + 0xc], eax
jne 0x1000e7db
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x1000e8f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 8], eax
pop esi
setne al
pop ebp
ret 4
Function at 0x1000f9e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100af740
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
xor edx, edx
lea eax, [edi + 0x198]
xchg dword [eax], edx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edx, edx
je 0x1000fab5
lea esi, [edi + 0x30]
push esi
mov dword [esp + 0x14], esi
call ebx
mov byte [esi + 0x18], 1
mov dword [esp + 0x40], 0
mov ecx, dword [edi + 0x13c]
mov byte [edi + 0x154], 0
test ecx, ecx
je 0x1000fa88
call fcn.1000e380
mov ebx, dword [edi + 0x13c]
test ebx, ebx
je 0x1000fa78
mov ecx, ebx
call fcn.1000e0e0
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x13c], 0
mov ecx, dword [edi + 0x1bc]
lea eax, [esp + 0x14]
push 8
push eax
mov dword [esp + 0x1c], 0x11
mov dword [esp + 0x20], 9
call fcn.10004ad0
push esi
mov byte [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x1b8], 0
lea esi, [edi + 0x1b8]
je 0x1000fb33
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [edi + 0x1a0]
mov eax, dword [edi + 0x1a4]
push 0
shld eax, ecx, 1
push 0x3e8
add ecx, ecx
push eax
push ecx
call fcn.100ae1c0
add eax, dword [edi + 0x1a8]
adc edx, dword [edi + 0x1ac]
cmp dword [esp + 0x18], edx
jl 0x1000fb33
jg 0x1000fb09
cmp dword [esp + 0x14], eax
jb 0x1000fb33
xor eax, eax
xchg dword [esi], eax
test eax, eax
je 0x1000fb33
mov ecx, dword [edi + 0x1bc]
lea eax, [esp + 0x1c]
push 0x10
push eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x28], 4
call fcn.10004ad0
lea esi, [edi + 0x30]
push esi
mov dword [esp + 0x18], esi
call ebx
mov byte [esi + 0x18], 1
mov dword [esp + 0x40], 1
cmp dword [edi + 0xbc], 0
je 0x1000fbe4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [edi + 0x1b0]
mov eax, ebx
or eax, dword [edi + 0x1b4]
je 0x1000fbe4
push 0
push 0x32
push dword [edi + 0x1a4]
push dword [edi + 0x1a0]
call fcn.100ae270
push 0
push 0x3e8
push edx
push eax
call fcn.100ae1c0
add eax, ebx
adc edx, dword [edi + 0x1b4]
cmp dword [esp + 0x20], edx
jl 0x1000fbe4
jg 0x1000fbaa
cmp dword [esp + 0x1c], eax
jb 0x1000fbe4
mov eax, dword [edi + 0xbc]
cmp byte [eax + 0x24], 0
je 0x1000fbe4
mov eax, dword [eax + 8]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test byte [esp + 0x10], 1
je 0x1000fbe4
mov ecx, dword [edi + 0xbc]
cmp byte [ecx + 0x25], 0
jne 0x1000fbe4
call fcn.10011010
push esi
mov byte [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x10019510
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0268
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
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 edi, ecx
mov eax, dword [edi]
add eax, 0x18
mov dword [ebp - 0x44], 0
cmp dword [eax + 0x14], 8
jb 0x10019551
mov eax, dword [eax]
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.MSVCP120.dll_enum_std::tr2::sys::file_type___cdecl_std::tr2::sys::_Stat_wchar_t_const___int__]
add esp, 8
test eax, eax
je 0x1001956c
cmp eax, 1
je 0x1001956c
mov bl, 1
jmp 0x1001956e
xor bl, bl
mov ecx, dword [edi]
lea edx, [ecx + 0x18]
call fcn.1001b460
test al, al
je 0x10019586
mov eax, 2
jmp 0x1001962c
mov ecx, dword [edi]
lea eax, [ebp - 0x40]
push eax
add ecx, 0x18
call fcn.1001a070
mov esi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
mov ecx, dword [edi]
push eax
call fcn.1001a070
cmp dword [esi + 0x14], 8
jb 0x100195b0
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x100195b8
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
sete bh
cmp dword [ebp - 0x14], 8
jb 0x100195db
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x100195fd
push dword [ebp - 0x40]
call esi
add esp, 4
test bh, bh
je 0x10019620
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 0x70
jne 0x10019613
lea eax, [ecx - 0x6b]
jmp 0x1001962c
xor eax, eax
cmp ecx, 0x20
setne al
add eax, 6
jmp 0x1001962c
xor eax, eax
mov ecx, 3
test bl, bl
cmovne eax, ecx
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.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x10020a60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b0f30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xec4]
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
lea eax, [esp + 0x18]
mov byte [esp + 0x30], 1
push eax
lea ecx, [edi + 0x710]
call fcn.1006eaf0
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.10056970
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.1001e6c0
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [edi + 0xf34]
mov byte [edi + 0xebd], 0
mov byte [edi + 0xf2c], 0
call fcn.1003fb00
cmp byte [edi + 0xf40], 0
je 0x10020b48
push 0
push str.show_change__d
push 0x34
push str.vbox::CKeyboardShow::SetShow
mov byte [edi + 0xf40], 0
call fcn.100989a0
add esp, 0x10
lea eax, [edi + 0xfd8]
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [edi + 0x1008]
call fcn.1001e470
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10020b7d
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret