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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0x42f860
lea eax, [esp + 0x14]
push esi
push eax
mov ebp, ecx
xor bl, bl
mov dword [esp + 0x1c], 0
call fcn.00419053
add esp, 0xc
test eax, eax
je 0x40edca
push esi
push str.The_file__s_was_not_opened_n
call fcn.00404950
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ee61
push 2
push 0
push eax
call fcn.0041a8cb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041a7d6
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
jne 0x40ee0b
mov edx, dword [esp + 0x10]
push edx
call fcn.00418dc4
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.0041a8cb
lea ecx, [edi + 1]
push 0
push ecx
call fcn.004024a0
mov edx, dword [esp + 0x24]
push edx
push 1
mov esi, eax
push edi
push esi
call fcn.00419c8a
add esp, 0x24
cmp eax, 1
jne 0x40ee4a
push esi
mov ecx, ebp
mov byte [esi + edi], 0
call fcn.0040ec10
mov bl, al
mov eax, dword [esp + 0x10]
push eax
call fcn.00418dc4
push esi
call fcn.0040eec8
add esp, 8
test bl, bl
jne 0x40ee6a
push 0
mov ecx, ebp
call fcn.0040ec10
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 4

Function at 0x40f6c8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x40f705
cmp edi, dword [esi + 0xc]
jge 0x40f705
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f705
cmp edi, dword [eax + 8]
jge 0x40f705
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x40f70e
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x40f8cc
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40f8fb
jmp fcn.0040ef92
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x417b3b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4424ac]
jne 0x417b45
repz ret
jmp fcn.0041e008
Function at 0x425562
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041ed36
xor ebx, ebx
cmp dword [0x484840], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x425637
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4255a2
xor eax, eax
jmp 0x4256fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x431828
push edi
call esi
cmp eax, ebx
je 0x42559b
push eax
call fcn.0041ecd3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x484840], eax
call esi
push eax
call fcn.0041ecd3
mov dword [esp], 0x431804
push edi
mov dword [0x484844], eax
call esi
push eax
call fcn.0041ecd3
mov dword [0x484848], eax
lea eax, [ebp - 8]
push eax
call fcn.0041cc85
test eax, eax
pop ecx
pop ecx
je 0x425605
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041886e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x425637
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041ecd3
cmp eax, ebx
pop ecx
mov dword [0x484850], eax
je 0x425637
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ecd3
pop ecx
mov dword [0x48484c], eax
mov eax, dword [0x48484c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4256b0
cmp dword [0x484850], esi
je 0x4256b0
push eax
call fcn.0041ed3f
pop ecx
call eax
cmp eax, ebx
je 0x42567d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x484850]
call fcn.0041ed3f
pop ecx
call eax
test eax, eax
je 0x42567d
test byte [ebp - 0x18], 1
jne 0x4256b0
lea eax, [ebp - 0xc]
push eax
call fcn.0041ccbc
test eax, eax
pop ecx
je 0x425698
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041886e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4256a7
or dword [ebp + 0x10], 0x200000
jmp 0x4256e1
or dword [ebp + 0x10], 0x40000
jmp 0x4256e1
mov eax, dword [0x484844]
cmp eax, esi
je 0x4256e1
push eax
call fcn.0041ed3f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4256e1
mov eax, dword [0x484848]
cmp eax, esi
je 0x4256e1
push dword [ebp - 4]
push eax
call fcn.0041ed3f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x484840]
call fcn.0041ed3f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42acfe
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4424ac]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042ac93
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00418350
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42ad4d
cmp dword [ebp - 0x1c], 5
jb 0x42ad65
jmp 0x42ad61
cmp dword [ebp - 0x10], 1
jne 0x42ad65
cmp dword [ebp - 0x1c], 4
ja 0x42ad61
jne 0x42ad65
cmp dword [ebp - 0x18], 0
jbe 0x42ad65
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x432204
call fcn.0042ab67
test eax, eax
jge 0x42ad86
mov byte [0x443be9], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00417b3b
add ebp, 0x78
leave
ret
Function at 0x401037
Capabilities:
Execute syscall

Disassembly:
push ebp
push edi
push esi
push ebx
push gs
push fs
push es
push ds
mov eax, 0x12345678
mov ebx, eax
mov ecx, eax
mov edx, eax
mov edi, eax
mov esi, eax
mov ebp, eax
syscall
pop ds
pop es
pop fs
pop gs
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401063
Capabilities:
Execute syscall

Disassembly:
push ebp
push edi
push esi
push ebx
push gs
push fs
push es
push ds
mov eax, 0x12345678
mov ebx, eax
mov ecx, eax
mov edx, eax
mov edi, eax
mov esi, eax
mov ebp, eax
sysenter
pop ds
pop es
pop fs
pop gs
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407340
Capabilities:
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x407368
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x407360
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
xor eax, eax
pop ebp
ret
mov eax, 0xfffffff8
pop edi
pop ebp
ret
mov eax, dword [0x44d038]
cmp eax, 0x10
je 0x407394
cmp eax, 6
je 0x407394
cmp eax, 7
je 0x407394
push 0
push 0
push 0x407310
push 0x44d030
call fcn.004096d0
add esp, 0x10
jmp 0x407399
mov eax, dword [0x44d03c]
test eax, eax
js 0x40740e
push esi
push str.D:_tinderbox_testsuite_srcVBoxRuntime_r3win_tls_win.cpp
push 0x10
call fcn.00408dc0
mov esi, eax
add esp, 8
test esi, esi
je 0x407408
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x407408
mov ecx, dword [ebp + 8]
push 0x44eee0
mov dword [ecx], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
call fcn.0040c740
mov eax, dword [0x44ef14]
mov dword [eax], esi
mov eax, dword [0x44ef14]
mov dword [esi + 4], eax
mov dword [esi], 0x44ef10
mov dword [0x44ef14], esi
lock inc dword [0x44eed8]
push 0x44eee0
call fcn.0040c840
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffff8
pop esi
pop edi
pop ebp
ret

Function at 0x407430
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 0x407447
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
pop ebp
ret

Function at 0x408050
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.00410780
mov esi, eax
add esp, 0xc
test esi, esi
js 0x408097
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40808a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
mov esi, eax
push dword [ebp - 4]
call fcn.00410770
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408110
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 0x4084d0
mov dword [eax], 0xffffffff
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x408135
mov dword [eax], 0
mov edi, dword [ebp + 8]
test edi, edi
je 0x4084d0
lea eax, [ebp + 0xc]
push eax
call fcn.00410560
add esp, 4
test eax, eax
js 0x408449
mov ecx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0x700
push ebx
push esi
cmp eax, 0x300
ja 0x408190
je 0x408189
cmp eax, 0x100
je 0x408182
cmp eax, 0x200
jne 0x4084c4
mov edx, 1
jmp 0x4081b1
mov edx, 4
jmp 0x4081b1
mov edx, 2
jmp 0x4081b1
cmp eax, 0x700
jne 0x4084c4
mov eax, ecx
mov edx, 5
and eax, 0x1000
or eax, 0
jne 0x4081b1
mov edx, 3
mov eax, ecx
mov dword [ebp - 8], edx
and eax, 3
jmp dword [eax*4 + 0x4084dc]
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 0x4085a0
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x44d024]
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 0x4085c4
mov eax, ebx
jmp 0x4085c7
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 0x4085f4
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.00401220
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
mov esi, eax
cmp ebx, 0xffffffff
je 0x40860e
mov ecx, ebx
jmp 0x408611
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 0x4086b0
mov eax, dword [ebp - 0x14]
cmp eax, 0xc
je 0x40863e
cmp eax, 0xb
jne 0x4086b0
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.00401600
mov esi, dword [ebp - 0x20]
pop edi
mov dword [esi], eax
mov dword [esi + 4], edx
cmp ebx, 0xffffffff
jne 0x408673
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 0x40869e
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.00401220
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401220
mov esp, ebp
pop ebp
ret
Function at 0x4087d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x408822
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x4087f3
mov eax, ebx
jmp 0x4087f6
or eax, 0xffffffff
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push 0
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4088b9
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x40882b
cmp eax, esi
jbe 0x408820
mov eax, esi
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, esi
jae 0x408822
nop
mov ecx, esi
mov dword [ebp - 8], 0
sub ecx, eax
lea edx, [eax + edi]
cmp ebx, 0xffffffff
je 0x408847
mov eax, ebx
jmp 0x40884a
or eax, 0xffffffff
push 0
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x408880
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x408990
mov eax, dword [ebp - 4]
add eax, ecx
mov dword [ebp - 4], eax
cmp eax, esi
jb 0x408830
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.0040c9b0
add esp, 4
cmp eax, 0xffffff68
jne 0x408824
push ebx
call fcn.00410510
xor ecx, ecx
sub esi, dword [ebp - 4]
sbb ecx, ecx
add eax, esi
adc edx, ecx
push edx
push eax
push ebx
call fcn.00407f60
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x4089ad
mov ebx, esi
xor eax, eax
shr ebx, 1
mov dword [ebp - 4], eax
cmp ebx, 0x8000
jbe 0x4088e0
mov ebx, 0x8000
jmp 0x4088f0
add ebx, 0xff
and ebx, 0xffffff00
lea esp, [esp]
mov edi, esi
sub edi, eax
cmp ebx, edi
ja 0x4088fa
mov edi, ebx
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x408910
or eax, eax
push 0
lea edx, [ebp - 8]
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408939
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x40895c
cmp ebx, eax
jbe 0x40895c
mov eax, dword [ebp - 4]
shr ebx, 1
jmp 0x40894f
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 0x40899c
test ecx, ecx
je 0x408990
cmp eax, esi
jb 0x4088f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.0040c9b0
add esp, 4
cmp eax, 0xffffff68
jne 0x408824
mov esi, dword [ebp + 8]
push esi
call fcn.00410510
add eax, edi
adc edx, 0
push edx
push eax
push esi
call fcn.00407f60
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff90
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, esi
jbe 0x4089a2
mov eax, esi
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.0040c9b0
add esp, 4
cmp eax, 0xffffff68
jne 0x408824
push ebx
call fcn.00410510
add eax, esi
adc edx, 0
push edx
push eax
push ebx
call fcn.00407f60
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4098d0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push 8
push 0
push eax
call sym.exceptionsR3.exe_nocrt_memset
push 0x28
push 0
push dword [ebp + 0xc]
call sym.exceptionsR3.exe_nocrt_memset
add esp, 0x18
lea eax, [ebp - 8]
push 0x18
push 0x28
push dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
setns al
mov esp, ebp
pop ebp
ret

Function at 0x409920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409a1c
push edi
push 1
mov dword [ebp - 4], eax
lea edi, [esi + 0x14]
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x409a03
mov eax, dword [esi + 0x2c]
mov edx, dword [ebp - 4]
cmp edx, eax
jae 0x4099a5
mov ecx, dword [esi + 0x28]
sub eax, edx
push eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + edx]
push eax
push ecx
call sym.exceptionsR3.exe_nocrt_memmove
add esp, 0xc
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4099b1
mov eax, dword [esi + 0x2c]
mov edx, dword [ebp - 4]
cmp edx, eax
jb 0x409964
mov byte [esi + 0xa], 0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4099c9
pop edi
mov eax, 0x34
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0xa], 0
cmp eax, 0xe8
jne 0x4099e3
pop edi
mov byte [esi + 0xc], 1
mov eax, 0xfffffed3
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
cmp eax, 0xfffffed3
jne 0x4099ab
pop edi
mov byte [esi + 0xc], 1
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0xa], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x102
jne 0x409a2d
mov eax, 0x34
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0xa], 0
cmp eax, 0x80
jne 0x409a42
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x1000]
cmp eax, 0x2000
jb 0x40a049
cmp dword [edi], 0x19570528
jne 0x40a049
cmp byte [edi + 8], 0
jne 0x40a03f
push ebx
push esi
lea ebx, [edi + 0x38]
push ebx
call fcn.004074c0
mov esi, eax
add esp, 4
test esi, esi
js 0x40a036
cmp dword [edi + 0x10], 0
jne 0x40a028
cmp byte [edi + 0xa], 0
mov dword [edi + 0x10], 1
je 0x409ed8
push edi
call fcn.00409920
mov esi, eax
add esp, 4
cmp esi, 0x34
jne 0x409ed0
mov esi, dword [edi + 0x24]
push ebx
call fcn.00407660
add esp, 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.004074c0
add esp, 4
jmp 0x409eb0
test esi, esi
js 0x40a007
xor edx, edx
mov byte [edi + 0xd], 0
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], edx
jbe 0x409fda
push dword [edi + 0x24]
lea esi, [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
mov byte [edi + 0xa], 1
call fcn.00407660
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409f33
push ebx
xor esi, esi
call fcn.004074c0
add esp, 4
mov byte [edi + 0xa], 0
jmp 0x409f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x409f70
push 0xffffffffffffffff
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
lea eax, [ebp - 4]
push eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x409f7d
push ebx
xor esi, esi
call fcn.004074c0
add esp, 4
mov byte [edi + 0xa], 0
jmp 0x409f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x409fc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
mov esi, eax
push ebx
call fcn.004074c0
add esp, 4
mov byte [edi + 0xa], 0
test esi, esi
js 0x409fd7
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jbe 0x409fae
mov eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
add dword [ebp + 0xc], eax
add edx, eax
sub ecx, eax
mov dword [ebp - 8], edx
mov dword [ebp + 0x10], ecx
je 0x409fda
jmp 0x409eea
push ebx
mov esi, 0xfffffed3
call fcn.004074c0
add esp, 4
mov byte [edi + 0xa], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40a007
mov dword [eax], edx
test esi, esi
jns 0x40a007
test edx, edx
je 0x40a007
cmp esi, 0xfffffffa
je 0x40a007
dec dword [edi + 0x10]
xor esi, esi
push ebx
call fcn.00407660
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp esi, 0xfffffed3
jne 0x40a013
mov byte [edi + 0xc], 1
dec dword [edi + 0x10]
push ebx
call fcn.00407660
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov esi, 0xffffffea
call fcn.00407660
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffda
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40be80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x4502d8]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x40bead
push 0x17
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x40bead
mov ecx, edi
int 0x29
mov esi, dword [0x4502b4]
test esi, esi
je 0x40bec6
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x40bec6
int3
mov esi, dword [0x4502d0]
test esi, esi
je 0x40bf40
cmp dword [0x4502d4], 0
je 0x40bf40
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.exceptionsR3.exe_nocrt_memset
mov esi, dword [0x4502d4]
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 0x40bf40

Function at 0x40c180
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
sub esp, 0xc
push esi
push edi
mov edi, dword [eax + 0x30]
push dword [edi + 8]
call fcn.0041a480
add esp, 4
call fcn.0040c040
call fcn.0041a5a0
call fcn.0041a6c0
mov esi, eax
test esi, esi
jne 0x40c264
mov ecx, dword [edi + 0x10]
lea esi, [eax + 3]
lea eax, [ecx + 0x40]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40c24d
push str.D:_tinderbox_testsuite_srcVBoxRuntime_r3win_nocrt_startup_exe_win.cpp
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
movzx eax, word [ecx]
shr eax, 1
push eax
push dword [ecx + 4]
call fcn.0040ed70
add esp, 0x18
test eax, eax
js 0x40c23b
push 0
push 4
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00419fb0
add esp, 0x14
test eax, eax
js 0x40c229
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00401b80
add esp, 0xc
mov esi, eax
jmp 0x40c25c
push eax
push 0x1c
push str.Error_parsing_command_line:
call fcn.00419b60
add esp, 0xc
jmp 0x40c25c
push eax
push 0x29
push str.Failed_to_convert_command_line_to_UTF_8:
call fcn.00419b60
add esp, 0xc
jmp 0x40c25c
push 0x11
push str.No_command_line_r_n
call fcn.00419b20
add esp, 8
push 1
push esi
call fcn.0040c150
push 0x1f
push str.A_C_static_initializor_failed__
call fcn.00419c10
push esi
call fcn.00419d90
push 2
push 0x425880
call fcn.00419c10
add esp, 0x14
push 0
push esi
call fcn.0040c150
int3

Function at 0x40d610
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [0x44d164]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40d62d
mov eax, 0xffffffe8
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [ebp + 8]
call fcn.0040d4e0
add esp, 8
xor eax, eax
pop ebp
ret