joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10182b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10c06d40]
mov dword [ebp - 4], eax
jmp 0x10182b68
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10182b7e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10182b7c
mov eax, dword [ebp - 4]
jmp 0x10182bf9
jmp 0x10182b60
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10182bf6
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x10182bb8
mov edx, dword [ebp - 4]
mov eax, dword [0x10c06d40]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10c06d40], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10183100
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10183149
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x10183149
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x10183149
xor eax, eax
jmp 0x1018318a
mov dword [ebp - 4], 1
jmp 0x1018315b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10183185
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x10183183
xor eax, eax
jmp 0x1018318a
jmp 0x10183152
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x101841ed
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10184214
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10184217
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.101841c9
pop esi
leave
ret 8
Function at 0x4011c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub ecx, dword [eax + 0x4038]
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
lea edx, [eax + 0x4084]
push edx
lea edx, [eax + 0x407c]
push edx
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 8]
push edx
lea edx, [eax + 0x4094]
push edx
lea esi, [eax + 0x4090]
push esi
lea edx, [eax + 0x408c]
push edx
sar ecx, 5
push ecx
lea ecx, [eax + 8]
push ecx
add eax, 0x4028
call fcn.00406dcc
xor ebx, ebx
add esp, 0x24
cmp eax, ebx
jne 0x401294
cmp dword [edi + 0x14], 8
jb 0x401222
mov eax, dword [edi]
jmp 0x401224
mov eax, edi
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401247
push 0xb
pop eax
jmp 0x401294
cmp dword [ebp - 4], ebx
jbe 0x40128b
mov dword [ebp - 0x10], 0x1000000
cmp dword [ebp - 4], 0x1000000
lea eax, [ebp - 0x10]
ja 0x401262
lea eax, [ebp - 4]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
mov eax, dword [esi]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401242
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
ja 0x401253
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d48
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x8c
lea ebp, [esp - 4]
mov eax, dword [0x41b374]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push 0xc
mov eax, 0x415419
call fcn.0040ba75
mov ebx, dword [ebp + 0x98]
cmp dword [ebx + 0x10], 0
mov esi, dword [ebp + 0x9c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
je 0x401ea9
lea eax, [ebp + 0x70]
push eax
mov edi, ebx
call fcn.004041c2
cmp dword [eax + 0x14], 8
pop ecx
jb 0x401d9c
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 1
xor edi, edi
lea esi, [ebp + 0x70]
mov dword [ebp - 0x10], eax
call fcn.004014f1
cmp dword [ebp - 0x10], 0xffffffff
je 0x401e9a
mov edi, dword [ebp - 0x14]
push 2
push 0x418e70
lea esi, [edi + 0x2c]
push esi
call fcn.0040aaca
add esp, 0xc
test eax, eax
je 0x401e7d
push 3
push 0x418e74
push esi
call fcn.0040aaca
add esp, 0xc
test eax, eax
je 0x401e7d
test byte [edi], 0x10
mov edi, ebx
je 0x401e35
lea eax, [ebp + 0x38]
push eax
call fcn.0040421a
and dword [ebp - 4], 0
push esi
push eax
lea eax, [ebp + 0x54]
call fcn.0040426f
add esp, 0xc
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00401d48
push 1
xor edi, edi
lea esi, [ebp + 0x54]
call fcn.004014f1
lea esi, [ebp + 0x38]
jmp 0x401e70
lea eax, [ebp + 0x1c]
push eax
call fcn.0040421a
push esi
push eax
lea eax, [ebp]
mov dword [ebp - 4], 2
call fcn.0040426f
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x401e5a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
xor edi, edi
lea esi, [ebp]
call fcn.004014f1
lea esi, [ebp + 0x1c]
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
call fcn.004014f1
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401dbd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebx + 0x14], 8
jb 0x401ea2
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040a120
add ebp, 0x90
leave
ret 8
Function at 0x40202b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x44
pop edi
push edi
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00411c00
mov dword [ebp - 0x5c], edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [esi + 0x14], 8
stosd dword es:[edi], eax
jb 0x40205d
mov esi, dword [esi]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x402068
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402085
inc eax
jmp 0x4020bb
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4020a8
mov dword [ebp + 8], 1
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4049c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4049c9
mov dword [ecx*4 + 0x41d120], eax
inc ecx
cmp ecx, 0x100
jb 0x4049c4
mov edx, 0x800
jmp 0x404a16
mov eax, dword [ecx*4 + 0x41cd20]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41d120]
inc ecx
mov dword [ecx*4 + 0x41d11c], eax
cmp ecx, edx
jb 0x4049f5
mov dword [0x41cfb0], 0x404a39
call fcn.004075ab
pop esi
test eax, eax
jne 0x404a38
mov dword [0x41cfb0], 0x404ad5
ret

Function at 0x407395
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4073ac
leave
ret
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x4073cf
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4073d4
inc edi
cmp edi, dword [ebp - 8]
jb 0x4073c6
mov eax, edi
sub eax, esi
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 8]
jae 0x4074cc
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x40742b
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x4073ff
cmp cl, 0xff
jne 0x407456
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x14], 0
je 0x407464
lea ebx, [esi + eax]
add ebx, dword [ebp + 0xc]
jmp 0x40746b
dec ecx
shl edx, cl
and edx, 7
je 0x4073f0
movzx ecx, byte [edx + 0x419280]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x419278], 0
mov cl, byte [ebx + 4]
je 0x407453
test cl, cl
je 0x407453
cmp cl, 0xff
jne 0x4073f0
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4073c1
sub esi, eax
sub esi, dword [ebp + 0xc]
mov ebx, esi
test edx, edx
je 0x40749f
movzx esi, byte [edx + 0x419280]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x40748a
cmp al, 0xff
jne 0x40749c
mov eax, dword [ebp - 0xc]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x40741d
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4073c1
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x40a120
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b374]
jne 0x40a12a
repz ret
jmp fcn.0040ddb3
Function at 0x41428c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040eb7c
and dword [ebp - 0x14], 0
cmp dword [0x41cf9c], 0
mov dword [ebp - 0x18], eax
jne 0x41433f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4143e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4143e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41cf9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41cfa0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41cfa4], eax
call edi
push eax
call esi
mov dword [0x41cfac], eax
test eax, eax
je 0x41433f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41cfa8], eax
mov eax, dword [0x41cfa8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414398
cmp dword [0x41cfac], ecx
je 0x414398
push eax
call esi
push dword [0x41cfac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414398
test ebx, ebx
je 0x414398
call edi
test eax, eax
je 0x41438f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41438f
test byte [ebp - 8], 1
jne 0x414398
or dword [ebp + 0x10], 0x200000
jmp 0x4143cb
mov eax, dword [0x41cfa0]
cmp eax, dword [ebp - 0x18]
je 0x4143cb
push eax
call esi
test eax, eax
je 0x4143cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4143cb
mov eax, dword [0x41cfa4]
cmp eax, dword [ebp - 0x18]
je 0x4143cb
push eax
call esi
test eax, eax
je 0x4143cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41cf9c]
call esi
test eax, eax
je 0x4143e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4143e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a120
leave
ret
Function at 0x401535
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0x460], 2
jne 0x40159d
lea ebx, [edi + 0x470]
lea eax, [edi + 0x46c]
push ebx
push eax
call fcn.0040f30a
mov esi, eax
test esi, esi
jns 0x401574
push str.Failed_to_create_implicit_elevated_connection_name_and_secret.
jmp 0x4016dd
push dword [edi + 0x4a0]
push dword [ebx]
push dword [edi + 0x46c]
push dword [edi + 0x2c]
push dword [ebp + 0xc]
call fcn.0040f71c
mov esi, eax
test esi, esi
jns 0x40159d
push str.Failed_to_launch_unelevated_process.
jmp 0x4016dd
push 1
lea eax, [edi + 0x46c]
push eax
call fcn.0040f0a7
mov esi, eax
test esi, esi
jns 0x4015bb
push str.Failed_to_connect_to_unelevated_process.
jmp 0x4016dd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0x464], eax
cmp eax, 0xffffffff
jne 0x401604
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x1c2
push str.engine.cpp
call fcn.00433f1c
push str.Failed_to_allocate_thread_local_storage_for_logging.
jmp 0x4016dd
push dword [edi + 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40164d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x1c7
push str.engine.cpp
call fcn.00433f1c
push str.Failed_to_set_elevated_pipe_into_thread_local_storage_for_logging.
jmp 0x4016dd
push edi
push dword [ebp + 8]
call fcn.00417a65
mov esi, eax
test esi, esi
jns 0x401663
push str.Failed_to_create_the_message_window.
jmp 0x4016dd
push 1
call fcn.00437059
push edi
push 0x401198
call fcn.00434d00
lea eax, [edi + 0x18]
push eax
lea eax, [edi + 0xf4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0xb8]
push eax
lea eax, [edi + 0xf8]
push eax
lea eax, [edi + 0x88]
push eax
lea eax, [edi + 0x2a0]
push eax
lea eax, [edi + 0x2a8]
push eax
lea eax, [edi + 0x290]
push eax
push dword [edi + 0x480]
push dword [edi + 0x47c]
push dword [edi + 0x464]
call fcn.004164d5
push 0
push 0
mov esi, eax
call fcn.00434d00
test esi, esi
jns 0x4016e5
push str.Failed_to_pump_messages_from_parent_process.
push esi
call fcn.004348ae
pop ecx
pop ecx
push 0
push 0
call fcn.00434d00
push edi
call fcn.00417a26
cmp dword [ebp - 8], 0
je 0x4016ff
call fcn.004165fe
cmp dword [ebp - 4], 0
je 0x401717
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4019a6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
push esi
push edi
mov edi, ebx
test eax, eax
je 0x401a69
cmp word [eax], bx
je 0x401a69
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x401a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x20f
push str.engine.cpp
call fcn.00433f1c
push str.Failed_to_get_command_line.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x401ac6
mov esi, ebx
cmp dword [ebp - 0x10], ebx
jle 0x401a69
mov ecx, dword [edi + esi*4]
movzx eax, word [ecx]
cmp eax, 0x2d
je 0x401a3b
cmp eax, 0x2f
jne 0x401a57
push 0xffffffffffffffff
push 0x440530
push 0xffffffffffffffff
lea eax, [ecx + 2]
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x401a63
push dword [edi + esi*4]
lea eax, [ebp - 4]
push eax
call fcn.0043510e
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x401a2b
push ebx
lea eax, [ebp - 8]
push eax
call fcn.00435a72
mov esi, eax
test esi, esi
jns 0x401a88
push str.Failed_to_get_current_process_path.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x401abb
cmp dword [ebp - 4], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov eax, 0x440580
cmova eax, dword [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.00435d29
mov esi, eax
test esi, esi
jns 0x401abb
push dword [ebp - 8]
push str.Failed_to_re_launch_bundle_process_after_RunOnce:__ls
push esi
call fcn.004348ae
add esp, 0xc
test edi, edi
je 0x401ac6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], ebx
je 0x401ad7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 4], ebx
je 0x401ae4
push dword [ebp - 4]
call fcn.0043bfd9
cmp dword [ebp - 8], ebx
je 0x401af1
push dword [ebp - 8]
call fcn.0043bfd9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405c09
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push eax
push dword [ebx + 0x14]
push dword [ebp + 0xc]
call fcn.00403b39
mov esi, eax
test esi, esi
jns 0x405c36
push str.Failed_to_format_variable_string.
jmp 0x405caa
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405c6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x405c68
cmp esi, 0x80070003
jne 0x405c74
xor esi, esi
jmp 0x405c74
test al, 0x10
push 1
pop eax
cmovne edi, eax
test esi, esi
jns 0x405c8d
push dword [ebp - 4]
push dword [ebx]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.004348ae
add esp, 0x10
jmp 0x405cb2
push 0
mov eax, edi
cdq
push edx
push eax
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.00404695
mov esi, eax
test esi, esi
jns 0x405cb2
push str.Failed_to_set_variable.
push esi
call fcn.004348ae
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x405cc0
push dword [ebp - 4]
call fcn.0043bfd9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405ccb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00403b39
mov esi, eax
test esi, esi
jns 0x405cf6
push str.Failed_to_format_variable_string.
jmp 0x405d39
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x405d48
test al, 0x10
je 0x405d43
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.004046d7
mov esi, eax
test esi, esi
jns 0x405d48
push str.Failed_to_set_directory_search_path_variable.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x405d88
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x405d71
cmp esi, 0x80070003
je 0x405d71
test esi, esi
jns 0x405d88
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.004348ae
add esp, 0x10
jmp 0x405d88
push esi
push dword [ebp - 4]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls__reason:_0x_x
push 2
call fcn.00434d87
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x405d96
push dword [ebp - 4]
call fcn.0043bfd9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push eax
push dword [ebx + 0x14]
push dword [ebp + 0xc]
call fcn.00403b39
mov esi, eax
test esi, esi
jns 0x405dd0
push str.Failed_to_format_variable_string.
jmp 0x405e68
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405e43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405e2d
cmp eax, 3
je 0x405e2d
test eax, eax
je 0x405e4b
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x27d
push str.search.cpp
call fcn.00433f1c
push dword [ebx + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.004348ae
add esp, 0xc
jmp 0x405e70
push dword [ebp - 4]
push dword [ebx]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00434d87
add esp, 0x10
jmp 0x405e4b
test al, 0x10
push 1
pop eax
cmove edi, eax
push 0
mov eax, edi
cdq
push edx
push eax
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.00404695
mov esi, eax
test esi, esi
jns 0x405e70
push str.Failed_to_set_variable.
push esi
call fcn.004348ae
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x405e7e
push dword [ebp - 4]
call fcn.0043bfd9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405e89
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00403b39
mov esi, eax
test esi, esi
jns 0x405eb4
push str.Failed_to_format_variable_string.
jmp 0x405f1e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405eff
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x405f28
cmp esi, 0x80070003
je 0x405f28
test esi, esi
jns 0x405f3e
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.004348ae
add esp, 0x10
jmp 0x405f3e
test al, 0x10
jne 0x405f28
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.004046d7
mov esi, eax
test esi, esi
jns 0x405ed6
push str.Failed_to_set_variable_to_file_search_path.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x405f3e
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00434d87
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x405f4c
push dword [ebp - 4]
call fcn.0043bfd9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8