joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022bb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d20e4
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x101120a8]
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 - 0x418], ecx
mov edi, dword [ebp + 8]
mov dword [ecx], 0
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x10022c07
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x1c
cmp esi, ebx
jne 0x10022bf6
mov esi, dword [edi]
mov ebx, dword [ebp - 0x418]
mov dword [edi + 4], esi
cmp byte [ebx + 4], 0
jne 0x10022c1d
xor al, al
jmp 0x10022da3
xor esi, esi
nop
push 0x3e8
lea eax, [ebp - 0x3f8]
mov dword [ebp - 0x41c], 0x100
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x3f8]
push eax
push esi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x418]
mov dword [ecx], eax
test ebx, ebx
jne 0x10022d91
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x400], ebx
mov dword [ebp - 0x3fc], 7
mov word [ebp - 0x410], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3f8]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10022cb2
sub eax, edx
lea ecx, [ebp - 0x410]
sar eax, 1
push eax
lea eax, [ebp - 0x3f8]
push eax
call fcn.10002b70
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x10022d39
mov dword [eax], vtable.LString.0
lea ecx, [eax + 4]
mov dword [ebp - 0x420], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x410]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
cmp ecx, eax
je 0x10022d33
cmp dword [ebp - 0x3fc], 8
push dword [ebp - 0x400]
cmovae eax, dword [ebp - 0x410]
push eax
call fcn.10002b70
add dword [edi + 4], 0x1c
jmp 0x10022d48
lea ecx, [ebp - 0x414]
push ecx
push eax
mov ecx, edi
call fcn.100124a0
mov dword [ebp - 4], 0xffffffff
dec dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
mov edx, dword [ebp - 0x3fc]
cmp edx, 8
jb 0x10022d91
mov ecx, dword [ebp - 0x410]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10022d87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022dc1
push edx
push ecx
call fcn.1008bfe4
add esp, 8
inc esi
test ebx, ebx
jne 0x10022da1
mov ebx, dword [ebp - 0x418]
jmp 0x10022c20
mov al, 1
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.1008bffe
mov esp, ebp
pop ebp
ret 4
call fcn.10092486
int3
Function at 0x10022dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d213c
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x101120a8]
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 edi, ecx
cmp byte [edi + 4], 0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
je 0x10022f6b
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x834], 2
push 0
push eax
call fcn.1008da10
lea eax, [esi + 4]
mov dword [ebp - 0x830], 0x800
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10022e4b
mov eax, dword [eax]
lea ecx, [ebp - 0x830]
push ecx
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x834]
push ecx
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
lea edi, [ebx + 4]
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
test esi, esi
jne 0x10022f14
lea ecx, [ebp - 0x810]
mov dword [ebp - 4], esi
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022eb6
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.10002b70
lea eax, [ebp - 0x828]
mov dword [ebp - 4], 1
cmp edi, eax
je 0x10022f05
cmp dword [ebp - 0x814], 8
mov ecx, edi
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x82c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov al, 1
jmp 0x10022f6d
push 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x828]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push 0x100ee7b8
call fcn.10002b70
lea eax, [ebp - 0x828]
mov dword [ebp - 4], 3
cmp edi, eax
je 0x10022f60
cmp dword [ebp - 0x814], 8
mov ecx, edi
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x82c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
xor al, al
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.1008bffe
mov esp, ebp
pop ebp
ret 8
Function at 0x10022f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d213c
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x101120a8]
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 edi, ecx
cmp byte [edi + 4], 0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
je 0x1002312b
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x834], 1
push 0
push eax
call fcn.1008da10
lea eax, [esi + 4]
mov dword [ebp - 0x830], 0x800
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1002300b
mov eax, dword [eax]
lea ecx, [ebp - 0x830]
push ecx
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x834]
push ecx
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
lea edi, [ebx + 4]
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
test esi, esi
jne 0x100230d4
lea ecx, [ebp - 0x810]
mov dword [ebp - 4], esi
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023076
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.10002b70
lea eax, [ebp - 0x828]
mov dword [ebp - 4], 1
cmp edi, eax
je 0x100230c5
cmp dword [ebp - 0x814], 8
mov ecx, edi
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x82c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov al, 1
jmp 0x1002312d
push 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x828]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push 0x100ee7b8
call fcn.10002b70
lea eax, [ebp - 0x828]
mov dword [ebp - 4], 3
cmp edi, eax
je 0x10023120
cmp dword [ebp - 0x814], 8
mov ecx, edi
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x82c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
xor al, al
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.1008bffe
mov esp, ebp
pop ebp
ret 8
Function at 0x10023150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ecx], 0
push esi
push edi
mov dword [ebx], 0
mov dword [eax], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 8], ecx
je 0x10023223
mov edi, dword [ebp + 8]
add edi, 4
mov dword [ebp - 4], 3
mov dword [ebp + 0xc], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1002319c
mov eax, dword [edi]
lea edx, [ebp + 0xc]
push edx
push 0
lea edx, [ebp - 4]
push edx
push 0
push eax
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
test esi, esi
jne 0x10023223
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
inc eax
push eax
call fcn.1008bff2
add esp, 4
mov dword [ebx], eax
cmp dword [edi + 0x14], 8
jb 0x100231df
mov edi, dword [edi]
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
mov edi, dword [ebp - 8]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
mov dword [edi], ecx
test esi, esi
je 0x1002322e
push dword [ebx]
call fcn.1008c032
mov dword [ebx], 0
add esp, 4
mov dword [edi], 0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10023270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [edi], 0
je 0x100232c7
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x10023298
mov eax, dword [eax]
push esi
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
push dword [ebp + 0xc]
push ecx
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [edi], eax
pop esi
jne 0x100232c7
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100232d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov dword [ebp - 4], 0
cmp byte [edi + 4], 0
mov dword [edi], 0
je 0x10023345
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
cmp dword [eax + 0x14], 8
jb 0x10023308
mov eax, dword [eax]
push esi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [edi], eax
pop esi
jne 0x10023345
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
setne cl
pop edi
mov byte [eax], cl
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x10023350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [edi], 0
je 0x100233b1
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 8], 4
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x10023381
mov eax, dword [eax]
push esi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [edi], eax
pop esi
jne 0x100233b1
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x10024f70
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d25ec
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101120a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 4]
movzx eax, byte [esi]
mov byte [edi], al
movzx eax, byte [esi + 1]
mov byte [edi + 1], al
movzx eax, byte [esi + 2]
mov byte [edi + 2], al
movzx eax, byte [esi + 3]
mov byte [edi + 3], al
lea eax, [esi + 4]
push eax
call fcn.10030a40
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
movzx eax, byte [esi + 0x10]
mov byte [edi + 0x10], al
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.10030af0
lea eax, [esi + 0x24]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x24]
call fcn.10030af0
lea eax, [esi + 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x30]
call fcn.10030af0
lea eax, [esi + 0x3c]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x3c]
call fcn.10030af0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100260b0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x100260c1
mov eax, dword [eax]
push edi
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100260e4
or eax, eax
pop edi
pop ebp
ret
push esi
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x1002610a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 2]
pop esi
pop edi
pop ebp
ret
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x10026132
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
mov eax, 0xfffffffd
pop edi
pop ebp
ret
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10026158
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
mov eax, 0xfffffffc
pop edi
pop ebp
ret
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
je 0x10026180
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
mov eax, 0xfffffffb
pop edi
pop ebp
ret
movzx ecx, word [ecx + eax + 0x18]
mov edx, 0x10b
push ebx
xor ebx, ebx
cmp cx, dx
jne 0x10026199
mov ebx, 1
jmp 0x100261ac
mov dword [ebp + 8], 0x20b
mov edx, 2
cmp cx, word [ebp + 8]
cmove ebx, edx
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100261d0
Capabilities:
Check for sandbox and av modules
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2880
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101120a8]
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 edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x2c], vtable.LString.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0xb
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push str.DbgHelp.dll
call fcn.10002b70
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10026264
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10026276
push str.ImageRvaToVa
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1002627e
or esi, 0xffffffff
jmp 0x10026381
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x10026289
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100262b0
mov esi, 0xfffffffe
jmp 0x10026381
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x100262d0
lea esi, [eax - 3]
jmp 0x1002637a
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x100262ed
lea esi, [eax - 4]
jmp 0x10026371
mov eax, 0x5a4d
cmp word [edi], ax
je 0x100262fe
mov esi, 0xfffffffb
jmp 0x1002636a
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
je 0x10026312
mov esi, 0xfffffffa
jmp 0x1002636a
mov ecx, 0x10b
cmp word [eax + 0x18], cx
je 0x10026324
mov esi, 0xfffffff9
jmp 0x1002636a
mov ecx, dword [eax + 0xe8]
test ecx, ecx
jne 0x10026333
lea esi, [ecx - 8]
jmp 0x1002636a
push 0
push ecx
push edi
push eax
call esi
test eax, eax
jne 0x10026343
lea esi, [eax - 9]
jmp 0x1002636a
cmp dword [eax], 0
je 0x10026365
cmp word [eax + 4], 0
je 0x10026365
cmp dword [eax + 0x14], 0
je 0x10026365
cmp dword [eax + 8], 0
je 0x10026365
cmp dword [eax + 0xc], 0
je 0x10026365
xor esi, esi
jmp 0x1002636a
mov esi, 0xfffffff6
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
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.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x100263b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_fix_to_path_slash_void_
cmp dword [ebp + 0x10], 0
jl 0x10026486
mov esi, dword [ebp + 0xc]
jg 0x100263e9
test esi, esi
jb 0x10026486
mov eax, dword [edi + 4]
sub eax, dword [edi]
je 0x10026486
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0x80
push 3
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10026426
mov esi, 0xfffffffd
jmp 0x1002648b
push 0
push 0
push dword [ebp + 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10026447
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffc
jmp 0x1002648b
mov ecx, dword [edi]
lea edx, [ebp - 0x24]
mov eax, dword [edi + 4]
push 0
push edx
sub eax, ecx
mov dword [ebp - 0x24], 0
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1002647f
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp dword [ebp - 0x24], eax
jne 0x1002647f
xor esi, esi
jmp 0x1002648b
mov esi, 0xfffffffa
jmp 0x1002648b
mov esi, 0xffffff9c
lea ecx, [ebp - 0x20]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x100264b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push eax
mov dword [ebp - 0x28], ebx
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_fix_to_path_slash_void_
cmp dword [ebp + 0x10], 0
jl 0x10026587
mov esi, dword [ebp + 0xc]
jg 0x100264ec
test esi, esi
jb 0x10026587
test ebx, ebx
je 0x10026587
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jle 0x10026587
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0x80
push 3
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10026531
mov esi, 0xfffffffd
jmp 0x1002658c
push 0
push 0
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10026552
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffc
jmp 0x1002658c
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push ebx
push dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10026580
cmp dword [ebp - 0x24], ebx
jne 0x10026580
xor esi, esi
jmp 0x1002658c
mov esi, 0xfffffffa
jmp 0x1002658c
mov esi, 0xffffff9c
lea ecx, [ebp - 0x20]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x100265b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d28b8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x101120a8]
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, dword [ebp + 8]
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_fix_to_path_slash_void_
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [ebx], 0
cmp eax, dword [ebp + 0x18]
jg 0x1002670b
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
jl 0x10026622
cmp esi, ebx
ja 0x1002670b
test eax, eax
jl 0x1002670b
jg 0x10026634
test esi, esi
jb 0x1002670b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 7
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10026666
or esi, eax
jmp 0x10026710
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10026686
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffe
jmp 0x10026710
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
jne 0x1002669c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffd
jmp 0x10026710
push 0
push 0
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100266bd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffc
jmp 0x10026710
sub ebx, esi
inc ebx
lea eax, [ebx + 0x64]
push eax
call fcn.1008bff2
mov ecx, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x30], 0
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
test esi, esi
je 0x10026704
cmp ebx, eax
jne 0x10026704
xor esi, esi
jmp 0x10026710
mov esi, 0xfffffffa
jmp 0x10026710
mov esi, 0xffffff9c
lea ecx, [ebp - 0x2c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
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.1008bffe
mov esp, ebp
pop ebp
ret