joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469c29
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
test eax, eax
je 0x469e34
mov esi, 0x104
cmp dword [ebp + 0xc], esi
jb 0x469e34
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x40a]
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x414]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x40c]
push eax
lea edi, [esi + 0x12]
push edi
call fcn.0046847f
mov ebx, eax
test ebx, ebx
jge 0x469cbd
push ebx
push edi
push 0x46a210
push 1
call fcn.004015a0
add esp, 0x10
mov eax, ebx
jmp 0x469e4b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x410], 0
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0
push 0x400
push 0x469e5c
call sub.SHELL32.dll_SHGetKnownFolderPath
mov edi, eax
mov ebx, 0x46a158
test edi, edi
jl 0x469d8a
push dword [ebp - 0x410]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408479
mov edi, eax
test edi, edi
jl 0x469d57
mov ecx, dword [ebp - 0x414]
push 1
lea eax, [ebp - 0x40c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00469ad8
mov edi, eax
test edi, edi
jge 0x469d75
push edi
lea eax, [ebp - 0x40c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x469d6b
push edi
push dword [ebp - 0x410]
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x46a0b8
push 2
call fcn.004015a0
add esp, 0x18
push dword [ebp - 0x410]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [ebp - 0x410], 0
jmp 0x469d9a
push edi
push 0x469fe0
push 2
call fcn.004015a0
add esp, 0xc
test edi, edi
jge 0x469e19
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x469def
mov ecx, dword [ebp - 0x414]
push 1
lea eax, [ebp - 0x40c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00469ad8
mov edi, eax
test edi, edi
jge 0x469e19
push edi
lea eax, [ebp - 0x40c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
push 1
call fcn.004015a0
add esp, 0x18
jmp 0x469e15
push edi
push 0x469f58
push 1
call fcn.004015a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x469e13
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x469e30
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x418]
call fcn.00408479
mov edi, eax
mov eax, edi
jmp 0x469e4b
push dword [ebp + 0xc]
push 0x469e70
push 1
call fcn.004015a0
add esp, 0xc
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401580
leave
ret 8
Function at 0x47417b
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x48009c
call fcn.004026ff
mov esi, ecx
push 0x4747dc
push 8
call fcn.004015a0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
pop ecx
pop ecx
cmp dword [esi + 0x14], edi
jne 0x4741ca
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x4741ca
push 0x474760
push 1
call fcn.004015a0
pop ecx
pop ecx
mov eax, 0x80004005
jmp 0x474329
cmp dword [esi + 0x18], edi
jne 0x4741f5
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x18], eax
cmp eax, edi
jne 0x4741f5
push 0x4746f8
push 1
call fcn.004015a0
pop ecx
pop ecx
mov eax, 0x8007000e
jmp 0x474329
cmp dword [esi + 0x2c], edi
jne 0x474282
push pe_nt_image_headers32
call fcn.00402845
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x47421d
push edi
call fcn.0047339a
jmp 0x47421f
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], eax
cmp eax, edi
jne 0x474231
push 0x474680
jmp 0x4741e2
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ebx, eax
cmp ebx, edi
jge 0x474269
push ebx
push 0x4745f0
push 1
call fcn.004015a0
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 8]
mov dword [esi + 0x2c], edi
mov eax, ebx
jmp 0x474329
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x18]
push eax
push 0x474588
push 1
mov dword [esi + 0x10], eax
call fcn.004015a0
add esp, 0xc
cmp dword [esi + 0xc], edi
jne 0x4742af
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x473837
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x4742af
push 0x474510
jmp 0x4741b7
push 0x4744a0
push 8
call fcn.004015a0
pop ecx
pop ecx
push edi
push 0xffffffffffffffff
push 1
lea ebx, [esi + 0x14]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
test eax, eax
jne 0x4742de
push 0x474428
mov dword [ebp - 0x10], edi
push 8
jmp 0x4742ec
push 0x474390
mov dword [ebp - 0x10], 0x8000ffff
push 1
call fcn.004015a0
pop ecx
pop ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x474330
push 8
call fcn.004015a0
pop ecx
pop ecx
mov ecx, dword [esi + 0x2c]
cmp ecx, edi
je 0x474326
push 2
pop eax
push eax
push dword [esi + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 1
call fcn.0045031b
mov eax, dword [ebp - 0x10]
call fcn.00402739
ret
Function at 0x47b49e
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x47b505
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x47b505
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
pop ebx
je 0x47b514
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
leave
ret
Function at 0x1002b46
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 0xc
lea eax, [ebp + eax*2 - 0x100]
dec eax
dec eax
mov cx, word [eax]
cmp cx, 0x5c
je 0x1002b87
cmp cx, 0x2f
jne 0x1002b8d
and word [eax], 0
jmp 0x1002b76
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret 4

Function at 0x1002ba8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push esi
push dword [edi + 4]
mov esi, dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x108]
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_wcslen]
lea eax, [ebp + eax*2 - 0x108]
push 0x10014b0
push eax
mov dword [ebp - 8], eax
call esi
add esp, 0x14
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1002c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1002d3a
push ebx
mov ebx, dword [sym.imp.ntdll.dll_wcscmp]
lea eax, [ebp - 0x32c]
push 0x10014ac
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002d12
lea eax, [ebp - 0x32c]
push 0x10014a4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002d12
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.ntdll.dll__wcslwr]
push eax
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0xc]
add esp, 0xc
test eax, eax
je 0x1002c74
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ntdll.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x32c]
push eax
push dword [edi + 8]
call fcn.01002f0f
test eax, eax
je 0x1002d12
cmp dword [edi + 0xc], 0
je 0x1002ced
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
lea edx, [ebp - 0x108]
call fcn.01002a81
test eax, eax
je 0x1002ced
test byte [ebp - 0x358], 0x10
je 0x1002d12
lea eax, [ebp - 0x458]
push eax
call fcn.01002b46
test eax, eax
je 0x1002d12
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
mov eax, dword [ebp + 8]
call fcn.010028ea
jmp 0x1002d12
lea eax, [ebp - 0x108]
push eax
call fcn.01002b46
test eax, eax
je 0x1002d12
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 0xc]
call fcn.010029ba
mov ebx, eax
test ebx, ebx
jne 0x1002d37
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x1002c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1002d37
mov eax, ebx
pop ebx
pop esi
leave
ret 8
Function at 0x100312e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10014b8
call fcn.010032cc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1003169
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003169
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003181
cmp eax, 0x20b
je 0x100316e
mov dword [ebp - 0x1c], edi
jmp 0x1003195
cmp dword [ecx + 0x84], 0xe
jbe 0x1003169
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100318f
cmp dword [ecx + 0x74], 0xe
jbe 0x1003169
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1005980], 0xffffffff
or dword [0x1005984], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10042ec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10042e8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005988], eax
call fcn.010032c6
cmp dword [0x1004290], edi
jne 0x10031f0
push fcn.010032c6
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010032b4
push 0x1001138
push 0x1001134
call sub.msvcrt.dll__initterm
mov eax, dword [0x10042e4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10042e0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001130
push 0x100112c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010016a7
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1003267
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100329c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003305
ret
Function at 0x40690e
Capabilities:
Check if file exists

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x406919
mov eax, dword [eax + 4]
jmp 0x40691c
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
dec eax
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4069af
Capabilities:
Create directory

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x4069be
xor al, al
jmp 0x406a06
call fcn.0040690e
test al, al
je 0x4069dd
mov eax, esi
call fcn.0040680c
test al, al
jne 0x4069dd
mov eax, esi
call fcn.00406a09
test al, al
je 0x4069ba
cmp dword [esi + 0x18], 8
jb 0x4069e8
mov esi, dword [esi + 4]
jmp 0x4069eb
add esi, 4
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
sub eax, ebx
je 0x406a02
sub eax, 0x50
je 0x406a02
sub eax, 0x67
jne 0x406a04
mov bl, 1
mov al, bl
pop esi
pop ebx
ret

Function at 0x406a09
Capabilities:
Delete file

Disassembly:
push esi
mov esi, eax
call fcn.0040690e
test al, al
jne 0x406a19
inc al
pop esi
ret
cmp dword [esi + 0x18], 8
jb 0x406a24
mov esi, dword [esi + 4]
jmp 0x406a27
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec eax
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x406a36
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x4461b4]
xor eax, ebp
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xb8]
push ebx
xor ebx, ebx
cmp dword [eax + 0x18], 8
mov byte [ebp - 0x69], bl
jb 0x406a68
mov eax, dword [eax + 4]
jmp 0x406a6b
add eax, 4
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
je 0x406b28
push 0x438e58
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x64], 5
jae 0x406ade
push str.GetFileSize
push dword [ebp - 0x74]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406af9
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp - 0x70]
call eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x78], eax
jmp 0x406af9
push str.GetFileSizeEx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406af9
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x70]
call eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
push dword [ebp - 0x70]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov byte [ebp - 0x69], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xac]
mov al, byte [ebp - 0x69]
xor ecx, ebp
pop ebx
call fcn.0041aa44
add ebp, 0xb0
leave
ret
Function at 0x406b41
Capabilities:
Copy file

Disassembly:
push esi
mov esi, eax
mov eax, edi
call fcn.0040680c
test al, al
je 0x406b53
xor al, al
pop esi
ret
mov eax, esi
call fcn.0040680c
test al, al
je 0x406b69
push esi
call fcn.0040669b
pop ecx
test al, al
je 0x406b4f
cmp dword [esi + 0x18], 8
jb 0x406b74
mov esi, dword [esi + 4]
jmp 0x406b77
add esi, 4
cmp dword [edi + 0x18], 8
jb 0x406b82
mov eax, dword [edi + 4]
jmp 0x406b85
lea eax, [edi + 4]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
dec eax
neg eax
sbb eax, eax
inc eax
pop esi
ret
Function at 0x407aa3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407aba
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x407aef
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x407aeb
cmp edi, eax
jae 0x407aef
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x407add
cmp edi, eax
jb 0x407af3
xor eax, eax
jmp 0x407afc
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4083ee
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push 0x1c
mov eax, 0x430ce1
call fcn.0042ea07
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp + 8]
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x14], esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x4084ff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.0041a924
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
inc eax
push eax
push esi
push edi
mov dword [ebp - 0x18], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x408461
mov dword [ebp - 0x14], esi
jmp 0x408473
cmp dword [ebp - 0x14], esi
jbe 0x408473
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
or dword [ebp - 4], 0xffffffff
jmp 0x4084ea
push dword [ebp - 0x18]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], esi
ja 0x408402
cmp dword [ebp - 0x1c], esi
setne al
call fcn.0042eaac
ret 8
Function at 0x4087b5
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x4461b4]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
cmp dword [eax + 0x18], 8
push ebx
push esi
push edi
mov edi, ecx
jb 0x4087e6
mov eax, dword [eax + 4]
jmp 0x4087e9
add eax, 4
xor ebx, ebx
push ebx
mov esi, 0x80
push esi
push 4
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x408824
xor al, al
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aa44
add ebp, 0x394
leave
ret
or dword [ebp - 0x7c], 0xffffffff
cmp dword [edi + 0x18], 8
jb 0x408833
mov edi, dword [edi + 4]
jmp 0x408836
add edi, 4
push esi
push 0x40
push 0x8101
lea eax, [ebp - 0x7c]
push edi
push eax
call dword [sym.imp.MSVCR90.dll__wsopen_s]
add esp, 0x14
test eax, eax
je 0x408865
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR90.dll__close]
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40880a
push 0x438f7c
push dword [ebp - 0x7c]
call fcn.00416ea0
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x408895
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR90.dll__close]
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x40880c
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x74], ebx
mov edi, 0x400
jmp 0x4088b7
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
call fcn.004169f0
add esp, 0xc
push ebx
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call esi
cmp dword [ebp - 0x74], ebx
ja 0x4088a5
push dword [ebp - 0x80]
call fcn.00416ba0
mov bl, 1
jmp 0x408884
Function at 0x40fb23
Capabilities:
Get common file path

Disassembly:
push 0x26c
mov eax, 0x432b18
call fcn.0042ea3d
xor ebx, ebx
push 0x20a
lea eax, [ebp - 0x220]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x224], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.0040fa26
test al, al
je 0x40fbee
push str.IE_is_protected_mode_
lea ecx, [ebp - 0x240]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.LogSession
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.0040a359
push 0x438d7d
lea ecx, [ebp - 0x278]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 2
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x40]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call fcn.0040fa79
jmp 0x40fc1b
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea eax, [ebp - 0x220]
je 0x40fc12
mov eax, 0x438e3c
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, edi
call fcn.0042eac0
ret
Function at 0x410854
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x150
mov eax, dword [0x4461b4]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
mov dword [ebp - 0xdc], eax
cmp dword [0x447714], ebx
jne 0x410884
xor al, al
jmp 0x41096c
push esi
push 0x118
lea eax, [ebp - 0xd4]
push ebx
push eax
mov dword [ebp - 0xd8], 0x11c
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
call esi
test eax, eax
jne 0x4108df
push 0x11c
lea eax, [ebp - 0xd8]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 0xd8], 0x114
call esi
cmp dword [ebp - 0xd4], 5
pop esi
jb 0x41094d
jne 0x4108f3
cmp dword [ebp - 0xd0], ebx
je 0x41094d
cmp dword [0x447704], ebx
je 0x41087d
push 0x10
lea eax, [ebp + 0x60]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 2
pop eax
push dword [ebp - 0xdc]
mov word [ebp + 0x60], ax
lea eax, [ebp + 0x60]
push eax
call dword [0x447704]
cmp eax, ebx
je 0x410963
push 0x1c
lea eax, [ebp + 0x44]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x17
pop eax
push dword [ebp - 0xdc]
mov word [ebp + 0x44], ax
lea eax, [ebp + 0x44]
push eax
call dword [0x447704]
jmp 0x410963
mov eax, dword [0x447708]
cmp eax, ebx
je 0x41087d
push dword [ebp - 0xdc]
push ebx
call eax
xor ecx, ecx
cmp eax, ebx
sete cl
mov al, cl
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop ebx
call fcn.0041aa44
add ebp, 0x74
leave
ret