joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a65e
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call fcn.0041c030
pop ecx
inc eax
push eax
mov eax, dword [esi + 4]
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi + eax*4 + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop esi
inc eax
ret 8

Function at 0x420685
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b5e8
cmp edx, dword [eax]
je 0x4206a7
add eax, 8
inc ecx
cmp eax, 0x42b678
jl 0x420698
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b5e8]
jne 0x4207d5
mov eax, dword [0x42e2e8]
cmp eax, 1
je 0x4207af
test eax, eax
jne 0x4206d8
cmp dword [0x42b224], 1
je 0x4207af
cmp edx, 0xfc
je 0x4207d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42070f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041bd30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c030
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x420752
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c030
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425330
push edi
call fcn.0041cc90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041bd30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041bd40
lea eax, [ebp - 0xa0]
push 0x425310
push eax
call fcn.0041bd40
push dword [esi + 0x42b5ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041bd40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004215e0
add esp, 0x2c
pop edi
jmp 0x4207d5
lea eax, [ebp + 8]
lea esi, [esi + 0x42b5ec]
push 0
push eax
push dword [esi]
call fcn.0041c030
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40905c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x409148
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00406a2c
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x409160
call fcn.0040890c
push 0
mov eax, dword [ebp - 4]
call fcn.00403438
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x409116
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40907c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408704
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00406e04
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.004086d4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x40459c
call fcn.00405838
call fcn.00402eb4
jmp 0x40907c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40914f
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x409170
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409224
jmp 0x409219
cmp dword [esi + 0x10], 0x1000
jne 0x409205
test byte [esi + 0x15], 1
jne 0x409205
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4091c4
cmp eax, 2
je 0x4091c4
cmp eax, 0x10
je 0x4091c4
cmp eax, 0x20
jne 0x4091d9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4091d9
mov bl, 1
xor ebp, ebp
jmp 0x4091ea
mov eax, dword [esi]
add eax, ebp
call fcn.00409168
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jl 0x4091dd
test bl, bl
je 0x409205
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409224
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40919c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push section.DATA
call sub.KERNEL32.dll_GetCommandLineA
cmp byte [eax], 0
je 0x40101c
cmp word [eax - 2], 0x2022
jne 0x401019
jmp 0x40101c
inc eax
jmp 0x40100a
mov edi, eax
mov eax, 0x406004
push 0x4020c4
push 0x4020d4
push 0
push 0
push 4
push 0
push 0
push 0
push edi
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x401181
mov esi, section..RPPDATA
mov eax, dword [esi]
mov dword [0x402128], eax
add esi, 0x40
cmp dword [esi - 4], 0
je 0x4010f0
mov edi, dword [esi]
add esi, 4
test edi, edi
je 0x401153
cmp edi, 0x63732172
je 0x4010f0
movzx ebx, word [esi]
mov ecx, edi
lea edi, [esi + 2]
mov dword [0x402124], 0
add dword [0x402124], 1
push eax
mov eax, dword [0x402128]
cmp dword [0x402124], eax
pop eax
je 0x40117a
pushal
push 0
push ebx
push 0x40212c
push ecx
push dword [0x4020c4]
call sub.KERNEL32.dll_ReadProcessMemory
popal
pushal
cld
mov esi, 0x40212c
mov ecx, ebx
repe cmpsb byte [esi], byte es:[edi]
popal
jne 0x401088
add edi, ebx
pushal
call fcn.0040110c
push 0
push ebx
push edi
push ecx
push dword [0x4020c4]
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x401188
popal
add edi, ebx
mov esi, edi
jmp 0x401061
pushal
push dword [0x4020c8]
call sub.KERNEL32.dll_ResumeThread
popal
mov dword [0x402120], 0
jmp 0x401061
push dword [0x4020c4]
call sub.KERNEL32.dll_CloseHandle
push dword [0x4020c8]
call sub.KERNEL32.dll_CloseHandle
push 0x40213c
call sub.KERNEL32.dll_ExitProcess
mov eax, 0x402097
jmp 0x40118d
mov eax, 0x402075
jmp 0x40118d
mov eax, 0x402030
jmp 0x40118d
mov eax, 0x402059
push 0
push 0x402027
push eax
push 0
call sub.USER32.dll_MessageBoxA
push dword [0x4020c8]
call sub.KERNEL32.dll_ResumeThread
jmp 0x401153

Function at 0x40110c
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp dword [0x402120], 0
jne 0x401122
pushal
push dword [0x4020c8]
call sub.KERNEL32.dll_SuspendThread
popal
pushal
push 0x40211c
push 4
push ebx
push ecx
push dword [0x4020c4]
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
popal
je 0x401173
cmp dword [0x402120], 0
jne 0x401152
pushal
push dword [0x4020c8]
call sub.KERNEL32.dll_ResumeThread
popal
ret
Function at 0x401e40
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48eb73
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], 0x4a3b0c
mov dword [esi + 4], 1
lea edi, [esi + 0xc]
push 8
mov dword [edi], ebx
call fcn.0046e8ee
add esp, 4
cmp eax, ebx
je 0x401fa8
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x38], ebx
lea edi, [esi + 0x3c]
push 8
mov dword [edi], ebx
call fcn.0046e8ee
add esp, 4
cmp eax, ebx
je 0x401f84
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 4
mov dword [esi + 0x6c], ebx
mov edx, dword [0x4cfa0c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esi + 4], 1
jne 0x401f3d
push 0x1c
call fcn.0046e8ee
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x401f36
push eax
call fcn.00403560
mov dword [esi + 8], eax
jmp 0x401f6e
xor eax, eax
mov dword [esi + 8], eax
jmp 0x401f6e
push 0x10
call fcn.0046e8ee
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x401f69
push ebx
push ebx
push ebx
push ebx
mov dword [edi], 0x4a4cb4
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
jmp 0x401f6b
xor edi, edi
mov dword [esi + 8], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.0046ebd5
push 0x4b6314
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], 0x4a021c
call fcn.00471fd0
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.0046ebd5
push 0x4b6314
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x4a021c
call fcn.00471fd0
int3
Function at 0x403f40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492fa8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x4cfa18
mov byte [ebp - 0x10], bl
call fcn.00404450
mov dword [ebp - 4], ebx
mov eax, dword [0x4cf8f8]
cmp eax, ebx
jne 0x403fd2
push 0x18
call fcn.0046e8ee
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x403fcb
push ebx
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 1
push ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x403e20
push ebx
push ebx
mov dword [esi + 4], eax
call fcn.0046f2b2
mov dword [esi], eax
add esp, 0x18
mov eax, esi
jmp 0x403fcd
xor eax, eax
mov dword [0x4cf8f8], eax
mov dword [ebp - 4], 0xffffffff
mov esi, eax
cmp byte [ebp - 0x10], bl
je 0x404013
mov eax, dword [ebp - 0x14]
mov ecx, 0x80000000
mov edx, eax
lock xadd dword [edx], ecx
test ecx, 0x40000000
jne 0x404013
cmp ecx, 0x80000000
jle 0x404013
mov ecx, eax
lock bts dword [ecx], 0x1e
jb 0x404013
call fcn.00406100
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fb50
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0046ec81
mov dword [ebp - 4], 0
mov dword [esi], 0x4a3228
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00406200
mov dword [esi], 0x4a4dbc
mov dword [ebp - 4], 1
mov dword [esi + 0x30], 0x4a30e4
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x4048b2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], 0x4a4d30
mov dword [esi + 0x30], 0x4a4d3c
mov eax, esi
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 0x404e00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490268
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.0046ec81
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], 0x4a3228
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00406200
mov dword [esi + 0x30], 0x4a30e4
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], 0x4a4d30
mov dword [esi + 0x30], 0x4a4d3c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4052c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fae8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0046ec81
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], 0x4a3228
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00406200
mov dword [esi + 0x30], 0x4a30e4
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], 0x4a3254
mov dword [esi + 0x30], 0x4a324c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4058e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f9f0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0046ec81
mov dword [ebp - 4], 0
mov dword [esi], 0x4a3228
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00406200
mov dword [esi], 0x4a3240
mov dword [ebp - 4], 1
mov dword [esi + 0x30], 0x4a30e4
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x405972
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], 0x4a3254
mov dword [esi + 0x30], 0x4a324c
mov eax, esi
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 0x406d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492f46
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
lea edi, [esi + 4]
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004015d0
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x14], ebx
push edi
mov ebx, 0x4a5630
mov edi, 0x4a5640
mov ecx, 0x80000002
call fcn.00416ae0
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov esi, 0x28
lea edi, [ebp + 0xc]
call fcn.00409460
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x406e2c
test al, 0x10
jne 0x406e2c
lea eax, [esi - 0x27]
jmp 0x406e2e
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 0x25
lea edi, [ebp + 0xc]
call fcn.00409460
mov eax, dword [eax]
push eax
call ebx
cmp eax, 0xffffffff
je 0x406e73
test al, 0x10
jne 0x406e73
lea eax, [esi - 0x24]
jmp 0x406e75
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00406ec0
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407320
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push edi
push 0x4a4fa8
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call edi
cmp eax, 0xb7
je 0x40735e
push 0x4a5000
push 0
push 0
call esi
mov ebx, eax
call edi
cmp eax, 0xb7
jne 0x4073d9
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpSysLanguage___serialization_boost__CAAAVCFpSysLanguage__XZ_51], 1
jne 0x407389
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpSysLanguage___serialization_boost__CAAAVCFpSysLanguage__XZ_51], 1
push 0x49c020
mov byte [sym.Install.exe__t__1__get_instance___singleton_VCFpSysLanguage___serialization_boost__CAAAVCFpSysLanguage__XZ_4V__singleton_wrapp], 0
mov byte [0x4d0016], 0
call fcn.0046e898
add esp, 4
mov esi, sym.Install.exe__t__1__get_instance___singleton_VCFpSysLanguage___serialization_boost__CAAAVCFpSysLanguage__XZ_4V__singleton_wrapp
call fcn.00412470
test al, al
je 0x4073b7
mov edi, dword [ebp + 8]
mov eax, 0x4cfa60
call fcn.00404f50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x1d
push 0x4a500c
call fcn.00401b40
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x4073f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4914e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x4a5678
mov edi, 0x4a5640
mov ecx, 0x80000002
mov dword [ebp - 4], 0
call fcn.00416ae0
lea ecx, [ebp - 0x14]
push 0x4cfa6c
push ecx
lea ebx, [ebp - 0x10]
call fcn.004078b0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x407479
test al, 0x10
jne 0x407479
lea esi, [ebx + 2]
jmp 0x40747b
xor esi, esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407499
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x407530
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpSysLanguage___serialization_boost__CAAAVCFpSysLanguage__XZ_51], 1
jne 0x4074cc
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpSysLanguage___serialization_boost__CAAAVCFpSysLanguage__XZ_51], 1
push 0x49c020
mov byte [sym.Install.exe__t__1__get_instance___singleton_VCFpSysLanguage___serialization_boost__CAAAVCFpSysLanguage__XZ_4V__singleton_wrapp], 0
mov byte [0x4d0016], 0
call fcn.0046e898
add esp, 4
mov esi, sym.Install.exe__t__1__get_instance___singleton_VCFpSysLanguage___serialization_boost__CAAAVCFpSysLanguage__XZ_4V__singleton_wrapp
call fcn.00412470
test al, al
je 0x4074e9
mov edi, dword [ebp + 8]
mov eax, 0x4cfa64
call fcn.00404f50
jmp 0x4074f8
mov ecx, dword [ebp + 8]
push 0x1f
push 0x4a5048
call fcn.00401b40
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x407517
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40754f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4