joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ebe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.00401460
mov eax, dword [0x449158]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4018], eax
jbe 0x40ecaf
lea eax, [ebp - 0x4014]
push eax
push 0x1004
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40ec92
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 0x40ec92
cmp word [ebp - 0x200a], 0x3a
jne 0x40ec62
movzx ecx, word [ebp - 0x200c]
lea eax, [ecx - 0x61]
cmp eax, 0x1a
jae 0x40ec62
lea eax, [ecx - 0x20]
mov word [ebp - 0x200c], ax
push str.D:_tinderbox_testsuite_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.0040c670
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401320
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409060
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401320
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffd7
xor ecx, ebp
call fcn.00401320
mov esp, ebp
pop ebp
ret

Function at 0x40ed90
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.0040e080
add esp, 0xc
test eax, eax
js 0x40ee60
push esi
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0040e080
mov esi, eax
add esp, 0xc
test esi, esi
js 0x40ee52
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40ee1e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40edf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409060
add esp, 4
mov esi, eax
jmp 0x40ee1a
and edi, 0xf000
and esi, 0x10
cmp edi, 0x4000
jne 0x40ee13
neg esi
sbb esi, esi
and esi, 0x7e
add esi, 0xffffff82
jmp 0x40ee1a
neg esi
sbb esi, esi
and esi, 0xffffff81
test esi, esi
js 0x40ee46
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40ee35
xor esi, esi
jmp 0x40ee46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409060
add esp, 4
mov esi, eax
push dword [ebp - 8]
call fcn.0040e070
add esp, 4
pop edi
push dword [ebp - 4]
call fcn.0040e070
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x44b220]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x41745d
push 0x17
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x41745d
mov ecx, edi
int 0x29
mov esi, dword [0x44b1fc]
test esi, esi
je 0x417476
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x417476
int3
mov esi, dword [0x44b218]
test esi, esi
je 0x4174f0
cmp dword [0x44b21c], 0
je 0x4174f0
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.ntTimeSources.exe_nocrt_memset
mov esi, dword [0x44b21c]
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 0x4174f0

Function at 0x417740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x449158]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push 0
push ecx
push dword [ebp + 0xc]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2010
push 0
push 0
push 0xa
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0041f610
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 2
push 0x42266c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401320
mov esp, ebp
pop ebp
ret

Function at 0x417820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x449158]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2080
push 8
push 8
push 0x10
push eax
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0041f610
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401320
mov esp, ebp
pop ebp
ret
Function at 0x417890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x449158]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1000]
cmp eax, 0x2000
jb 0x4178d4
xor eax, eax
cmp byte [esi], al
je 0x4178c7
lea ebx, [ebx]
inc eax
cmp byte [esi + eax], 0
jne 0x4178c0
push 0
lea ecx, [ebp - 0x88]
push ecx
push eax
push esi
jmp 0x417943
push 0
lea eax, [ebp - 0x88]
push eax
push 0xb
push str._pszString
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2080
push 8
push 8
push 0x10
push esi
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0041f610
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 1
push 0x4223e0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401320
mov esp, ebp
pop ebp
ret

Function at 0x417970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x449158]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x2000
push 0
push 0
push 0xa
push dword [ebp + 8]
lea eax, [ebp - 0xac]
push 0xa8
push eax
call fcn.0041f610
push 0x2008
push 0
push 0
mov word [ebp + eax - 0xac], 0x2820
lea esi, [eax + 2]
push 0x10
push dword [ebp + 8]
mov eax, 0xa8
sub eax, esi
push eax
lea eax, [ebp - 0xac]
add eax, esi
push eax
call fcn.0041f610
add esp, 0x38
lea ecx, [ebp - 0xb0]
add eax, esi
push 0
mov byte [ebp + eax - 0xac], 0x29
inc eax
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401320
mov esp, ebp
pop ebp
ret

Function at 0x417a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x449158]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2008
push 0
push 0
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0041f610
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401320
mov esp, ebp
pop ebp
ret
Function at 0x418050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 3
jne 0x418163
shr eax, 8
cmp al, 0x32
jae 0x418163
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x418083
mov eax, dword [ecx + 0x3c]
add eax, ecx
jmp 0x418085
mov eax, ecx
cmp dword [eax], 0x4550
jne 0x418167
push esi
movzx esi, word [eax + 0x14]
add esi, eax
movzx eax, word [eax + 6]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x418162
push ebx
add esi, 0x20
push edi
lea esp, [esp]
mov ebx, dword [esi]
mov eax, dword [esi + 8]
cmp ebx, eax
jbe 0x418153
mov edi, dword [esi + 4]
sub ebx, eax
add edi, eax
add edi, ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jns 0x4180db
push ebx
push 0
push edi
call sym.ntTimeSources.exe_nocrt_memset
add esp, 0xc
jmp 0x418150
mov eax, edi
and ecx, 0x20000000
and eax, 0xfffff000
mov dword [ebp - 0xc], eax
mov eax, edi
and eax, 0xfff
add eax, 0xfff
add eax, ebx
and eax, 0xfffff000
neg ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
sbb ecx, ecx
push eax
and ecx, 0x3c
lea eax, [ebp - 8]
add ecx, 4
push ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ecx
push eax
push 0xffffffffffffffff
mov dword [ebp - 4], ecx
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x41814f
push ebx
push 0
push edi
call sym.ntTimeSources.exe_nocrt_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
jmp 0x418150
int3
mov ecx, dword [ebp + 8]
add esi, 0x28
sub dword [ebp - 0x10], 1
jne 0x4180b0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
int3
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4086ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x4086d9
pop dword [ebp - 0x4c]
mov eax, 0xbc1cb3fb
sub eax, 0xbbdc2d22
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xd90fa861
add dword [ebp - 0x5c], 0x75429cea
mov dword [ebp - 0x58], 0xb4babc7e
add dword [ebp - 0x58], 0x7d788fc7
mov dword [ebp - 0x54], 0x20f8084e
add dword [ebp - 0x54], 0x2b543be0
mov dword [ebp - 0x50], 0xbbdca282
add dword [ebp - 0x50], 0x44235d7e
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xa3d2e8a9
sub eax, 0xa3921855
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xe5712ac3
add dword [ebp - 0x5c], 0x8f013e93
mov dword [ebp - 0x58], 0xc1df90de
sub dword [ebp - 0x58], 0x80732f69
mov dword [ebp - 0x54], 0x6d85c49c
sub dword [ebp - 0x54], 0xa165830
mov dword [ebp - 0x50], 0x402abed5
add dword [ebp - 0x50], 0xbfd5412b
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xdbe10802
add eax, 0x245fc84a
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x38851
push 0
call eax
mov ecx, 0x1536a35f
sub ecx, 0x15365f5f
xor esi, esi
add esi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x4c]
mov ebx, 0x81861126
add ebx, 0xcafaa193
xor dword [ebp - 0x48], ebx
mov edi, dword [edx]
xor dword [ebp - 4], 0xfab10576
add edi, ebx
xor dword [ebp - 0x44], ecx
mov dword [esi], edi
mov dword [ebp - 0x24], 0xfb9685f4
add esi, 0x85fdd9f6
sub esi, 0x85fdd9f2
add edx, 0xa8f6da8c
sub edx, 0xa8f6da88
loop 0x4087f7
add eax, 0x78b77b67
add eax, 0x8749876c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6617ab6f
add ecx, 0x9a285491
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40cc73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40cc82
pop dword [ebp - 0x10]
mov eax, 0x539a6b1f
sub eax, 0x53599e9d
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x51bf4
push 0
mov eax, 0xc1d6bd88
add eax, 0x3e6df528
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x138cb14c
add ecx, 0xec739d4a
mov esi, eax
mov edx, 0xa9120bcc
add edx, 0x57355234
add edx, dword [ebp - 0x10]
mov edi, 0xb376a708
sub edi, 0x9c3acf9
xor dword [ebp - 8], edi
mov ebx, dword [edx]
sub ebx, edi
sub dword [ebp - 4], 0x6adf0d17
mov dword [esi], ebx
add dword [ebp - 4], eax
add esi, 4
add edx, 0x2a2d89ed
sub edx, 0x2a2d89e9
loop 0x40cce1
add eax, 0x12d2b
mov ebx, eax
add eax, 0x483eae06
sub eax, 0x483eae01
mov ecx, 0xf4a5b1ad
add ecx, 0xb9a4e53
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x1000e820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10114090
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10159140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x46
push str.C:Program_FilesMicrosoft_Visual_Studio2022EnterpriseVCToolsMSVC14.38.33130includexlocale
push 2
lea edi, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
lea ebx, [esi + 8]
mov dword [edi], 0
push 8
mov dword [ebx], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.100960b0
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000e932
push 1
mov dword [ebp - 4], 0
call fcn.100412e0
mov ecx, dword [ebp - 0x10]
lea edx, [esi + 0x24]
add esp, 4
mov dword [ecx + 4], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x34], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0xc], edi
lea edi, [esi + 0x28]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edi
mov dword [ebx], 0
mov dword [ecx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [eax], 0
mov eax, esi
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10040a00
int3
Function at 0x10014820
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10159140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x44], 0xffffffff
push esi
push 4
mov dword [ebp - 0x48], esi
or ebx, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1001490a
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10014903
nop
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x34], eax
jne 0x100148ee
push dword [ebp - 0x38]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x100148ee
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x24]
movq qword [ebp - 0x10], xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
je 0x100148e7
mov edx, dword [ebp - 0x20]
xor ecx, ecx
or ecx, dword [ebp - 0x24]
mov eax, ecx
or eax, edx
je 0x100148e7
cmp edx, dword [ebp - 0x44]
ja 0x100148e7
jb 0x100148dc
cmp ecx, ebx
jae 0x100148e7
mov eax, dword [ebp - 0x38]
mov ebx, ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x40]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10014870
mov esi, dword [ebp - 0x48]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret

Function at 0x10014fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10159140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1001507c
cmp byte [esi + 0x3d], 0
je 0x1001507c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1001506a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10015032
sub eax, 1
je 0x10015036
sub eax, 2
jne 0x1001506a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10015053
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a2c70
add esp, 0x10
cmp edi, eax
jne 0x1001506a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret
Function at 0x10015930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10114a70
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10159140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x46
push str.C:Program_FilesMicrosoft_Visual_Studio2022EnterpriseVCToolsMSVC14.38.33130includexlocale
push 2
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100960b0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100159e4
push 1
mov dword [ebp - 4], 0
call fcn.100412e0
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10040a00
int3
Function at 0x1001d430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10159140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001d460
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001d49c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1001d49c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1001d597
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001d4c4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d4f7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100a1150
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x1001d557
sub eax, 1
je 0x1001d557
sub eax, 2
jne 0x1001d597
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10004f00
add esp, 8
or ecx, 0xffffffff
test al, al
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d574
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a2c70
add esp, 0x10
cmp edi, eax
jne 0x1001d597
lea ecx, [ebp - 0x28]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007e0c0
mov esp, ebp
pop ebp
ret 4