joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1296e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x1000]
cmp eax, 0x2000
jb 0x1296fac
cmp dword [edi], 0x19530414
jne 0x1296fac
mov eax, dword [ebp + 0xc]
add eax, 0x1000
cmp eax, 0x2000
jb 0x1296fa2
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1296f97
lea eax, [edi + 4]
push esi
push eax
call fcn.01295cc0
mov esi, eax
add esp, 4
test esi, esi
js 0x1296f8e
lock inc dword [edi + 0x24]
cmp dword [edi + 0x4c], 0
jne 0x1296f80
call fcn.01295a00
mov dword [edi + 0x4c], eax
cmp byte [edi + 0x29], 0
mov dword [ebp - 4], 0
jne 0x1296f62
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [edi + 4]
push eax
call fcn.01295e60
add esp, 4
lea esi, [edi + 0x54]
lea eax, [ebp - 4]
push esi
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1296eb4
xor esi, esi
jmp 0x1296efd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1296f54
push 0xffffffffffffffff
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1296f38
push 1
lea eax, [ebp - 4]
push eax
push esi
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1296eec
xor esi, esi
jmp 0x1296efd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
mov esi, eax
cmp dword [ebp - 4], ebx
jbe 0x1296f05
mov dword [ebp - 4], ebx
lea eax, [edi + 4]
push eax
call fcn.01295cc0
add esp, 4
test esi, esi
js 0x1296f67
mov eax, dword [ebp - 4]
add dword [ebp + 0xc], eax
sub ebx, eax
jne 0x1296e71
push edi
mov dword [edi + 0x4c], ebx
call fcn.01296230
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 0x102
jne 0x1296f46
mov esi, 0xffffffd8
jmp 0x1296efd
cmp eax, 0x80
jne 0x1296eec
mov esi, 0xfffffffc
jmp 0x1296efd
cmp eax, 0xe8
jne 0x1296ef2
mov esi, 0xfffffed3
jmp 0x1296efd
mov esi, 0xffffffba
push edi
mov dword [edi + 0x4c], 0
call fcn.01296230
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push edi
mov esi, 0xffffffea
call fcn.01296230
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
pop ebx
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffa
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1296fc0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x12fceb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x1297001
test edi, edi
jne 0x1297005
mov eax, 0xfffffffe
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x1296fec
test esi, esi
jne 0x129700d
test eax, eax
je 0x1296fec
cmp dword [ebp + 8], 0xffffffff
je 0x1297032
call fcn.01291360
cmp dword [ebp + 8], eax
je 0x1297032
pop edi
mov eax, 0xffffffdb
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x101
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x12970c1
cmp dword [ebp - 0x20c], 0
je 0x129709a
push str.D:_tinderbox_add_7.0_srcVBoxRuntime_r3winprocess_win.cpp
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x208]
push eax
call fcn.01298ce0
add esp, 0x18
test esi, esi
je 0x1296ff1
inc dword [esi]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
call fcn.01298ac0
add esp, 4
inc eax
mov dword [esi], eax
mov eax, 0xffffffd7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
call fcn.01271180
mov esp, ebp
pop ebp
ret
Function at 0x129ceb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.SetDllDirectoryW
push dword [0x12fe3c4]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x129cf0d
push 0x12cdbb0
mov ecx, ebx
call dword [section..rdata]
call ebx
test eax, eax
je 0x129cf08
mov dword [0x12fcf68], 2
jmp 0x129cf0d
mov edi, 0xffffff1d
and esi, 4
cmp dword [0x12fe2a0], 0x6c
jg 0x129cf1d
test esi, esi
je 0x129cf71
push str.SetDefaultDllDirectories
push dword [0x12fe3c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x129cf71
neg esi
mov ecx, ebx
sbb esi, esi
and esi, 0xfffffe00
add esi, 0xa00
push esi
call dword [section..rdata]
call ebx
test eax, eax
je 0x129cf68
and esi, 0x200
neg esi
sbb esi, esi
add esi, 4
mov dword [0x12fcf68], esi
jmp 0x129cf71
test edi, edi
js 0x129cf71
mov edi, 0xffffff1c
push str.GetCurrentThreadStackLimits
push dword [0x12fe3c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetUnhandledExceptionFilter
push dword [0x12fe3c4]
mov dword [0x12fe294], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UnhandledExceptionFilter
push dword [0x12fe3c4]
mov dword [0x12fe3f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [0x12fe3f8]
mov dword [0x12fe3fc], eax
test esi, esi
je 0x129cfe9
cmp dword [0x12fe298], 0
jne 0x129cfe9
push 0x129d540
mov ecx, esi
call dword [section..rdata]
call esi
mov ecx, eax
sub ecx, 0x129d540
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [0x12fe298], ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x129ef70
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x129ef87
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
pop ebp
ret
Function at 0x12a0f80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x1000]
cmp eax, 0x2000
jb 0x12a0fcf
cmp byte [ecx], 0
je 0x12a0fcf
push 0
push ecx
lea eax, [ebp - 4]
push eax
call fcn.012a90b0
add esp, 0xc
test eax, eax
js 0x12a0fcf
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov esi, eax
call fcn.012a90a0
add esp, 4
cmp esi, 0xffffffff
pop esi
je 0x12a0fcf
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x12a0fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.012712c0
mov eax, dword [0x12fceb0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4018], eax
jbe 0x12a10af
lea eax, [ebp - 0x4014]
push eax
push 0x1004
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x12a1092
push 0
lea eax, [ebp - 0x200c]
push eax
push 0x1004
lea eax, [ebp - 0x4014]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x12a1092
cmp word [ebp - 0x200a], 0x3a
jne 0x12a1062
movzx ecx, word [ebp - 0x200c]
lea eax, [ecx - 0x61]
cmp eax, 0x1a
jae 0x12a1062
lea eax, [ecx - 0x20]
mov word [ebp - 0x200c], ax
push str.D:_tinderbox_add_7.0_srcVBoxRuntime_r3winpath_win.cpp
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x200c]
push 0xffffffffffffffff
push eax
call fcn.01298ce0
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffd7
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
Function at 0x12a1190
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push 0
push dword [ebp + 8]
push eax
call fcn.012a90b0
add esp, 0xc
test eax, eax
js 0x12a1260
push esi
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.012a90b0
mov esi, eax
add esp, 0xc
test esi, esi
js 0x12a1252
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x12a121e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x12a11f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
mov esi, eax
jmp 0x12a121a
and edi, 0xf000
and esi, 0x10
cmp edi, 0x4000
jne 0x12a1213
neg esi
sbb esi, esi
and esi, 0x7e
add esi, 0xffffff82
jmp 0x12a121a
neg esi
sbb esi, esi
and esi, 0xffffff81
test esi, esi
js 0x12a1246
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x12a1235
xor esi, esi
jmp 0x12a1246
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
mov esi, eax
push dword [ebp - 8]
call fcn.012a90a0
add esp, 4
pop edi
push dword [ebp - 4]
call fcn.012a90a0
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x12a6310
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 3
je 0x12a6321
xor eax, eax
pop ebp
ret
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
neg eax
sbb eax, eax
and eax, 0xffffff35
add eax, 0xcb
pop ebp
ret

Function at 0x12a6340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.012a6350
Function at 0x12a6a80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.012a90b0
mov esi, eax
add esp, 0xc
test esi, esi
js 0x12a6ac7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x12a6aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
mov esi, eax
push dword [ebp - 4]
call fcn.012a90a0
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x12a6b90
Capabilities:
Clear file content
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x1c
push edi
test eax, eax
je 0x12a6f50
mov dword [eax], 0xffffffff
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x12a6bb5
mov dword [eax], 0
mov edi, dword [ebp + 8]
test edi, edi
je 0x12a6f50
lea eax, [ebp + 0xc]
push eax
call fcn.012af9f0
add esp, 4
test eax, eax
js 0x12a6ec9
mov ecx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0x700
push ebx
push esi
cmp eax, 0x300
ja 0x12a6c10
je 0x12a6c09
cmp eax, 0x100
je 0x12a6c02
cmp eax, 0x200
jne 0x12a6f44
mov edx, 1
jmp 0x12a6c31
mov edx, 4
jmp 0x12a6c31
mov edx, 2
jmp 0x12a6c31
cmp eax, 0x700
jne 0x12a6f44
mov eax, ecx
mov edx, 5
and eax, 0x1000
or eax, 0
jne 0x12a6c31
mov edx, 3
mov eax, ecx
mov dword [ebp - 8], edx
and eax, 3
jmp dword [eax*4 + 0x12a6f5c]
pop edi
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
mov eax, 0xfffffff3
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x12a7190
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x12fceb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
cmp ebx, 0xffffffff
je 0x12a71b4
mov eax, ebx
jmp 0x12a71b7
or eax, 0xffffffff
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x12a71e4
mov ecx, dword [ebp - 0x24]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
mov esi, eax
cmp ebx, 0xffffffff
je 0x12a71fe
mov ecx, ebx
jmp 0x12a7201
or ecx, 0xffffffff
push 0
lea eax, [ebp - 0x34]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x70000
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x12a72a0
mov eax, dword [ebp - 0x14]
cmp eax, 0xc
je 0x12a722e
cmp eax, 0xb
jne 0x12a72a0
mov eax, dword [ebp - 8]
mul dword [ebp - 0xc]
push edi
push dword [ebp - 0x18]
mov ecx, eax
mov eax, edx
mul dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov edi, eax
mov eax, ecx
mul dword [ebp - 0x10]
add edi, edx
push edi
push eax
call fcn.012b9c70
mov esi, dword [ebp - 0x20]
pop edi
mov dword [esi], eax
mov dword [esi + 4], edx
cmp ebx, 0xffffffff
jne 0x12a7263
or ebx, 0xffffffff
push 0
lea eax, [ebp - 0x20]
push eax
push 8
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0x7405c
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x12a728e
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01271180
mov esp, ebp
pop ebp
ret
Function at 0x12a72c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x12a72e6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x12a744f
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x12a72f9
mov eax, ebx
jmp 0x12a72fc
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push 0
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12a7399
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x12a732b
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, eax
jbe 0x12a744f
mov ecx, edi
mov dword [ebp - 8], 0
sub ecx, eax
lea edx, [eax + esi]
cmp ebx, 0xffffffff
je 0x12a734a
mov eax, ebx
jmp 0x12a734d
or eax, 0xffffffff
push 0
lea edi, [ebp - 8]
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x12a7383
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x12a7441
mov eax, dword [ebp - 4]
add eax, ecx
mov dword [ebp - 4], eax
cmp edi, eax
ja 0x12a7333
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x12a7389
mov esi, edi
shr esi, 1
cmp esi, 0x4000
jbe 0x12a73b7
mov esi, 0x4000
jmp 0x12a73c3
add esi, 0xff
and esi, 0xffffff00
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, edi
sub ecx, eax
cmp esi, ecx
ja 0x12a73d2
mov ecx, esi
mov edx, dword [ebp + 0xc]
add edx, eax
mov dword [ebp - 8], 0
cmp ebx, 0xffffffff
je 0x12a73e7
mov eax, ebx
jmp 0x12a73ea
or eax, 0xffffffff
push 0
lea edi, [ebp - 8]
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
test eax, eax
jne 0x12a741e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x12a7389
cmp esi, eax
jbe 0x12a7389
mov eax, dword [ebp - 4]
shr esi, 1
jmp 0x12a7434
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
test edx, edx
jne 0x12a744d
test ecx, ecx
je 0x12a7441
cmp edi, eax
ja 0x12a73c8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff92
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x12a78e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x12fe400]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x12a790d
push 0x17
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x12a790d
mov ecx, edi
int 0x29
mov esi, dword [0x12fe3dc]
test esi, esi
je 0x12a7926
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x12a7926
int3
mov esi, dword [0x12fe3f8]
test esi, esi
je 0x12a79a0
cmp dword [0x12fe3fc], 0
je 0x12a79a0
push 0
mov ecx, esi
call dword [section..rdata]
call esi
mov eax, dword [ebx + 0xb8]
push 0x38
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x50], 0xc0000409
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], edi
call sym.VBoxTray.exe_nocrt_memset
mov esi, dword [0x12fe3fc]
lea eax, [ebp - 0x50]
add esp, 0xc
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], ebx
mov ecx, esi
push eax
call dword [section..rdata]
call esi
lea ebx, [ebx]
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x12a79a0
Function at 0x12a90b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push str.D:_tinderbox_add_7.0_srcVBoxRuntime_r3winpathint_win.cpp
push eax
push 0
push edi
push 0xffffffffffffffff
push esi
mov dword [edi], 0
mov dword [ebp - 4], 0
call fcn.012982b0
mov ebx, eax
add esp, 0x18
test ebx, ebx
js 0x12a921e
mov ecx, dword [ebp - 4]
cmp ecx, 0xf3
ja 0x12a9197
mov dl, byte [esi]
movsx ebx, dl
lea eax, [ebx - 0x61]
cmp eax, 0x1a
jb 0x12a9111
lea eax, [ebx - 0x41]
cmp eax, 0x1a
jae 0x12a9140
cmp byte [esi + 1], 0x3a
jne 0x12a9140
mov al, byte [esi + 2]
cmp al, 0x5c
je 0x12a9205
cmp al, 0x2f
je 0x12a9205
push edi
call fcn.012a9020
add esp, 4
test al, al
je 0x12a9197
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dl, 0x5c
je 0x12a915e
cmp dl, 0x2f
je 0x12a915e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, dword [ebp - 4]
cmp eax, 0xf2
jmp 0x12a9195
mov al, byte [esi + 1]
cmp al, 0x5c
je 0x12a9169
cmp al, 0x2f
jne 0x12a918f
mov al, byte [esi + 2]
cmp al, 0x5c
je 0x12a918f
cmp al, 0x2f
je 0x12a918f
test al, al
je 0x12a918f
cmp al, 0x3f
jne 0x12a9187
mov al, byte [esi + 3]
cmp al, 0x5c
je 0x12a9187
cmp al, 0x2f
jne 0x12a9205
cmp ecx, 0xf0
jmp 0x12a9195
cmp ecx, 0xf1
jbe 0x12a9205
push dword [edi]
call fcn.0128cf90
xor eax, eax
mov dword [edi], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.012af680
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x12a921e
cmp dword [ebp - 8], 0
jne 0x12a920e
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5c
jne 0x12a920e
cmp word [eax + 2], 0x3f
jne 0x12a920e
cmp word [eax + 4], 0x3f
jne 0x12a920e
cmp word [eax + 6], 0x5c
jne 0x12a920e
mov ecx, 0x5c
mov word [eax + 2], cx
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
shr eax, 1
cmp word [ecx + eax*2], 0
jne 0x12a920e
mov dword [edi], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.012af660
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x12ae440
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0x12
push 0x68
push edi
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0xc0000365
mov dword [ebp - 4], 0xffffffd5
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x12ae483
cmp eax, 0x80000005
je 0x12ae483
push eax
call fcn.012a7bb0
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push 0
push 0x64
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
push dword [edi + 4]
push dword [edi]
call fcn.012b9c70
add eax, 0xb3960000
push 0
adc edx, 0x5e6684f4
mov dword [esi + 0x28], eax
push 0x64
mov dword [esi + 0x2c], edx
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.012b9c70
add eax, 0xb3960000
push 0
adc edx, 0x5e6684f4
mov dword [esi + 0x10], eax
push 0x64
mov dword [esi + 0x14], edx
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.012b9c70
add eax, 0xb3960000
push 0
adc edx, 0x5e6684f4
mov dword [esi + 0x18], eax
push 0x64
mov dword [esi + 0x1c], edx
push dword [edi + 0x1c]
push dword [edi + 0x18]
call fcn.012b9c70
mov ebx, dword [ebp + 0x1c]
add eax, 0xb3960000
mov dword [esi + 0x20], eax
adc edx, 0x5e6684f4
mov dword [esi + 0x24], edx
test ebx, ebx
je 0x12ae530
push ebx
call sym.VBoxTray.exe_nocrt_strlen
add esp, 4
jmp 0x12ae532
xor eax, eax
push 0
push dword [ebp + 0x20]
push eax
mov eax, dword [edi + 0x20]
and eax, 0x7fff
shl eax, 0x10
push ebx
push eax
call fcn.012afb80
mov ebx, dword [ebp + 0x18]
add esp, 0x14
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
cmp ebx, 2
jne 0x12ae5d2
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
mov eax, dword [edi + 0x38]
cmp eax, 1
ja 0x12ae576
mov eax, 1
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
cmp eax, 0x800
jbe 0x12ae5b0
mov eax, 0x800
push 1
push eax
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
test eax, eax
jns 0x12ae5cc
cmp eax, 0x80000005
jne 0x12ae5d2
mov eax, dword [edi + 8]
mov dword [esi + 0x44], eax
push ebx
push esi
push 0
call fcn.012adf60
add esp, 0xc
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret