joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dd70
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006731d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100d7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, 0x100df1ae
call fcn.10063385
mov dword [ebx], vtable.RC::DmAvCore::IVBusModule.0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.RC::RCSafeModuleBase.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 1
lea edi, [ebx + 0xc]
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov dword [ebx], vtable.RC::RCLeakModule.0
mov dword [edi], vtable.RC::RCSafeTaskQueue.0
mov dword [ebp - 0x1c], esi
push 8
mov dword [ebp - 0x18], edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.1006131f
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 3
lea esi, [edi + 0x18]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
push 0x18
call fcn.1006131f
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 8
mov dword [esi], eax
push eax
call ebx
mov byte [ebp - 4], 5
push ecx
push 0
push 0
lea ecx, [edi + 0x1c]
call fcn.10048090
mov byte [ebp - 4], 6
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 7
add edi, 0x40
push ecx
push 1
mov dword [ebp - 0x1c], edi
push 0
lea ecx, [edi + 4]
mov dword [edi], vtable.RC::RCSafeThreadMgr.0
call fcn.10048090
mov byte [ebp - 4], 8
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 9
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 0xa
lea esi, [edi + 0x40]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xb
push 0x18
call fcn.1006131f
add esp, 4
mov dword [esi], eax
push eax
call ebx
mov byte [ebp - 4], 0xc
mov dword [edi + 0x44], 1
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x94], 0
mov dword [eax + 0x98], 0
mov dword [eax + 0x9c], 0
mov dword [ebp - 4], 0xffffffff
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 0x100159d0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x100df1ae
call fcn.10063385
lea edx, [esi + 8]
pop esi
jmp fcn.10025ea0
Function at 0x1001e780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006faec
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100d7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x100df1ae
call fcn.10063385
mov eax, dword [esi + 4]
test eax, eax
je 0x1001e8e1
cmp byte [eax + 0x54], 0
je 0x1001e8e1
add eax, 0x1c
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.1001cc80
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x1001e7f4
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001e8ae
push ecx
mov edx, edi
lea ecx, [ebp - 0x30]
call fcn.10047640
add esp, 4
mov byte [ebp - 4], 2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x34]
push 0
push ecx
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x1001e894
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e88a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001e88a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006134f
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1001e8d3
cmp byte [ebp - 0x14], 0
je 0x1001e8d3
mov eax, dword [esi]
test eax, eax
je 0x1001e8cf
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006130e
mov esp, ebp
pop ebp
ret 4
Function at 0x10025ea0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071572
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100d7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], edx
mov ecx, 0x100df1ae
call fcn.10063385
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x48]
push 1
push str.29A83C8C_8395_47F1_9F05_9F112227DBE8
xor esi, esi
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x38], xmm0
call fcn.10048090
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
mov eax, dword [ebp - 0x50]
cmp byte [eax], 0
jne 0x10025f51
push str.90A3941A_7445_4D9A_8FA5_A55EB9290053
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x10025f23
push eax
call edi
jmp 0x10025f28
call fcn.10025d40
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10025f43
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10026064
add esi, 0x7d0
cmp esi, 0xea60
jb 0x10025f00
cmp dword [0x100daae8], 0
je 0x1002600a
push 0
mov ecx, 0x100daae4
call fcn.1001d310
mov eax, dword [0x100daae8]
cmp byte [eax + 0x54], 0
je 0x1002600a
cmp dword [eax + 0x58], 1
jb 0x1002600a
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x49], al
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
push 0x1b
push str.LeakFix.exe_Start_up_Failed
call fcn.1000ee50
push 0x45
push str.RC::RCLeakProcessStarter::MakeSureLeakProcessRunning
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcleakfixleakfixlib_src_rcleakprocessstarter.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x100daae4
push eax
push 1
call fcn.1001e410
cmp byte [ebp - 0x49], 0
je 0x10025ff6
lea eax, [ebp - 0x28]
mov ecx, 0x100daae4
push eax
call fcn.1001e780
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.1000ed80
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
mov byte [ebp - 0x49], 0
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10026026
push eax
call edi
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.1000ed80
mov byte [ebp - 4], 0xa
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006130e
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x49], 1
jmp 0x1002600e
Function at 0x1002bea0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072d4a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100d7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x100df1ae
call fcn.10063385
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 4
lea edi, [esi + 0x3c]
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.1002e7f0
mov dword [edi], eax
mov byte [ebp - 4], 7
lea ebx, [esi + 0x44]
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.1002e760
mov dword [ebx], eax
mov byte [ebp - 4], 0xa
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
call fcn.10019970
mov eax, dword [esi]
mov dword [esi + 4], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
call fcn.100198c0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], eax
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
call fcn.10019810
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
call fcn.10019760
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], eax
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
call fcn.100196b0
mov eax, dword [esi + 0x30]
add esp, 4
mov dword [esi + 0x34], eax
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.1002d390
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov ecx, ebx
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov esi, dword [ebx]
push dword [esi + 4]
call fcn.1002cc30
mov eax, dword [ebx]
mov dword [eax + 4], esi
mov eax, dword [ebx]
mov dword [eax], esi
mov eax, dword [ebx]
mov dword [eax + 8], esi
mov dword [ebx + 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
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 0x100408e0
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x100df1ae
call fcn.10063385
mov ecx, esi
pop esi
jmp fcn.1003f840

Function at 0x10040cf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ec28
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100d7008]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x100df1ae
call fcn.10063385
mov eax, dword [esi]
test eax, eax
je 0x10040d3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1005a220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10040d66
add eax, 8
jmp 0x10040d68
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x10040d78
cmp dword [edi + 0x14], 8
jb 0x10040d7a
mov edi, dword [edi]
jmp 0x10040d7a
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x10040d9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10040d9b
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1005a3e0
mov al, bl
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.1006130e
mov esp, ebp
pop ebp
ret 4
Function at 0x10040de0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ec58
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100d7008]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x100df1ae
call fcn.10063385
mov eax, dword [esi]
test eax, eax
je 0x10040e2d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1005a300
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10040e57
lea ebx, [eax + 8]
jmp 0x10040e59
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x10040e6b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10040e6d
mov eax, dword [edi]
jmp 0x10040e6d
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x10040eb6
call ecx
cmp eax, 5
jne 0x10040eb0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x10], 0
je 0x10040ea2
cmp dword [edi + 0x14], 8
jb 0x10040ea4
mov edi, dword [edi]
jmp 0x10040ea4
xor edi, edi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x10040ed4
call ecx
cmp eax, 0xb7
jne 0x10040ec9
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.100579b0
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1005a3e0
mov al, bl
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.1006130e
mov esp, ebp
pop ebp
ret 4
Function at 0x10042560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov ecx, 0x100de70d
push edi
call fcn.10063385
cmp dword [ebx + 0x38], 0
je 0x10042598
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x100425ba
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100425bc
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10042641
jg 0x100425d1
test esi, esi
je 0x10042641
test ecx, ecx
jl 0x1004261a
jg 0x100425db
test eax, eax
je 0x1004261a
cmp edi, ecx
jg 0x100425ef
jl 0x100425e5
cmp esi, eax
jae 0x100425ef
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1004261d
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10042641
jg 0x10042627
test esi, esi
je 0x10042641
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10042641
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10042660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x100de70d
call fcn.10063385
cmp dword [edi + 0x38], 0
je 0x10042698
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x100426ba
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x100426bc
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1004275c
jg 0x100426d9
test esi, esi
je 0x1004275c
test ecx, ecx
jl 0x10042726
jg 0x100426e3
test eax, eax
je 0x10042726
cmp ebx, ecx
jg 0x100426f7
jl 0x100426ed
cmp esi, eax
jae 0x100426f7
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1004272d
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1004275c
jg 0x10042737
test esi, esi
je 0x1004275c
cmp dword [edi + 0x4c], 0
je 0x1004275c
mov ecx, edi
call fcn.100439f0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10042b10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x100d7008]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x100de70d
call fcn.10063385
mov ebx, dword [esp + 0x3c]
cmp ebx, 0xffffffff
jne 0x10042b4a
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006130e
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10042b7d
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10042b7d
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006130e
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10042c83
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10042ba6
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 0x10042bdb
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006130e
add esp, 0x30
ret 4
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x10042c83
cmp eax, 1
jle 0x10042c3f
cmp eax, 3
jne 0x10042c83
mov edx, dword [esi + 0x4c]
mov cl, byte [esp + 0x17]
call fcn.10041740
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006130e
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x10042c5f
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10042c83
lea eax, [esp + 0x17]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
je 0x10042c83
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006130e
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006130e
add esp, 0x30
ret 4
Function at 0x10043a60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x100d7008]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
mov ecx, 0x100de70d
push edi
call fcn.10063385
cmp dword [esi + 0x38], 0
je 0x10043b18
cmp byte [esi + 0x3d], 0
je 0x10043b18
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10043ac9
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10043adc
sub eax, 1
je 0x10043ae0
sub eax, 2
je 0x10043b18
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1006130e
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x10043b00
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10043ac9
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1006130e
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.1006130e
add esp, 0x28
ret
Function at 0x10048d30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080242
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100d7008]
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 esi, ecx
mov ecx, 0x100df1ae
call fcn.10063385
cmp dword [esi + 8], 0
jne 0x10048d74
xor al, al
jmp 0x10048e56
push 4
lea ecx, [ebp - 0x14]
call fcn.1001dbb0
mov eax, dword [esi + 8]
add eax, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
je 0x10048d9d
mov eax, dword [eax]
test eax, eax
je 0x10048d9d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x10048e29
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x10048530
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x10048e10
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10048dfe
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10048e10
mov bl, 1
jmp 0x10048e2b
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x10048e21
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10048700
xor bl, bl
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10048e4d
mov eax, dword [eax]
test eax, eax
je 0x10048e46
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov al, bl
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.1006130e
mov esp, ebp
pop ebp
ret