joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403484
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x4128b3
call fcn.00412250
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00401789
cmp dword [ebp - 0x18], 2
push 1
pop esi
mov dword [ebp - 4], esi
jg 0x4034c2
push 2
lea ecx, [ebp - 0x20]
call fcn.00401789
push dword [ebp - 0x20]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call esi
mov ecx, dword [ebp - 0x20]
mov word [ecx], bx
xor ecx, ecx
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jbe 0x40350f
lea edi, [eax + 1]
cmp edi, dword [ebp - 0x18]
jl 0x4034ee
push edi
lea ecx, [ebp - 0x20]
call fcn.00401789
push dword [ebp - 0x20]
push edi
call esi
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp word [eax], bx
je 0x403508
mov edx, eax
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x403500
mov word [eax + ecx*2], bx
mov dword [ebp - 0x1c], ecx
lea eax, [ecx + 0xf]
xor edi, edi
mov dword [ebp - 0x10], eax
lea esi, [ecx + ecx]
jmp 0x40351f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x40352d
push eax
lea ecx, [ebp - 0x20]
call fcn.00401789
mov eax, dword [ebp - 0x20]
push edi
push dword [ebp + 0xc]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x20]
add esp, 0xc
xor eax, eax
cmp word [ecx], bx
je 0x403554
mov edx, ecx
inc eax
inc edx
inc edx
cmp word [edx], bx
jne 0x40354c
mov word [ecx + eax*2], bx
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403572
inc edi
cmp edi, 0xfff
jl 0x40351c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.004015ee
mov dword [ebp - 0x14], 1
push dword [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4035d9
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x4128c8
call fcn.00412250
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x419288], esi
jle 0x40363d
mov eax, dword [0x41928c]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.004015ee
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.004035be
mov eax, dword [0x41928c]
pop ecx
push dword [ebp - 0x18]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
pop ecx
cmp esi, dword [0x419288]
jl 0x4035f1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x405fc8
Capabilities:
Inspect load icon resource

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
and eax, 3
sub eax, ebx
je 0x406052
dec eax
je 0x40602e
dec eax
je 0x406001
dec eax
jne 0x40607c
push 0x19
call fcn.00403120
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406318
push 0x1a
jmp 0x406069
push 0x1a
call fcn.00403120
pop ecx
mov edi, 0x4b4
push eax
push edi
mov ecx, esi
call fcn.00406318
push ebx
push 0x4b3
mov ecx, esi
call fcn.0040620c
push edi
mov ecx, esi
call fcn.00405e0d
jmp 0x40607c
push 0x19
call fcn.00403120
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406318
push ebx
push 0x4b4
mov ecx, esi
call fcn.0040620c
jmp 0x40607c
push 0x1b
call fcn.00403120
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406318
push 0x1c
call fcn.00403120
pop ecx
push eax
push 0x4b4
mov ecx, esi
call fcn.00406318
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and eax, 0x1c
cmp eax, 4
je 0x4060bf
cmp eax, 8
je 0x4060b6
cmp eax, 0xc
je 0x4060af
cmp eax, 0x10
jne 0x4060f5
push 0x7f04
jmp 0x4060bb
push 0x7f01
jmp 0x4060bb
push 0x7f02
push 0
jmp 0x4060c6
push 0x65
push 0
call ebx
push eax
call edi
test eax, eax
mov dword [esp + 0x10], eax
je 0x4060f5
push 0x4b1
mov dword [esi + 0x30], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esp + 0x10]
push 1
push 0x172
push eax
call ebp
jmp 0x406107
and dword [esi + 0x30], 0
push 0
push 0x4b1
mov ecx, esi
call fcn.0040620c
test byte [0x4189c5], 2
jne 0x406162
push 0x65
push 0
call ebx
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [esp + 0x18], eax
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x65
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
jne 0x406148
mov ebx, dword [esp + 0x10]
push dword [esp + 0x10]
mov edi, 0x80
push 1
push edi
push dword [esi + 4]
call ebp
push ebx
push 0
push edi
push dword [esi + 4]
call ebp
push dword [esi + 0xc]
mov ecx, esi
call fcn.00406775
push dword [esi + 0x10]
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test byte [0x4189c4], 8
jne 0x40618d
mov ecx, esi
call fcn.00406662
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40685d
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
mov edi, 0x4b6
push eax
mov esi, ecx
push edi
call fcn.004061a3
mov eax, dword [ebp - 4]
push 1
sub eax, dword [ebp - 0xc]
push edi
mov ecx, esi
inc eax
inc eax
mov dword [esi + 0x40], eax
call fcn.0040620c
inc edi
push 1
push edi
mov ecx, esi
call fcn.0040620c
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
lea eax, [ebp - 0x4d0]
push 0x2b4
push eax
lea eax, [ebp - 0x21c]
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x38], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4069ff
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.00405fc8
pop edi
pop esi
leave
ret

Function at 0x407a49
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x419420
push 8
mov eax, edx
pop esi
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec esi
jne 0x407a57
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x419820
jl 0x407a52
pop edi
pop esi
ret

Function at 0x407a7d
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x407aaa
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x419420]
xor eax, esi
inc ecx
dec edx
jne 0x407a8b
pop edi
pop esi
ret 4
Function at 0x409d36
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x413000
call fcn.00412250
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x4145c0
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x414678
push 4
mov ebx, 0x4145d0
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00408475
mov dword [esi + 0x3c], 0x414710
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.00408475
mov dword [edi], 0x414708
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040891b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.00409629
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040891b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.00409629
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040891b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.00409629
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040891b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.00409629
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.00409629
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d02c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413547
call fcn.00412250
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x4145c0
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x4145e8
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040ed7e
push dword [esi + 8]
mov ecx, ebx
call fcn.0040ed7e
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040ed7e
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040ed7e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40d038
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413547
call fcn.00412250
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x4145c0
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x4145e8
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040ed7e
push dword [esi + 8]
mov ecx, ebx
call fcn.0040ed7e
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040ed7e
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040ed7e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40de5c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40de82
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40de82
xor al, al
jmp 0x40dea2
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004123b0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40f6e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040f6ba
add esp, 0x1c
pop ebp
ret

Function at 0x411f3e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ecx]
and edx, 7
cmp dword [ebp + 0xc], 5
jae 0x411f55
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0xc]
lea edi, [ecx + eax - 4]
cmp esi, edi
jae 0x411f7c
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x411f7c
inc esi
jmp 0x411f6d
mov eax, esi
sub eax, ecx
cmp esi, edi
mov dword [ebp - 8], eax
jae 0x41206c
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x411fb1
xor edx, edx
mov cl, byte [esi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x411fde
cmp cl, 0xff
je 0x411fde
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x411f60
dec ecx
shl edx, cl
and edx, 7
je 0x411f97
movzx ecx, byte [edx + 0x41493c]
mov edi, esi
sub edi, ecx
cmp byte [edx + 0x414934], 0
mov cl, byte [edi + 4]
je 0x411fd9
test cl, cl
je 0x411fd9
cmp cl, 0xff
jne 0x411f97
mov dword [ebp - 4], eax
jmp 0x411fa6
xor ebx, ebx
mov bh, cl
mov bl, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x412007
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x41200e
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x412042
movzx edi, byte [edx + 0x41493c]
push 0x18
mov eax, ebx
shl edi, 3
pop ecx
sub ecx, edi
shr eax, cl
test al, al
je 0x41202d
cmp al, 0xff
jne 0x41203f
push 0x20
mov eax, dword [ebp - 8]
pop ecx
push 1
sub ecx, edi
pop edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x411ff9
mov eax, dword [ebp - 8]
mov ecx, ebx
mov byte [esi + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
add eax, 5
jmp 0x411f60
mov esi, eax
push 3
sub esi, dword [ebp - 4]
pop edi
lea ecx, [esi - 1]
shl edx, cl
and edx, 7
cmp edi, esi
sbb ecx, ecx
pop edi
not ecx
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
pop ebx
mov dword [edx], ecx
leave
ret
Function at 0x4010a8
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x40111d
cmp dword [0x419178], ebx
je 0x4010c1
xor eax, eax
jmp 0x401136
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
mov edi, 0x4191cc
mov ecx, edi
call esi
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x419178], eax
cmp eax, ebx
jne 0x4010fd
mov ecx, edi
call esi
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x419178], eax
cmp eax, ebx
je 0x4010bd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401133
push dword [0x419178]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x419178], ebx
jmp 0x4010bd
mov eax, dword [0x419178]
cmp eax, ebx
je 0x401133
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x419178], ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406f87
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
mov eax, 0x410f30
call fcn.0040f874
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
cmp eax, 0x14
jb 0x406fbb
jne 0x406fab
cmp dword [esi + 0x34], 0x5e
jb 0x406fbb
lea ecx, [esi + 0x3c]
call ebx
xor ecx, ecx
test al, al
sete cl
mov edi, ecx
jmp 0x406fbd
xor edi, edi
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
and dword [ebp - 4], 0
test edi, edi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
je 0x406fe3
add esi, 0x3c
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
jmp 0x407004
lea eax, [ebp - 0x14]
push eax
call fcn.00406ed1
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call edi
lea ecx, [ebp - 0x10]
call ebx
lea ecx, [ebp - 0x10]
test al, al
je 0x40701e
or dword [ebp - 4], 0xffffffff
call edi
xor eax, eax
call fcn.0040f913
ret
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
cmp eax, 0xffffffff
jne 0x40703f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call edi
mov eax, esi
jmp 0x407018
inc esi
jmp 0x407032

Function at 0x407042
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
mov eax, 0x410f54
call fcn.0040f8dd
and dword [ebp - 4], 0
and dword [ebp - 0x264], 0
and dword [ebp - 0x260], 0
push 0x24c
lea eax, [ebp - 0x25c]
push 0
xor esi, esi
push eax
inc esi
call sub.MSVCR100.dll_memset
push 0x414960
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x268]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407109
test esi, esi
je 0x407102
test byte [ebp - 0x260], 0x10
je 0x4070ea
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x414958
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x4070f0
push 0x414954
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x4070f0
inc dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x4070b3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x268]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call esi
mov eax, dword [ebp - 0x264]
call fcn.0040f927
ret
Function at 0x40712c
Capabilities:
Enumerate files on windows

Disassembly:
push 0x260
mov eax, 0x410f91
call fcn.0040f8dd
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x25c]
push ebx
xor esi, esi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x26c], ebx
inc esi
mov dword [ebp - 0x260], ebx
call sub.MSVCR100.dll_memset
push 0x414960
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x264]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40723c
cmp esi, ebx
je 0x407235
test byte [ebp - 0x260], 0x10
je 0x407220
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x414958
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x407220
push 0x414954
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x407220
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea eax, [ebp - 0x234]
push eax
push 0x414970
call esi
test eax, eax
jne 0x407204
mov dword [ebp - 0x268], 1
jmp 0x407220
lea eax, [ebp - 0x234]
push eax
push 0x414968
call esi
test eax, eax
jne 0x407220
mov dword [ebp - 0x26c], 1
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x4071a5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [0x4191e8], ebx
je 0x40726e
cmp dword [ebp - 0x268], ebx
je 0x407296
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], bl
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call esi
xor eax, eax
call fcn.0040f927
ret
cmp dword [ebp - 0x26c], ebx
je 0x407296
xor edi, edi
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], bl
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call esi
mov eax, edi
jmp 0x407268
xor edi, edi
inc edi
jmp 0x407278
Function at 0x40729b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x264
mov eax, 0x410fce
call fcn.0040f8dd
xor edi, edi
xor ebx, ebx
inc edi
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x26c], edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
cmp dword [0x4191e8], ebx
je 0x4072dd
push 0x414970
jmp 0x4072e2
push 0x414968
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
push 0x24c
lea eax, [ebp - 0x25c]
push ebx
push eax
mov dword [ebp - 0x260], ebx
call sub.MSVCR100.dll_memset
push 0x414960
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x268]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x4073ba
cmp edi, ebx
je 0x4073ae
test byte [ebp - 0x260], 0x10
je 0x407391
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x414958
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x407391
push 0x414954
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x407391
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4073a8
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x407340
mov dword [ebp - 0x26c], ebx
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x268]
call esi
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], bl
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call esi
mov eax, dword [ebp - 0x26c]
call fcn.0040f927
ret