joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031a0
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [ebp + 8]
push str.Py_Initialize
push edi
call esi
push str.PySys_SetArgv
push edi
mov dword [ebp + 8], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov ebx, eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x10], eax
call esi
xor ecx, ecx
cmp dword [ebp + 8], ecx
je 0x403317
cmp dword [ebp - 4], ecx
je 0x403317
cmp dword [ebp - 8], ecx
je 0x403317
cmp dword [ebp - 0xc], ecx
je 0x403317
cmp ebx, ecx
je 0x403317
cmp dword [ebp - 0x10], ecx
je 0x403317
cmp eax, ecx
je 0x403317
cmp dword [ebp - 0x14], ecx
je 0x403317
mov esi, dword [ebp + 0xc]
cmp esi, ecx
je 0x403313
cmp byte [esi], cl
je 0x403313
push ecx
push esi
call dword [sym.imp.MSVCR71.dll__open]
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
jne 0x403291
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push esi
add eax, 0x40
push str.Could_not_open_postinstall_script__s_n
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
push 3
jmp 0x403319
push str.Running_Script...
push 0x3ec
push dword [0x40d870]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call dword [ebp + 8]
push edi
call fcn.00402a61
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [ebp - 4]
push 3
lea eax, [ebp - 0x38]
pop esi
push eax
push ebx
mov dword [ebp + 8], esi
call dword [sym.imp.MSVCR71.dll__fstat]
add esp, 0x14
test eax, eax
jne 0x403303
mov edi, dword [ebp - 0x24]
lea eax, [edi + 5]
add eax, esi
and al, 0xfc
call fcn.00406770
mov esi, esp
push edi
push esi
push ebx
call dword [sym.imp.MSVCR71.dll__read]
add esp, 0xc
test eax, eax
jle 0x403303
add eax, esi
push esi
mov byte [eax], 0xa
and byte [eax + 1], 0
call dword [ebp - 8]
pop ecx
mov dword [ebp + 8], eax
call dword [ebp - 0xc]
push ebx
call dword [sym.imp.MSVCR71.dll__close]
mov eax, dword [ebp + 8]
pop ecx
jmp 0x40331a
push 2
jmp 0x403319
push 1
pop eax
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40347f
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1000
call fcn.00406770
push ebx
push ebp
push esi
push edi
push dword [0x40d988]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
lea eax, [esp + 0x14]
push ebp
mov ebx, 0x40c390
push eax
push ebx
mov esi, str.Setup
push str.title
push esi
call edi
lea eax, [esp + 0x10]
push 0x50
push eax
push 0x40c4e0
call fcn.004035d2
add esp, 0xc
lea eax, [esp + 0x10]
push dword [0x40d988]
push ebp
push eax
push ebx
push str.info
push esi
call edi
lea eax, [esp + 0x10]
push ebp
push eax
push 0x40c660
call fcn.004035d2
add esp, 0xc
push dword [0x40d988]
push 0x50
push 0x40d800
push ebx
push str.build_info
push esi
call edi
push dword [0x40d988]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x40d988]
mov dword [0x40c3a4], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x40d988]
mov dword [0x40d7f8], eax
push 0xa
push 0x40d850
push ebx
push str.target_version
push esi
call edi
push dword [0x40d988]
push 0x50
push 0x40d7a0
push ebx
push str.name
push str.metadata
call edi
push dword [0x40d988]
push 0x104
push 0x40c540
push ebx
push str.install_script
push esi
call edi
push 0x40c4e0
call fcn.00403657
push eax
mov dword [0x40d860], eax
call fcn.0040338a
pop ecx
pop ecx
push dword [0x40c4c4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x40d988]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x4035b9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x40d998]
test eax, eax
je 0x4035c9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
add esp, 0x1000
ret
Function at 0x403734
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
push edi
lea eax, [ebp - 0x15c]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push str._s.bat
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
lea eax, [ebp - 0x260]
push 0x40bf18
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, dword [sym.imp.MSVCR71.dll_fprintf]
push str.:Repeat_n
push eax
mov dword [ebp - 4], eax
call esi
lea eax, [ebp - 0x15c]
mov edi, str.del___s__n
push eax
push edi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x15c]
push eax
push str.if_exist___s__goto_Repeat_n
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x260]
push eax
push edi
push dword [ebp - 4]
call esi
add esp, 0x40
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_fclose]
push 0x44
lea eax, [ebp - 0x58]
pop esi
push esi
push ebx
push eax
call sub.MSVCR71.dll_memset
add esp, 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x2c], 1
push eax
lea eax, [ebp - 0x58]
push eax
push 0x40b5cc
push ebx
push esi
push ebx
push ebx
lea eax, [ebp - 0x260]
push ebx
push eax
push ebx
mov word [ebp - 0x28], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403853
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x10]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x10]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403858
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll__strdup]
mov esi, dword [sym.imp.MSVCR71.dll_strchr]
push 0x5b
push eax
mov dword [ebp - 8], eax
call esi
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403919
inc ebx
push 0x5d
push ebx
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x403919
and byte [edi], 0
inc edi
push 0xa
push edi
call esi
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
je 0x4038aa
and byte [eax], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push ebx
push dword [0x40b010]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4038dd
push esi
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40390f
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, esi
je 0x403906
cmp eax, 2
je 0x403906
push esi
push str.Could_not_delete_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40391e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll__strdup]
mov esi, dword [sym.imp.MSVCR71.dll_strchr]
push 0x5b
push eax
mov dword [ebp - 8], eax
call esi
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4039df
inc ebx
push 0x5d
push ebx
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4039df
and byte [edi], 0
inc edi
push 0x3d
push edi
call esi
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
je 0x4039df
and byte [eax], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push ebx
push dword [0x40b010]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4039a3
push esi
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4039d5
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
je 0x4039cc
cmp eax, 2
je 0x4039cc
push esi
push str.Could_not_delete_value
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039e4
Capabilities:
Delete file

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4039fb
pop esi
ret
mov eax, dword [sym.imp.MSVCR71.dll___mb_cur_max]
inc esi
cmp dword [eax], 1
jle 0x403a16
movsx eax, byte [esi]
push 8
push eax
call dword [sym.imp.MSVCR71.dll__isctype]
pop ecx
pop ecx
jmp 0x403a27
mov ecx, dword [sym.imp.MSVCR71.dll__pctype]
movsx eax, byte [esi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x4039fb
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x403a34
Capabilities:
Delete directory

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x403a4b
pop esi
ret
mov eax, dword [sym.imp.MSVCR71.dll___mb_cur_max]
inc esi
cmp dword [eax], 1
jle 0x403a66
movsx eax, byte [esi]
push 8
push eax
call dword [sym.imp.MSVCR71.dll__isctype]
pop ecx
pop ecx
jmp 0x403a77
mov ecx, dword [sym.imp.MSVCR71.dll__pctype]
movsx eax, byte [esi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x403a4b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
Function at 0x403a84
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x1014
call fcn.00406770
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_strchr]
push edi
push 0x5b
push dword [esp + 0x1028]
call esi
xor edi, edi
pop ecx
cmp eax, edi
pop ecx
je 0x403abc
inc eax
push 0x5d
push eax
mov dword [esp + 0x18], eax
call esi
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
jne 0x403ac3
xor eax, eax
jmp 0x403c3c
and byte [ebx], 0
inc ebx
push ebx
push 0x40c280
mov dword [esp + 0x14], ebx
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x403c39
push ebp
push edi
push edi
mov dword [esp + 0x24], str._remove
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCR71.dll__tempnam]
mov esi, dword [sym.imp.MSVCR71.dll_freopen]
mov ebp, eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov edi, 0x40b9d4
add eax, 0x40
push eax
push edi
push ebp
call esi
add esp, 0x14
test eax, eax
jne 0x403b2e
push eax
push eax
push str.freopen_stderr
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
push edi
push ebp
call esi
add esp, 0xc
test eax, eax
jne 0x403b56
push eax
push eax
push str.freopen_stdout
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403b9b
lea eax, [esp + 0x18]
push eax
push 2
push ebx
push esi
call fcn.004031a0
add esp, 0x10
cmp eax, 0x80000000
jne 0x403b94
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push str._Could_not_load_Python_
add eax, 0x40
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov edi, dword [sym.imp.MSVCR71.dll_fflush]
add eax, 0x40
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_fclose]
add eax, 0x40
push eax
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call esi
push 0x40b974
push ebp
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
lea eax, [esp + 0x3c]
push edi
push 0x1000
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
push edi
mov ebx, eax
call esi
push ebp
call dword [sym.imp.MSVCR71.dll_remove]
and byte [esp + ebx + 0x54], 0
add esp, 0x30
cmp byte [esp + 0x24], 0
pop ebp
je 0x403c29
push 0
lea eax, [esp + 0x24]
push str.uninstall_script
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0xc]
push 0x40c280
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
add esp, 0x1014
ret
Function at 0x404124
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404178
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 2
push esi
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call edi
cmp ebx, 0xffffffff
jne 0x40417c
xor eax, eax
jmp 0x404197
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40419c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea ecx, [edx + eax - 0x16]
push edi
mov edi, dword [ebp + 0x18]
sub eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sub eax, 0x22
lea esi, [eax + edx]
xor edx, edx
mov dword [edi], edx
mov edi, dword [ebp + 0x14]
mov dword [edi], edx
cmp dword [ecx], 0x6054b50
jne 0x4042c8
cmp dword [esi], 0x1234567b
je 0x4041f0
push str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
push edx
call fcn.00401a7b
pop ecx
pop ecx
jmp 0x4042ca
cmp eax, edx
jl 0x4042c8
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x40420c
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x40d990], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp + 0x10]
mov edi, esi
push 0x104
sub eax, dword [esi + 8]
mov dword [ecx], eax
sub edi, dword [esi + 4]
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4042c8
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4042b5
push ebx
push 0
lea eax, [ebp - 0x104]
push 0x40c220
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4042b5
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push ebx
push 2
call fcn.00401095
add esp, 0x1c
mov dword [ebp + 8], eax
test eax, eax
je 0x4042c8
push dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
push dword [ebp + 8]
call sub.MSVCR71.dll_strlen
lea edi, [edi + eax + 1]
push edi
call dword [sym.imp.MSVCR71.dll__strdup]
mov ecx, dword [ebp + 0x18]
add esp, 0x14
push dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 1
pop eax
jmp 0x4042ca
push str.Could_not_create_temporary_file
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401a7b
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4067ad
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x409f90
call fcn.00406a94
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4067ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4067ed
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406805
cmp eax, 0x20b
je 0x4067f2
mov dword [ebp - 0x1c], ebx
jmp 0x406819
cmp dword [ecx + 0x84], 0xe
jbe 0x4067ed
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406813
cmp dword [ecx + 0x74], 0xe
jbe 0x4067ed
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40d9a0], 0xffffffff
or dword [0x40d9a4], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40c3a0]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40c39c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40d99c], eax
call fcn.004069f0
call fcn.00406a90
cmp dword [0x40c260], ebx
jne 0x406879
push fcn.00406a90
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00406a7e
push 0x40b00c
push 0x40b008
call sub.MSVCR71.dll__initterm
push 0x406a34
call fcn.004069de
mov eax, dword [0x40c398]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40c394]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4068cd
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40b004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40694b
cmp al, bl
je 0x4068f7
cmp dword [ebp - 0x20], ebx
jne 0x40694b
mov al, byte [esi]
cmp al, bl
je 0x406907
cmp al, 0x20
ja 0x406907
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4068f7
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
jmp 0x4148df
cmp al, 0x22
jne 0x40695a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x40696d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4068e5
Function at 0x404b8f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x479630]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
mov eax, dword [ebp + 0x7b0]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x6c], bl
mov dword [esi], ebx
call fcn.00451377
mov dword [esi], eax
cmp eax, ebx
jne 0x404be4
push str.ERROR:_ShutdownEvent_handle_is_NULL
call fcn.00417007
pop ecx
mov dword [ebp - 0x60], 0xfffffffe
push dword [ebp - 0x64]
call fcn.00451377
pop ecx
test eax, eax
jne 0x404c04
push str.jusched_ERROR:_Could_not_open_Policy_key_for_reading
call fcn.00417007
mov dword [ebp - 0x60], 0xfffffffd
jmp 0x404c27
mov eax, dword [ebp - 0x64]
push dword [eax]
call fcn.00404b12
pop ecx
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x404c28
push str.jusched_main:_ERROR_creating_registry_watch_event_notifier
call fcn.00417007
mov dword [ebp - 0x60], 0xfffffffe
pop ecx
push str.SunJavaUpdateSchedulerMutex
push 1
push ebx
mov dword [edi], ebx
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov dword [edi], eax
cmp eax, ebx
jne 0x404c98
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x7ff
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], bl
call fcn.0043b8b0
add esp, 0xc
cmp dword [ebp - 0x60], 0xb7
lea eax, [ebp - 0x5c]
jne 0x404c78
push str.Error:_Scheduler_Mutex_already_exists_n
push eax
call dword [sym.imp.user32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x404c8a
push dword [ebp - 0x60]
push str.Error:_Error_creating_scheduler_mutex:__d_n
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call fcn.00417007
or dword [ebp - 0x60], 0xffffffff
pop ecx
cmp dword [ebp - 0x60], ebx
je 0x404cb7
push dword [edi]
push esi
call fcn.00404b61
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
pop ecx
pop ecx
lea esi, [ebp - 0x80]
mov dword [ebp - 0x7c], eax
call fcn.00414507
mov ecx, dword [ebp + 0x7a4]
mov eax, dword [ebp - 0x60]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a455
add ebp, 0x7a8
leave
ret
Function at 0x4065d8
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x479630]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
mov esi, dword [ebp + 0xb4]
push edi
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x47c184]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x38], eax
call fcn.00451377
mov dword [esi + 0x3c], eax
xor eax, eax
mov byte [ebp - 0x7c], bl
lea edi, [ebp - 0x7b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x68], ebx
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.SunJavaUpdateRecheckUpdateEvent
lea eax, [ebp - 0x7c]
push ebx
mov dword [ebp - 0x64], eax
push ebx
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0xc
call dword [sym.imp.kernel32.dll_CreateEventA]
push dword [esi + 0x20]
mov edi, dword [sym.imp.kernel32.dll_ResetEvent]
mov dword [esi + 0x40], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x38]
call edi
lea eax, [ebp - 0x80]
push eax
push ebx
push esi
push 0x406bb3
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
cmp eax, ebx
je 0x4066c0
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.user32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x54]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x5c]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x406712
lea eax, [ebp - 0x5c]
push eax
add esi, 0x158
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov ecx, dword [ebp + 0xa8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043a455
add ebp, 0xac
leave
ret 4