joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1038ffe
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push eax
push dword [0x103f06c]
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x14]
push 0x1008fe8
lea eax, [ebp - 0x20c]
xor esi, esi
push 0x103
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x42c], esi
call fcn.01027f64
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1039242
push ebx
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x1008f0c
push dword [ebp - 0x41c]
xor edi, edi
inc edi
mov ebx, 0x208
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x420], ebx
call esi
test eax, eax
jne 0x103916b
cmp dword [ebp - 0x418], edi
je 0x10390da
cmp dword [ebp - 0x418], 2
jne 0x103916b
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10390e3
sub eax, edx
sar eax, 1
cmp eax, 5
jbe 0x103916b
cmp dword [ebp - 0x418], 2
mov edi, 0x104
jne 0x103913d
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1039234
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01027ea2
test eax, eax
jl 0x1039234
push 1
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0103c444
test eax, eax
jl 0x103916b
lea eax, [ebp - 0x414]
push eax
call fcn.0102e8b9
test eax, eax
je 0x1039234
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x418]
push eax
xor ebx, ebx
push ebx
push 0x1006474
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], edi
call esi
test eax, eax
je 0x10391a3
push 0x1008fe4
jmp 0x10391ba
cmp dword [ebp - 0x418], 2
je 0x10391c6
cmp dword [ebp - 0x418], 1
je 0x10391c6
push 0x1008fe0
push edi
push dword [ebp - 0x424]
call fcn.01027ea2
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x418]
push eax
push ebx
push ebx
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], edi
call esi
test eax, eax
jne 0x1039216
cmp dword [ebp - 0x418], 1
jne 0x1039216
mov eax, dword [ebp - 0x428]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1039203
sub eax, edx
sar eax, 1
cmp eax, 2
jae 0x103922a
shr edi, 1
push 0x1002720
dec edi
push edi
push dword [ebp - 0x428]
call fcn.01027e68
mov dword [ebp - 0x42c], 1
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x42c]
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret 0x14
Function at 0x103bdc8
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push esi
mov dword [ebp - 0x21c], eax
mov esi, 0x80004005
test eax, eax
jne 0x103bdff
lea eax, [esi - 2]
jmp 0x103bf12
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x1005470
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103bf10
push ebx
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], 1
cmp ebx, esi
jbe 0x103be45
mov dword [ebp - 0x218], esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x100c13c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103bead
cmp dword [ebp - 0x214], 1
jne 0x103bead
lea eax, [ebp - 0x20c]
push eax
call fcn.0102fe6a
test eax, eax
je 0x103be8e
xor esi, esi
jmp 0x103bec0
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102fe6a
test eax, eax
jne 0x103be8a
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103bb43
mov esi, eax
test esi, esi
jne 0x103bf03
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103bec9
sub eax, edx
sar eax, 1
mov ecx, ebx
shr ecx, 1
inc eax
cmp ecx, eax
jbe 0x103bef5
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x21c]
call fcn.01027e68
jmp 0x103bf03
mov eax, 0x8007007a
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret 8
Function at 0x103bf26
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
push ebx
push esi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
push 0x23
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebx, eax
test ebx, ebx
jl 0x103bfba
and dword [ebp - 0x210], esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x103bf83
inc esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x103bfb6
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x103bfb6
push dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jne 0x103bfec
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x103bfe7
push 0x100c15c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
test eax, eax
jge 0x103bfec
mov ebx, 0x80070057
test ebx, ebx
jl 0x103c064
lea eax, [ebp - 0x20c]
push eax
call fcn.0102fe6a
test eax, eax
je 0x103c004
xor ebx, ebx
jmp 0x103c029
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102fe6a
test eax, eax
je 0x103c025
xor ebx, ebx
test ebx, ebx
jne 0x103c064
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103c032
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
shr ecx, 1
inc eax
cmp ecx, eax
jbe 0x103c05f
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
call fcn.01027e68
jmp 0x103c064
mov ebx, 0x8007007a
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 8
Function at 0x103cc2d
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0103c6aa
Function at 0x460957
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004537f8
and dword [ebp - 4], 0
cmp dword [0x491318], 0
mov ebx, eax
jne 0x460a08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x460ab9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47aac4
push edi
call esi
test eax, eax
je 0x460ab9
push eax
call fcn.00453786
mov dword [esp], 0x47aab4
push edi
mov dword [0x491318], eax
call esi
push eax
call fcn.00453786
mov dword [esp], 0x47aaa0
push edi
mov dword [0x49131c], eax
call esi
push eax
call fcn.00453786
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x491320], eax
call esi
push eax
call fcn.00453786
pop ecx
mov dword [0x491328], eax
test eax, eax
je 0x460a08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453786
pop ecx
mov dword [0x491324], eax
mov eax, dword [0x491324]
cmp eax, ebx
je 0x460a60
cmp dword [0x491328], ebx
je 0x460a60
push eax
call fcn.00453801
push dword [0x491328]
mov esi, eax
call fcn.00453801
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x460a60
test edi, edi
je 0x460a60
call esi
test eax, eax
je 0x460a57
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x460a57
test byte [ebp - 0xc], 1
jne 0x460a60
or dword [ebp + 0x10], 0x200000
jmp 0x460a99
mov eax, dword [0x49131c]
cmp eax, ebx
je 0x460a99
push eax
call fcn.00453801
pop ecx
test eax, eax
je 0x460a99
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x460a99
mov eax, dword [0x491320]
cmp eax, ebx
je 0x460a99
push eax
call fcn.00453801
pop ecx
test eax, eax
je 0x460a99
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x491318]
call fcn.00453801
pop ecx
test eax, eax
je 0x460ab9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x460abb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405899
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x571f84
call fcn.00545f00
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, eax
test edi, edi
je 0x40596f
cmp word [edi], ax
je 0x40596f
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4058eb
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0054defc
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040a1be
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0040583f
mov esi, eax
test esi, esi
jne 0x40596f
push 0x38
call fcn.00414996
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
and dword [ebp - 4], 0
test esi, esi
je 0x40594a
lea eax, [ebp - 0x218]
mov byte [esi], 1
push eax
lea ecx, [esi + 4]
call fcn.00402e40
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
and dword [esi + 0x1c], 0
call fcn.00403b70
mov byte [ebp - 4], 0
jmp 0x40594c
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x40596f
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x40]
call fcn.00407fbd
mov esi, dword [ebp - 0x21c]
mov eax, esi
call fcn.00545eaa
ret 4
Function at 0x4068e3
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x57229d
call fcn.00545f00
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
cmp dword [ebx + 0x2e4], esi
jle 0x4069c1
cmp eax, 0xffffffff
je 0x4069c1
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.00402e40
mov dword [ebp - 4], 1
lea edi, [ebx + 0x2d4]
push eax
mov ecx, edi
call fcn.00408326
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402d80
jmp 0x4069b8
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004089b1
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x406958
xor eax, eax
jmp 0x40695a
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.00402ea0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax]
mov ecx, esi
add eax, eax
push eax
call fcn.00402d20
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x406997
add esi, dword [ebp - 0x38]
mov dword [ebp - 0x30], esi
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
dec ecx
and ecx, dword [edi + 0xc]
mov ecx, dword [eax + ecx*4]
call fcn.00402d80
sub dword [edi + 0x10], 1
jne 0x4069b5
and dword [edi + 0xc], 0
jmp 0x4069b8
inc dword [edi + 0xc]
cmp dword [ebx + 0x2e4], 0
ja 0x406941
mov eax, esi
call fcn.00545eaa
ret 8
Function at 0x4072bd
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5ddf64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
xor esi, esi
mov ebx, ecx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x407345
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40733e
test dword [ebp - 0x408], 0xfffffffc
jbe 0x40733e
add ebx, 0xbc
push 0x104
push ebx
push dword [ebp + esi*4 - 0x404]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x408]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40731d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005456aa
mov esp, ebp
pop ebp
ret 4
Function at 0x407358
Capabilities:
Accept command line arguments

Disassembly:
push 0xc0
mov eax, 0x5723ca
call fcn.00545f00
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push str.Module_File_Name:
mov dword [ebp - 0xc8], eax
call fcn.00402e40
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push str.____Command_Line:
call fcn.00402e40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push str.____File_Version:
call fcn.00402e40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
push str.______Process_ID:
call fcn.00402e40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push str.________Built_on:
call fcn.00402e40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push str.___Log_File_Name:__
call fcn.00402e40
mov byte [ebp - 4], 5
lea edi, [ebx + 0xbc]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea ecx, [ebp - 0x58]
call fcn.00402d30
push 0x14
call fcn.00414996
pop ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40741d
push edi
mov ecx, eax
call fcn.00413810
mov esi, eax
jmp 0x40741f
xor esi, esi
mov byte [ebp - 4], 5
test esi, esi
je 0x40744a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x407438
push eax
jmp 0x40743d
push str._no_version_info_
call fcn.00402d30
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0xc4]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x407480
push dword [ebp - 0xa4]
push str.___ld_bytes_
push 0x104
push edi
call fcn.004042da
add esp, 0x10
lea ecx, [ebp - 0x58]
push edi
call fcn.00402d30
lea ecx, [ebp - 0x58]
call fcn.00402d20
mov esi, dword [ebp - 0xc8]
mov edi, 0x40000000
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00402d30
lea ecx, [ebp - 0xa0]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
lea ecx, [ebp - 0x40]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x54]
push eax
lea ecx, [ebp - 0x88]
call fcn.004037a0
lea ecx, [ebp - 0x88]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.004037a0
lea ecx, [ebp - 0x70]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
mov ecx, esi
call fcn.0040a46b
push eax
lea ecx, [ebp - 0x28]
call fcn.00402d30
push 0x5bac08
lea ecx, [ebp - 0x28]
call fcn.00402d30
lea ecx, [ebp - 0x28]
call fcn.00402d20
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.004071ed
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00402d80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00402d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00402d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402d80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00402d80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402d80
call fcn.00545eaa
ret 4
Function at 0x4075b1
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x572408
call fcn.00545f00
mov edi, ecx
mov dword [ebp - 0x250], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4077b1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4075de
mov al, byte [eax]
jmp 0x4075e1
mov al, byte [esi + 0x18]
test al, al
je 0x4077b1
mov ecx, esi
call fcn.0040a46b
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.00403b70
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00403b70
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xbc
test eax, eax
je 0x407647
push edi
xor eax, eax
push eax
push eax
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00403000
push ebx
lea ecx, [ebp - 0x230]
jmp 0x407677
push ebx
push 0x104
push edi
call fcn.0054defc
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403000
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00403000
test dword [esi + 0x10], 0x20000
je 0x4076d7
push edi
push 0
lea ecx, [ebp - 0x230]
call fcn.00402d20
push eax
lea ecx, [ebp - 0x248]
call fcn.00402d20
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4076d7
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4076d7
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4076d7
lea eax, [ebp - 0x218]
add ecx, 4
push eax
call fcn.00403000
mov ecx, esi
call fcn.0040a46b
mov ebx, eax
push ebx
mov dword [ebp - 0x24c], ebx
call fcn.0054dae7
pop ecx
test eax, eax
je 0x407755
xor eax, eax
test dword [esi + 0x10], 0x10000
push eax
push 0x80
je 0x407706
push 2
jmp 0x407708
push 4
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407755
lea eax, [ebp - 0x254]
push eax
push edi
push 0x104
push 0
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x40774e
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40774e
add ecx, 4
push edi
call fcn.00403000
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x407783
mov edi, dword [ebp - 0x250]
mov ecx, edi
push esi
call fcn.00407358
test dword [esi + 0x10], 0x100000
je 0x407783
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.004072bd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40778f
mov byte [eax], 0
jmp 0x407793
mov byte [esi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402d80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00402d80
call fcn.00545eaa
ret 4
Function at 0x409037
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x5726cf
call fcn.00545f00
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00403b70
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x4090bf
lea ecx, [ebp - 0x28]
call fcn.00403b70
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.RegValues
call fcn.0040a39c
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00403930
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00402dc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00402d80
lea ecx, [ebp - 0x28]
call fcn.00402d20
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402d80
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409164
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00403930
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402d20
push eax
mov edi, 0x88
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x409150
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x40914e
test ebx, ebx
je 0x409149
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00405602
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
inc dword [eax]
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402d80
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402d80
mov eax, esi
call fcn.00545eaa
ret 4
Function at 0x4091ba
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x57273b
call fcn.00545f00
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00403b70
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x409242
lea ecx, [ebp - 0x28]
call fcn.00403b70
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.ExtMonitor
call fcn.0040a39c
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00403930
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00402dc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00402d80
lea ecx, [ebp - 0x28]
call fcn.00402d20
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402d80
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409321
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00403930
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402d20
push eax
push 0x48
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x40930d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x48
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 0xc], edi
test edi, edi
je 0x40930b
test ebx, ebx
je 0x4092f9
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 4
xor ebx, ebx
mov dword [edi + 4], ebx
lea ecx, [edi + 0x14]
mov dword [edi], vtable.NGLogging::CExtMonitorSettings.0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
call fcn.00403b70
mov byte [ebp - 4], 5
lea ecx, [edi + 0x2c]
call fcn.00403b70
mov byte [ebp - 4], 6
mov dword [edi + 0x44], ebx
mov byte [ebp - 4], 3
jmp 0x4092fb
xor ebx, ebx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
inc dword [ecx]
jmp 0x40930d
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402d80
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402d80
mov eax, esi
call fcn.00545eaa
ret 4