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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbc50
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
push 0x400
push 0
push eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], 0
call fcn.004773d0
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [esi], vtable.LString.0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 1
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429b10
sub eax, edi
lea ecx, [esi + 4]
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00409940
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x414], 1
call sym.XNewLook.exe_public:_class_LString____thiscall_LString::dir_fit_bool_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x429b70
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba670
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 7
mov dword [ebp - 0x2c], vtable.LString.0
xor esi, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], si
mov dword [ebp - 4], esi
add eax, 4
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea esi, [ebp - 0x28]
cmp esi, eax
je 0x429be6
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x429bd4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409940
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 1
test edx, edx
je 0x429c59
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax + edx*2 - 2]
cmp eax, 0x5c
je 0x429c59
cmp eax, 0x2f
je 0x429c59
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x429c3e
cmp ecx, 8
lea esi, [ebp - 0x28]
push 2
cmovae esi, dword [ebp - 0x28]
lea edi, [edx + 1]
push 0x4d2b88
mov dword [ebp - 0x18], edi
lea eax, [esi + edx*2]
push eax
call fcn.00478b30
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x429c56
push 1
push 0x4d2b88
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
push 1
call fcn.004090c0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2c]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x42a3b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbd1e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4f9008]
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, dword [ebp + 8]
lea eax, [ebp - 0x90]
push 0x80
push 0
push eax
mov dword [ebp - 0x114], ebx
call fcn.004773d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x90]
add esp, 0xc
push 0x40
push eax
push 0x59
push 0x800
call esi
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004773d0
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x40
push eax
push 0x5a
push 0x800
call esi
lea edi, [ebp - 0x90]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x42a446
mov eax, dword [0x4d5b70]
lea edx, [ebp - 0x110]
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42a461
lea edi, [ebp - 0x90]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42a480
mov ecx, edx
mov dword [ebx], vtable.LString.0
shr ecx, 2
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebx + 0x14], 0
and ecx, 3
mov dword [ebx + 0x18], 7
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 4]
mov word [ecx], ax
lea edx, [ebp - 0x90]
mov dword [ebp - 4], eax
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42a4d0
sub edx, esi
lea eax, [ebp - 0x90]
sar edx, 1
push edx
push eax
call fcn.00409940
mov eax, ebx
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.00475880
mov esp, ebp
pop ebp
ret

Function at 0x42a510
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbd5e
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.004773d0
add esp, 0xc
mov dword [ebp - 0x214], 0x100
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [esi + 4]
mov dword [esi], vtable.LString.0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea edx, [ebp - 0x210]
mov dword [ebp - 4], eax
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea edi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42a5b0
sub edx, edi
lea eax, [ebp - 0x210]
sar edx, 1
push edx
push eax
call fcn.00409940
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x42aa90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbec0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call fcn.004773d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esi], vtable.LString.0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ab30
sub eax, edi
lea ecx, [esi + 4]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00409940
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x21c], 1
call sym.XNewLook.exe_public:_class_LString____thiscall_LString::dir_fit_bool_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x42b2a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc085
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [ebp - 0x254], al
xor eax, eax
mov dword [ebp - 0x258], esi
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
push eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x24c]
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
push 0x4d2b9c
call fcn.00409940
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004773d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42b3d3
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b390
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00409940
mov byte [ebp - 4], 3
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
jmp 0x42b407
push dword [ebp - 0x254]
lea eax, [ebp - 0x234]
push eax
call sym.XNewLook.exe_class_LString___cdecl_LEnvironment::GetTempDir_bool_
add esp, 8
add eax, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
cmp ecx, eax
je 0x42b412
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x42b403
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00409940
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
push dword [ebp - 0x254]
lea ecx, [ebp - 0x250]
call sym.XNewLook.exe_public:_class_LString____thiscall_LString::dir_fit_bool_
lea ecx, [esi + 4]
mov dword [esi], vtable.LString.0
xor edx, edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
mov byte [ebp - 4], 5
add eax, 4
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
cmp ecx, eax
je 0x42b472
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x42b469
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00409940
lea ecx, [ebp - 0x250]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x42b4a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbc50
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov esi, dword [ebp + 0xc]
push 0x400
push 0
push eax
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x414], 0
call fcn.004773d0
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x42b504
mov esi, dword [esi]
push 0x200
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [edi + 4]
mov dword [edi], vtable.LString.0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea edx, [ebp - 0x410]
mov dword [ebp - 4], 1
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42b550
sub edx, esi
lea eax, [ebp - 0x410]
sar edx, 1
push edx
push eax
call fcn.00409940
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, edi
mov dword [ebp - 0x414], 1
call sym.XNewLook.exe_public:_class_LString____thiscall_LString::dir_fit_bool_
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x42b5b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc0c6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call sym.XNewLook.exe_bool___cdecl_LEnvironment::IsUserSystem_void_
test al, al
jne 0x42b6b2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004773d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42b6b2
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b655
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00409940
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 1
call sym.XNewLook.exe_public:_class_LString____thiscall_LString::to_long_path_from_dos83_void_
push dword [ebp + 0xc]
lea ecx, [ebp - 0x234]
call sym.XNewLook.exe_public:_class_LString____thiscall_LString::dir_fit_bool_
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call sym.XNewLook.exe_public:_void___thiscall_LString::constructor_class_LString_const__
lea ecx, [ebp - 0x234]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
jmp 0x42b6be
push dword [ebp + 0xc]
push esi
call sym.XNewLook.exe_class_LString___cdecl_LEnvironment::GetWindowsDir_bool_
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret

Function at 0x42cbf0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc33c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4f9008]
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.004387c0
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.00438870
lea eax, [esi + 0x24]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x24]
call fcn.00438870
lea eax, [esi + 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x30]
call fcn.00438870
lea eax, [esi + 0x3c]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x3c]
call fcn.00438870
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 0x42dd70
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 0x42dd81
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 0x42dda4
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 0x42ddca
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 0x42ddf2
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 0x42de18
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 0x42de40
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 0x42de59
mov ebx, 1
jmp 0x42de6c
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 0x42de90
Capabilities:
Check for sandbox and av modules
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f9008]
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.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
push str.DbgHelp.dll
call fcn.00409940
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 0x42df24
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 0x42df36
push str.ImageRvaToVa
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x42df3e
or esi, 0xffffffff
jmp 0x42e041
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x42df49
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 0x42df70
mov esi, 0xfffffffe
jmp 0x42e041
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 0x42df90
lea esi, [eax - 3]
jmp 0x42e03a
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x42dfad
lea esi, [eax - 4]
jmp 0x42e031
mov eax, 0x5a4d
cmp word [edi], ax
je 0x42dfbe
mov esi, 0xfffffffb
jmp 0x42e02a
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
je 0x42dfd2
mov esi, 0xfffffffa
jmp 0x42e02a
mov ecx, 0x10b
cmp word [eax + 0x18], cx
je 0x42dfe4
mov esi, 0xfffffff9
jmp 0x42e02a
mov ecx, dword [eax + 0xe8]
test ecx, ecx
jne 0x42dff3
lea esi, [ecx - 8]
jmp 0x42e02a
push 0
push ecx
push edi
push eax
call esi
test eax, eax
jne 0x42e003
lea esi, [eax - 9]
jmp 0x42e02a
cmp dword [eax], 0
je 0x42e025
cmp word [eax + 4], 0
je 0x42e025
cmp dword [eax + 0x14], 0
je 0x42e025
cmp dword [eax + 8], 0
je 0x42e025
cmp dword [eax + 0xc], 0
je 0x42e025
xor esi, esi
jmp 0x42e02a
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.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret
Function at 0x42e070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f9008]
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.XNewLook.exe_public:_class_LString___thiscall_LString::get_fix_to_path_slash_void_
cmp dword [ebp + 0x10], 0
jl 0x42e146
mov esi, dword [ebp + 0xc]
jg 0x42e0a9
test esi, esi
jb 0x42e146
mov eax, dword [edi + 4]
sub eax, dword [edi]
je 0x42e146
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 0x42e0e6
mov esi, 0xfffffffd
jmp 0x42e14b
push 0
push 0
push dword [ebp + 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42e107
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffc
jmp 0x42e14b
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 0x42e13f
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp dword [ebp - 0x24], eax
jne 0x42e13f
xor esi, esi
jmp 0x42e14b
mov esi, 0xfffffffa
jmp 0x42e14b
mov esi, 0xffffff9c
lea ecx, [ebp - 0x20]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret
Function at 0x42e170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f9008]
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.XNewLook.exe_public:_class_LString___thiscall_LString::get_fix_to_path_slash_void_
cmp dword [ebp + 0x10], 0
jl 0x42e247
mov esi, dword [ebp + 0xc]
jg 0x42e1ac
test esi, esi
jb 0x42e247
test ebx, ebx
je 0x42e247
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jle 0x42e247
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 0x42e1f1
mov esi, 0xfffffffd
jmp 0x42e24c
push 0
push 0
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42e212
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffc
jmp 0x42e24c
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 0x42e240
cmp dword [ebp - 0x24], ebx
jne 0x42e240
xor esi, esi
jmp 0x42e24c
mov esi, 0xfffffffa
jmp 0x42e24c
mov esi, 0xffffff9c
lea ecx, [ebp - 0x20]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret