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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077759
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100bd024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, 0x100c3579
call fcn.10071035
mov dword [ebx], vtable.RC::IRefCount.0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.RC::ISysDoctorEngine.0
mov dword [ebp - 4], 1
lea eax, [ebx + 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov dword [eax], vtable.RC::RCRefCounted.0
mov dword [eax + 4], 0
mov byte [ebp - 4], 3
mov dword [ebx], vtable.RC::RCRefCountImpl1_class_RC::ISysDoctorEngine_.0
mov dword [eax], vtable.RC::RCRefCountImpl1_class_RC::ISysDoctorEngine_.1.0
mov dword [ebp - 4], 4
lea edi, [ebx + 0xc]
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov dword [ebx], vtable.RC::RCSysDoctorEngine.0
mov dword [eax], vtable.RC::RCSysDoctorEngine.1.0
mov dword [edi], vtable.RC::RCSafeTaskQueue.0
mov dword [ebp - 0x18], esi
push 8
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.1006efed
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], 6
lea esi, [edi + 0x18]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 7
push 0x18
call fcn.1006efed
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 8
mov dword [esi], eax
push eax
call ebx
mov byte [ebp - 4], 8
push ecx
push 0
push ecx
lea ecx, [edi + 0x1c]
call fcn.1005d9c0
mov byte [ebp - 4], 9
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x10]
add edi, 0x4c
push ecx
push 1
push ecx
mov dword [ebp - 0x18], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.RC::RCSafeThreadMgr.0
call fcn.1005d9c0
mov byte [ebp - 4], 0xb
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 0xc
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 0xd
lea esi, [edi + 0x40]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xe
push 0x18
call fcn.1006efed
add esp, 4
mov dword [esi], eax
push eax
call ebx
mov byte [ebp - 4], 0xf
mov dword [edi + 0x44], 1
mov byte [ebp - 4], 0x10
mov ebx, dword [ebp - 0x10]
lea esi, [ebx + 0x98]
mov dword [ebp - 0x18], esi
mov dword [ebx + 0x94], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10021ba0
mov dword [esi], eax
mov byte [ebp - 4], 0x13
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
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 0x100235a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078649
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x100c3579
call fcn.10071035
lea ecx, [ebp - 0x28]
call fcn.10042c50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x84]
push str.SysDoctor.log
call fcn.10004850
mov byte [ebp - 4], 1
lea eax, [ebp - 0x84]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x9c]
call fcn.10051500
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10023649
mov ecx, eax
call fcn.10004d00
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
call fcn.10004d00
mov byte [ebp - 4], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x84]
call fcn.10004d00
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10049d70
test al, al
je 0x100236e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], 0x400
mov dword [ebp - 0x54], str.notepad.exe
mov dword [ebp - 0x48], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 0x65], 1
test eax, eax
jne 0x100236e4
mov byte [ebp - 0x65], 0
mov dword [ebp - 4], 0x13
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x65]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x100239e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100787dc
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x100c3579
call fcn.10071035
lea ecx, [ebp - 0x40]
call fcn.10042c50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
push str.SysDoctor.log
call fcn.10004850
mov byte [ebp - 4], 1
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x7c]
call fcn.10051500
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x10023a80
mov ecx, eax
call fcn.10004d00
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.10004d00
mov byte [ebp - 4], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64]
call fcn.10004d00
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0
cmovae eax, dword [ebp - 0x40]
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 0x10023b69
push ecx
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.100491e0
add esp, 4
mov byte [ebp - 4], 0xf
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x44]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10023b4f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10023b45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10023b45
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006f01d
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x40]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
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.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x100264d0
Capabilities:
List user accounts

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007955f
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x100bd024]
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 dword [ebp - 0x148], ecx
mov ecx, 0x100c3579
call fcn.10071035
mov dword [ebp - 0x13c], 0
mov bl, 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x140], 0
nop dword [eax]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x13c]
push eax
push 2
push 1
push 0
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov edi, eax
mov dword [ebp - 0x14c], edi
test edi, edi
je 0x10026579
cmp edi, 0xea
jne 0x100266f4
mov esi, dword [ebp - 0x13c]
test esi, esi
je 0x1002670f
mov edi, dword [ebp - 0x148]
push ecx
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
call fcn.1000e290
mov eax, dword [edi + 4]
add esp, 4
mov dword [edi + 8], eax
xor edi, edi
cmp dword [ebp - 0x14], edi
jbe 0x100266ee
nop dword [eax]
test esi, esi
je 0x100266ee
cmp dword [esi + 0xc], 2
jne 0x1002666c
mov edx, dword [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 4], 3
xor eax, eax
mov word [ebp - 0x164], ax
mov eax, edx
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x144], ecx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10026610
sub eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x164]
sar eax, 1
push eax
push edx
call fcn.10004e60
mov dword [ebp - 4], 4
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 0x148]
push eax
lea ecx, [ecx + 4]
call fcn.10026c60
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x164]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push pe_nt_image_headers32
lea eax, [ebp - 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0x11c
lea ecx, [ebp - 0x138]
call fcn.100487b0
cmp dword [ebp - 0x134], 6
jne 0x100266e1
cmp dword [ebp - 0x130], 2
jb 0x100266e1
lea eax, [ebp - 0x140]
push eax
push 0x18
push dword [esi]
push 0
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
xor ecx, ecx
movzx ebx, bl
test eax, eax
mov eax, dword [ebp - 0x140]
cmovne ebx, ecx
test eax, eax
je 0x100266e1
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x140], 0
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0x14]
jb 0x100265b0
mov edi, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x13c]
test ecx, ecx
je 0x1002670f
push ecx
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x13c], 0
cmp edi, 0xea
je 0x10026540
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.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x10033c20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cd1e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100bd024]
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 ecx, 0x100c3579
call fcn.10071035
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
xor esi, esi
mov dword [ebp - 0x18], esi
xor bl, bl
push 0x10043640
mov byte [ebp - 0x14], bl
push 6
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10033d2b
cmp dword [ebp - 0x34], esi
je 0x10033d2b
lea ecx, [ebp - 0x30]
call fcn.10004900
mov dword [ebp - 4], esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x30]
push str.9CDB4DA2_ACEA_446E_AA3A_D25628140939__d__p
push eax
call fcn.10047dc0
add esp, 0x10
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x10033ced
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
jmp 0x10033d24
push 0xffffffffffffffff
push esi
call edi
test eax, eax
jne 0x10033cfd
mov bl, 1
mov byte [ebp - 0x14], bl
jmp 0x10033d0e
xor bl, bl
push esi
mov byte [ebp - 0x14], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 9
cmp byte [0x100c1628], 0
jne 0x10033d64
mov ecx, dword [0x100c1608]
test ecx, ecx
je 0x10033d50
push 0xffffffffffffffff
push ecx
call edi
mov ecx, dword [0x100c1608]
mov eax, dword [0x100c1600]
mov edi, dword [eax]
test ecx, ecx
je 0x10033d66
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x10033d66
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x10033d7e
test esi, esi
je 0x10033d91
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x10033d82
test esi, esi
je 0x10033d91
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov dword [ebp - 0x18], 0
mov eax, edi
mov byte [ebp - 0x14], 0
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.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x100421a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100814ac
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x14], 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, 0x100c3579
call fcn.10071035
mov eax, dword [esi + 4]
test eax, eax
je 0x10042301
cmp byte [eax + 0x54], 0
je 0x10042301
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.100407c0
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x10042214
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 0x100422ce
push ecx
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.100491e0
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 - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
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 - 0x20]
cmp edx, 0x10
jb 0x100422b4
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100422aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100422aa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006f01d
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x100422f3
cmp byte [ebp - 0x18], 0
je 0x100422f3
mov eax, dword [esi]
test eax, eax
je 0x100422ef
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 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 - 0x14]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
Function at 0x100487b0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
mov ecx, 0x100c3579
call fcn.10071035
push pe_nt_image_headers32
lea eax, [esi + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100488fc
cmp dword [esi + 4], 6
push edi
ja 0x10048810
jne 0x10048898
cmp dword [esi + 8], 2
jb 0x10048898
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10048898
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10048898
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10048898
movups xmm0, xmmword [0x10091650]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x10091660]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10048898
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10048898
cmp word [edi + 2], ax
jbe 0x10048898
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100488e3
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x100488e3
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.1006efdc
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.1006efdc
add esp, 0x140
ret

Function at 0x10049d30
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x100c3579
call fcn.10071035
mov ecx, esi
pop esi
jmp fcn.10050820
Function at 0x1004bb10
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, 0x100c2ae8
push edi
call fcn.10071035
cmp dword [ebx + 0x38], 0
je 0x1004bb48
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 0x1004bb6a
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1004bb6c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1004bbf1
jg 0x1004bb81
test esi, esi
je 0x1004bbf1
test ecx, ecx
jl 0x1004bbca
jg 0x1004bb8b
test eax, eax
je 0x1004bbca
cmp edi, ecx
jg 0x1004bb9f
jl 0x1004bb95
cmp esi, eax
jae 0x1004bb9f
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 0x1004bbcd
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1004bbf1
jg 0x1004bbd7
test esi, esi
je 0x1004bbf1
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1004bbf1
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 0x1004bc10
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, 0x100c2ae8
call fcn.10071035
cmp dword [edi + 0x38], 0
je 0x1004bc48
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 0x1004bc6a
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1004bc6c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1004bd0c
jg 0x1004bc89
test esi, esi
je 0x1004bd0c
test ecx, ecx
jl 0x1004bcd6
jg 0x1004bc93
test eax, eax
je 0x1004bcd6
cmp ebx, ecx
jg 0x1004bca7
jl 0x1004bc9d
cmp esi, eax
jae 0x1004bca7
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 0x1004bcdd
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1004bd0c
jg 0x1004bce7
test esi, esi
je 0x1004bd0c
cmp dword [edi + 0x4c], 0
je 0x1004bd0c
mov ecx, edi
call fcn.1004cf50
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 0x1004c0c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x100c2ae8
call fcn.10071035
mov ebx, dword [esp + 0x3c]
cmp ebx, 0xffffffff
jne 0x1004c0fa
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006efdc
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1004c12d
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1004c12d
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.1006efdc
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1004c233
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1004c156
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 0x1004c18b
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.1006efdc
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 0x1004c233
cmp eax, 1
jle 0x1004c1ef
cmp eax, 3
jne 0x1004c233
mov edx, dword [esi + 0x4c]
mov cl, byte [esp + 0x17]
call fcn.1004ad50
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.1006efdc
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x1004c20f
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 0x1004c233
lea eax, [esp + 0x17]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
je 0x1004c233
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006efdc
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006efdc
add esp, 0x30
ret 4