joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100617f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ebp + 0x14], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 4]
lea edx, [eax + 8]
mov ebx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
movlpd qword [esp + 0x18], xmm0
jl 0x10061890
mov edi, dword [ebp + 0x10]
jg 0x10061827
test edi, edi
je 0x10061890
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x10]
inc bl
mov edi, dword [esp + 0x10]
movzx ebx, bl
mov edx, dword [eax + ebx*4]
mov cl, dl
add cl, byte [esp + 0xc]
movzx ecx, cl
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + ecx*4]
mov dword [eax + ebx*4], ecx
mov eax, dword [esp + 0xc]
mov dword [edi + eax*4], edx
add dl, cl
mov eax, edi
movzx ecx, dl
mov edi, dword [ebp + 0x10]
mov cl, byte [eax + ecx*4]
mov eax, dword [ebp + 0xc]
xor byte [esi + eax], cl
add esi, 1
mov eax, dword [esp + 0x14]
adc eax, 0
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
jl 0x10061833
jg 0x1006188c
cmp esi, edi
jb 0x10061833
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10063600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7dc8
mov eax, dword fs:[0]
push eax
sub esp, 8
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 dword [edi], vtable.LString.0
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea esi, [edi + 0x1c]
mov dword [ebp - 4], eax
push 8
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call fcn.1008bfb4
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10067f30
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [sym.XNewLookSch.dll_bool_LCRC::b_init_ok], 0
jne 0x10068069
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
xor eax, eax
test cl, 1
je 0x10067f52
bts eax, 7
shr ecx, 1
test cl, 1
je 0x10067f5d
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10067f68
bts eax, 5
shr ecx, 1
test cl, 1
je 0x10067f73
bts eax, 4
shr ecx, 1
test cl, 1
je 0x10067f7e
bts eax, 3
shr ecx, 1
test cl, 1
je 0x10067f89
bts eax, 2
shr ecx, 1
test cl, 1
je 0x10067f94
bts eax, 1
test cl, 2
je 0x10067f9d
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax*4 + 0x101155b0], ebx
lea ecx, [edx + 1]
nop
test bl, 1
je 0x1006803f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10068030
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x101155b0], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x10067f47
mov byte [sym.XNewLookSch.dll_bool_LCRC::b_init_ok], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100680c0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.1008c5b0
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1020]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push eax
mov dword [ebp - 0x1028], ebx
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp byte [ebp + 0x10], 0
mov eax, 1
push 0
push 0x80
push 3
push 0
mov ecx, 7
mov dword [ebx], 0
cmove ecx, eax
cmp dword [ebp - 0x1008], 8
push ecx
lea eax, [ebp - 0x101c]
cmovae eax, dword [ebp - 0x101c]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10068154
lea eax, [ebp - 0x1030]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100681a9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
dec dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
mov edx, dword [ebp - 0x1008]
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
cmp edx, 8
jb 0x10068279
mov ecx, dword [ebp - 0x101c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006826f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006828b
jmp 0x1006826f
mov eax, dword [ebp - 0x1030]
or eax, dword [ebp - 0x102c]
jne 0x100681c2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x10068156
call sym.XNewLookSch.dll_public:_static_void___cdecl_LCRC::init_void_
push 0
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1024], 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
or ebx, 0xffffffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10068257
push esi
mov esi, dword [ebp - 0x1024]
test esi, esi
je 0x10068256
xor edx, edx
test esi, esi
je 0x1006822c
nop word [eax + eax]
movzx ecx, byte [ebp + edx - 0x1004]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x101155b0]
cmp edx, esi
jb 0x10068210
push 0
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1024], 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100681f5
pop esi
mov eax, dword [ebp - 0x1028]
not ebx
push edi
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x10068156
push edx
push ecx
call fcn.1008bfe4
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
int3
Function at 0x10069100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov edx, dword [esi]
mov dword [esi + 0x20], edx
mov ecx, dword [edx + 0x3c]
add ecx, edx
mov dword [esi + 0x24], ecx
lea eax, [ecx + 0xf8]
mov dword [esi + 0x28], eax
je 0x1006918e
test eax, eax
je 0x1006918e
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x10], edx
lea ebx, [edx - 1]
xor edx, edx
add ebx, dword [ecx + 0x54]
mov eax, ebx
div dword [ecx + 0x38]
movzx eax, word [ecx + 6]
sub ebx, edx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10069190
mov esi, dword [ebp - 0x10]
lea edi, [ecx + 0x100]
nop
mov ecx, dword [edi]
cmp ecx, dword [edi + 8]
cmovbe ecx, dword [edi + 8]
xor edx, edx
dec ecx
lea edi, [edi + 0x28]
add ecx, dword [edi - 0x24]
add ecx, esi
mov eax, ecx
div esi
sub ecx, edx
cmp ebx, ecx
cmovae ecx, ebx
sub dword [ebp - 0xc], 1
mov ebx, ecx
jne 0x10069160
mov esi, dword [ebp - 8]
xor edi, edi
jmp 0x10069190
xor ebx, ebx
mov eax, dword [esi + 8]
push 0x40
push 0x3000
push ebx
push 0
call eax
mov dword [esi + 0x1c], eax
test eax, eax
je 0x1006920e
mov ecx, esi
mov dword [ebp - 8], 0
call fcn.10069230
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0xc]
push 0x40
push ebx
push dword [esi + 0x1c]
call eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
mov eax, dword [eax + 0x28]
add eax, ecx
je 0x1006920e
push dword [esi]
push 1
push ecx
call eax
test eax, eax
je 0x1006920e
mov eax, dword [esi + 0x24]
mov ebx, 1
mov edx, dword [esi + 0x1c]
mov ecx, ebx
mov eax, dword [eax + 0x78]
sub ecx, dword [eax + edx + 0x10]
js 0x1006920e
cmp ecx, dword [eax + edx + 0x14]
jge 0x1006920e
mov eax, dword [eax + edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
je 0x1006920e
push dword [esi]
call eax
test eax, eax
cmovne edi, ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x100700c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d8e39
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x101120a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov byte [0x10115ac0], 1
sub esp, 0x1c
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x18], esp
mov dword [esi], vtable.SLMsgBase.0
mov dword [esi + 4], 0
push 0x100f1774
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
sub esp, 0x1c
mov byte [ebp - 4], 1
mov ecx, esp
push str.m_i_mark
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
movzx eax, byte [0x10115be0]
lea ecx, [ebp - 0xd]
push 4
push 0x10115bd4
push eax
mov byte [ebp - 4], 0
call fcn.1006da90
sub esp, 0x1c
mov dword [esi + 0xc], 0
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x100f1774
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
sub esp, 0x1c
mov byte [ebp - 4], 2
mov ecx, esp
push str.m_i_type
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
movzx eax, byte [0x10115be0]
lea ecx, [ebp - 0xd]
push 0xc
push 0x10115bd4
push eax
mov byte [ebp - 4], 0
call fcn.1006da90
lea eax, [esi + 0x14]
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 4]
mov dword [eax], vtable.LString.0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
push eax
mov byte [ebp - 4], 3
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push 0x100ee7b8
call fcn.10002b70
lea eax, [esi + 0x30]
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 4]
mov dword [eax], vtable.LString.0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
push eax
mov byte [ebp - 4], 5
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push 0x100ee7b8
call fcn.10002b70
mov dword [esi + 0x4c], vtable.LString.0
xor eax, eax
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 7
mov word [esi + 0x50], ax
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
mov dword [esi + 0x68], vtable.LString.0
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], 7
mov word [esi + 0x6c], ax
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
mov eax, esi
mov byte [0x10115be0], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10070760
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d8f5a
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x1bc]
mov dword [ebp - 0x1c0], 0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10070884
mov eax, 2
mov word [esi + 4], ax
mov eax, dword [esi + 0x30]
movzx ecx, ax
test eax, eax
jle 0x100707d0
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 6], ax
cmp dword [esi + 0x28], 0
je 0x10070884
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call sym.XNewLookSch.dll_class_LString___cdecl_LNetwork::get_ip_by_host_name_class_LString_const__
push 0
lea eax, [ebp - 0x1d8]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c8], 0
push eax
mov dword [ebp - 0x1c4], 0xf
mov byte [ebp - 0x1d8], 0
mov dword [ebp - 0x1c0], 1
call sym.XNewLookSch.dll_public:_static_int___cdecl_LString::ws2str_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____unsigned_int_
add esp, 0x14
lea eax, [ebp - 0x1d8]
cmp dword [ebp - 0x1c4], 0x10
cmovae eax, dword [ebp - 0x1d8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp - 0x1c4]
mov dword [esi + 8], eax
cmp edx, 0x10
jb 0x1007087c
mov ecx, dword [ebp - 0x1d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10070872
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007089e
push edx
push ecx
call fcn.1008bfe4
add esp, 8
lea ecx, [ebp - 0x2c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
int3
Function at 0x100708b0
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x101120a8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x100708f5
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
xorps xmm0, xmm0
lea edx, [esp + 0x10]
xor edi, edi
movlpd qword [esp + 0x20], xmm0
push eax
mov dword [esp + 0x14], edi
call fcn.10070b90
add esp, 4
test al, al
jne 0x10070925
or edi, 0xffffffff
jmp 0x10070a4f
mov esi, dword [ebx + 0x38]
test esi, esi
jne 0x10070966
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 8
mov esi, eax
mov dword [esp + 0x2c], 0x3a98
lea eax, [esp + 0x2c]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebx + 0x38], esi
cmp esi, 0xffffffff
je 0x10070a8c
cmp esi, 0xffffffff
je 0x10070a8c
mov eax, dword [esp + 0x14]
xor ebx, ebx
push 0x10
add eax, 4
push eax
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x20]
push esi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x10070998
mov esi, dword [esp + 0xc]
or edi, 0xffffffff
jmp 0x100709f6
push 0x1000
call fcn.1008bff2
add esp, 4
mov ebx, eax
push 0x1000
push 0
push ebx
call fcn.1008da10
add esp, 0xc
push 0
push 0
push 0
push 0x1000
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jg 0x100709d9
mov esi, dword [esp + 0xc]
mov edi, 0xfffffffe
jmp 0x100709f6
cdq
mov ecx, ebx
push edx
push eax
call fcn.10070cc0
mov esi, dword [esp + 0x14]
add esp, 8
test eax, eax
mov dword [esi], eax
mov eax, 0xfffffffd
cmove edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10070a07
push eax
call fcn.1008c032
add esp, 4
test ebx, ebx
je 0x10070a14
push ebx
call fcn.1008c032
add esp, 4
test edi, edi
jne 0x10070a4b
push edi
push 0x10114070
push 0x10114090
push edi
push dword [esi]
call fcn.1008dfe4
add esp, 0x14
test eax, eax
je 0x10070a46
mov eax, dword [eax + 0x94]
cmp eax, 0xbb8
jge 0x10070a46
cmp eax, 0x7d0
jge 0x10070a76
mov edi, 0xfffffc17
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10070a64
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x38], 0
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 1
jb 0x100708e3
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0xc]
or edi, 0xffffffff
jmp 0x10070a4f
Function at 0x100740a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9658
mov eax, dword fs:[0]
push eax
sub esp, 0x70
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp esi, 0xffffffff
jne 0x10074109
or eax, esi
jmp 0x10074204
and esi, 0x10
jne 0x10074116
lea eax, [esi - 2]
jmp 0x10074204
lea ecx, [ebp - 0x7c]
call sym.XNewLookSch.dll_public:_void___thiscall_LDirSnap::constructor_void_
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
push edi
mov byte [ebp - 0x7c], 1
call sym.XNewLookSch.dll_public:_void___thiscall_LDirSnap::set_file_class_LString_const__
push 0x40
call fcn.1008bfb4
mov esi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [esi], vtable.SnapAndEncryCB.0
lea ecx, [esi + 0x24]
mov dword [esi + 4], vtable.LString.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
mov dword [esi + 0x20], vtable.LString.0
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 7
mov word [esi + 0x24], ax
mov eax, dword [ebp - 0x30]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
add eax, 4
mov dword [esi + 0x3c], ebx
cmp ecx, eax
je 0x100741a6
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x1007419d
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10002b70
lea eax, [edi + 4]
lea ecx, [esi + 8]
cmp ecx, eax
je 0x100741c3
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x100741ba
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10002b70
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], esi
mov byte [ebp - 0x6c], 1
call sym.XNewLookSch.dll_public:_int___thiscall_LDirSnap::snap_void_
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0x40]
call fcn.10011ab0
lea ecx, [ebp - 0x4c]
call fcn.10011ab0
lea ecx, [ebp - 0x58]
call fcn.10011ab0
lea ecx, [ebp - 0x64]
call fcn.10011ab0
lea ecx, [ebp - 0x78]
call fcn.100310d0
xor eax, eax
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 0x10074230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9688
mov eax, dword fs:[0]
push eax
sub esp, 0x68
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 ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp esi, 0xffffffff
jne 0x10074290
or eax, esi
jmp 0x1007430c
and esi, 0x10
jne 0x1007429a
lea eax, [esi - 2]
jmp 0x1007430c
lea ecx, [ebp - 0x74]
call sym.XNewLookSch.dll_public:_void___thiscall_LDirSnap::constructor_void_
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
push edi
mov byte [ebp - 0x74], 1
call sym.XNewLookSch.dll_public:_void___thiscall_LDirSnap::set_file_class_LString_const__
push 8
call fcn.1008bfb4
mov esi, eax
lea ecx, [ebp - 0x74]
add esp, 4
mov dword [esi], vtable.SnapAndEncryCB2.0
mov dword [esi + 4], ebx
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x64], 1
call sym.XNewLookSch.dll_public:_int___thiscall_LDirSnap::snap_void_
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
lea ecx, [ebp - 0x38]
call fcn.10011ab0
lea ecx, [ebp - 0x44]
call fcn.10011ab0
lea ecx, [ebp - 0x50]
call fcn.10011ab0
lea ecx, [ebp - 0x5c]
call fcn.10011ab0
lea ecx, [ebp - 0x70]
call fcn.100310d0
xor eax, eax
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
Function at 0x10074490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9658
mov eax, dword fs:[0]
push eax
sub esp, 0x70
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp esi, 0xffffffff
jne 0x100744f9
or eax, esi
jmp 0x100745f4
and esi, 0x10
jne 0x10074506
lea eax, [esi - 2]
jmp 0x100745f4
lea ecx, [ebp - 0x7c]
call sym.XNewLookSch.dll_public:_void___thiscall_LDirSnap::constructor_void_
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
push edi
mov byte [ebp - 0x7c], 1
call sym.XNewLookSch.dll_public:_void___thiscall_LDirSnap::set_file_class_LString_const__
push 0x40
call fcn.1008bfb4
mov esi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [esi], vtable.SnapAndDecryCB.0
lea ecx, [esi + 0x24]
mov dword [esi + 4], vtable.LString.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
mov dword [esi + 0x20], vtable.LString.0
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 7
mov word [esi + 0x24], ax
mov eax, dword [ebp - 0x30]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
add eax, 4
mov dword [esi + 0x3c], ebx
cmp ecx, eax
je 0x10074596
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x1007458d
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10002b70
lea eax, [edi + 4]
lea ecx, [esi + 8]
cmp ecx, eax
je 0x100745b3
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x100745aa
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10002b70
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], esi
mov byte [ebp - 0x6c], 1
call sym.XNewLookSch.dll_public:_int___thiscall_LDirSnap::snap_void_
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0x40]
call fcn.10011ab0
lea ecx, [ebp - 0x4c]
call fcn.10011ab0
lea ecx, [ebp - 0x58]
call fcn.10011ab0
lea ecx, [ebp - 0x64]
call fcn.10011ab0
lea ecx, [ebp - 0x78]
call fcn.100310d0
xor eax, eax
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