joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406bc0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x421034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push 0
push eax
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x406c9c
mov eax, dword [ebp - 0x24]
cmp eax, 1
jne 0x406c18
mov ecx, str.SERVICE_STOPPED
jmp 0x406c64
cmp eax, 2
jne 0x406c24
mov ecx, str.SERVICE_START_PENDING
jmp 0x406c64
cmp eax, 3
jne 0x406c30
mov ecx, str.SERVICE_STOP_PENDING
jmp 0x406c64
cmp eax, 4
jne 0x406c3c
mov ecx, str.SERVICE_RUNNING
jmp 0x406c64
cmp eax, 5
jne 0x406c48
mov ecx, str.SERVICE_CONTINUE_PENDING
jmp 0x406c64
cmp eax, 6
jne 0x406c54
mov ecx, str.SERVICE_PAUSE_PENDING
jmp 0x406c64
cmp eax, 7
mov ecx, str.SERVICE_PAUSED
mov edx, str.UNKNOWN_SERVICE_STATE
cmovne ecx, edx
push ecx
push eax
push str.QueryServiceStatus:0x_x__s_
push 1
push 0xf8
push 0x4191a0
push 0x419164
call fcn.00409320
add esp, 0x1c
cmp dword [ebp - 0x24], 4
jne 0x406cc1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413de2
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:QueryServiceStatusEx_fail_0x_x
push 1
push 0x100
push 0x41920c
push str.CServiceObj::ServiceIsRunning
call fcn.00408f90
add esp, 0x18
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00413de2
mov esp, ebp
pop ebp
ret 4
Function at 0x406ce0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414e88
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x421034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str._DoInstall__begin...
push 1
push 0x107
push 0x419268
push 0x41928c
mov dword [ebp - 4], 1
call fcn.00408f90
add esp, 0x14
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push 0xf01ff
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
test eax, eax
jne 0x406e1e
call edi
cmp eax, 0x424
jne 0x406e03
push 0x4192a4
push 1
push 0x10d
push 0x4192d0
push 0x4192f4
call fcn.00408f90
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
lea eax, [ebp + 0x20]
push eax
call fcn.00401580
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00401580
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004069a0
mov dword [esi + 4], eax
test eax, eax
jne 0x406e1e
push 0x41930c
push 1
push 0x111
push 0x419328
push 0x41934c
call fcn.00408f90
add esp, 0x14
jmp 0x406ea0
call edi
push eax
push 0x419388
push 1
push 0x117
push 0x419364
push 0x4193d0
jmp 0x406e98
push dword [esi + 4]
call fcn.00406bc0
test al, al
je 0x406e4c
push str.Check_Service_already_running_
push 1
push 0x11f
push 0x419408
push 0x41942c
call fcn.00408f90
add esp, 0x14
mov bl, 1
jmp 0x406ea2
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x406e7f
push 0x419444
push 1
push 0x125
push 0x41945c
push 0x419480
call fcn.00408f90
add esp, 0x14
mov bl, 1
jmp 0x406ea2
call edi
push eax
push 0x419498
push 1
push 0x12a
push 0x4194b0
push str.CServiceObj::DoInstall
call fcn.00408f90
add esp, 0x18
xor bl, bl
cmp dword [ebp + 0x1c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x406eb6
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x406ed8
push dword [ebp + 0x20]
call esi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x406ef0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x421034]
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, ecx
push str.DoUninstall...
push 1
push 0x132
push 0x4194fc
push 0x419520
mov dword [ebp - 4], 0
call fcn.00408f90
add esp, 0x14
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push 0xf01ff
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [edi + 4], eax
test eax, eax
jne 0x406fb4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x406f96
push str.WARN:The_specified_service_does_not_exist_as_an_installed_service.
push 1
push 0x138
push 0x41953c
push 0x4195a4
call fcn.00408f90
add esp, 0x14
mov bl, 1
jmp 0x40706a
call esi
push eax
push str.ERR:OpenService_fail_0x_x_n
push 1
push 0x13b
push 0x4195dc
push 0x419600
jmp 0x407060
push eax
call fcn.00406bc0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x407018
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x406ff7
push str.SERVICE_CONTROL_STOP_SUCCESS
push 1
push 0x145
push 0x41963c
push 0x419660
call fcn.00408f90
add esp, 0x14
jmp 0x407018
call esi
push eax
push str.ERR:ControlService_fail_0x_x_n
push 1
push 0x149
push 0x41969c
push 0x4196c0
call fcn.00408f90
add esp, 0x18
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x407047
push str.DeleteService__SUCCESS
push 1
push 0x14e
push 0x4196f4
push 0x419718
call fcn.00408f90
add esp, 0x14
mov bl, 1
jmp 0x40706a
call esi
push eax
push str.ERR:DeleteService_fail_0x_x
push 1
push 0x153
push 0x419750
push str.CServiceObj::DoUninstall
call fcn.00408f90
add esp, 0x18
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x40707c
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
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.00413de2
mov esp, ebp
pop ebp
ret 0x18
Function at 0x407280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 8
jb 0x407291
mov eax, dword [ebx]
jmp 0x407293
mov eax, ebx
push 0x407490
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov dword [ebx + 0x34], eax
test eax, eax
jne 0x4072cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SVC___ERR:RegisterServiceCtrlHandler_fail__0x_x_n
push 1
push 0x3d
push 0x419e74
push 0x419e9c
call fcn.00408f90
add esp, 0x18
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push str._SVC___initial_status_to_SERVICE_START_PENDING...
push 1
push 0x46
push 0x419ef4
lea edi, [ebx + 0x18]
mov dword [ebx + 0x28], 0
mov dword [edi], 0x10
push 0x419f1c
call fcn.00408f90
mov eax, dword [0x42104c]
add esp, 0x14
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov dword [ebx + 0x2c], eax
inc eax
mov dword [ebx + 0x1c], 2
push edi
push dword [ebx + 0x34]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0xbb8
mov dword [ebx + 0x20], 0
mov dword [0x42104c], eax
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push ebx
push 0x407420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp - 4]
mov dword [ebx + 0x38], eax
push str._SVC___Success_create_work_thread_:__d
push 1
push 0x4e
push 0x419f68
push 0x419f90
call fcn.00408f90
push str._SVC___initialization_is_complete__set_status_SERVICE_RUNNING
push 1
push 0x51
push 0x419ff4
push 0x41a01c
call fcn.00408f90
add esp, 0x2c
mov dword [ebx + 0x1c], 4
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], 1
push edi
push dword [ebx + 0x34]
mov dword [ebx + 0x2c], 0
call esi
push str._SVC___Perform_work_until_service_stops...
push 1
push 0x55
push 0x41a06c
push 0x41a094
call fcn.00408f90
add esp, 0x14
push 0xffffffffffffffff
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str._SVC___Work_thread_has_exit__set_status_SERVICE_STOPPED
push 1
push 0x58
push 0x41a0f0
push str.CServiceTemplate::OnMainCallback
call fcn.00408f90
add esp, 0x14
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], 1
push edi
push dword [ebx + 0x34]
mov dword [ebx + 0x2c], 0
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4074d0
Capabilities:
Terminate thread

Disassembly:
push esi
push str._SVC__handle_SERVICE_CONTROL_STOP...
push 1
push 0x81
push 0x41a310
push 0x41a338
mov esi, ecx
call fcn.00408f90
add esp, 0x14
call fcn.004070a0
mov ecx, dword [0x42104c]
mov dword [eax + 0x2c], ecx
inc ecx
mov dword [0x42104c], ecx
lea ecx, [eax + 0x18]
push ecx
push dword [eax + 0x34]
mov dword [eax + 0x1c], 3
mov dword [eax + 0x24], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x407538
call eax
cmp dword [esi + 0x38], 0
je 0x40756e
push str.kill_work_thread...
push 1
push 0x8d
push str..._srcServiceUtilServiceTemplate.cpp
push str.CServiceTemplate::OnHandleServiceStop
call fcn.00408f90
add esp, 0x14
push 0xfffffffffffffffe
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x38], 0
push 0
push ecx
push dword [esi + 0x1c]
call fcn.004070a0
mov ecx, eax
call fcn.00407590
pop esi
ret

Function at 0x4078d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414f26
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x421034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x41
push str.C:Program_Files__x86_Windows_Assistant_AppMVConfiguration.ini
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], 0
call fcn.00402d30
push 0x3ff
lea eax, [ebp - 0x40f]
mov dword [ebp - 4], 0
push 0
push eax
mov byte [ebp - 0x410], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 0x10
cmovae eax, dword [ebp - 0x440]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0
push str.UniquePC
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x410], 0
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
jne 0x4079b4
xor ecx, ecx
jmp 0x4079c9
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.00402d30
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
lea eax, [ebp - 0x428]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00402c00
mov ecx, edi
call fcn.00404dc0
add esp, 0x18
cmp dword [ebp - 0x414], 0x10
jb 0x407a28
push dword [ebp - 0x428]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x42c], 0x10
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
jb 0x407a5b
push dword [ebp - 0x440]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413de2
mov esp, ebp
pop ebp
ret
Function at 0x408d70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4150db
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x421034]
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 + 0xc]
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.00409410
add esp, 8
cmp byte [0x421969], 0
mov dword [ebp - 4], 0
je 0x408e95
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi + 0x14], 0x10
jb 0x408e00
mov ecx, dword [esi]
jmp 0x408e02
mov ecx, esi
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push ecx
cmovae eax, dword [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x12c]
push str.__d._d._s._s___s_n
push eax
call fcn.00409a20
add esp, 0x1c
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x118], 0x10
jb 0x408e7a
push dword [ebp - 0x12c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov eax, dword [0x421970]
test eax, eax
jne 0x408ec5
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [0x421970], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x421970]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0040edf0
lea ecx, [ebp - 0x144]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x408eef
push eax
push eax
call fcn.004089c0
add esp, 8
push dword [0x421970]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040edf0
cmp dword [esi + 0x10], 0
mov edi, eax
je case.default.0x408f1d
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0xc]
call edx
mov ecx, dword [ebp + 8]
cmp ecx, eax
jg case.default.0x408f1d
cmp ecx, 3
ja case.default.0x408f1d
jmp dword [ecx*4 + 0x408f7c]
push esi
mov ecx, edi
call fcn.0040e8c0
jmp case.default.0x408f1d
push esi
mov ecx, edi
call fcn.0040eec0
jmp case.default.0x408f1d
push esi
mov ecx, edi
call fcn.0040f390
jmp case.default.0x408f1d
push esi
mov ecx, edi
call fcn.0040ec00
cmp dword [ebp - 0x130], 0x10
jb 0x408f61
push dword [ebp - 0x144]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
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.00413de2
mov esp, ebp
pop ebp
ret
Function at 0x409810
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4151e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x421034]
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
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.0040a390
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x4099ec
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00401580
call fcn.00409c50
add esp, 0x18
test al, al
je 0x40988f
mov bl, 1
jmp 0x4099ee
call fcn.00409fc0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404550
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x4098dc
cmp dword [ebp + 0x1c], 8
jb 0x4098bf
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.004028c0
cmp dword [ebp - 0x14], 8
jb 0x4098ed
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.00409e60
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x40999d
cmp ecx, esi
jbe 0x4099e1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x409994
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.004037d0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00401580
call fcn.00409c50
add esp, 0x18
test al, al
jne 0x40997c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x409991
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x409917
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call edi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00401580
call fcn.00409c50
add esp, 0x18
test al, al
je 0x4099ec
mov bl, 1
jmp 0x4099ee
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x4099ff
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
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.00413de2
mov esp, ebp
pop ebp
ret
Function at 0x409c50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415278
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x421034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.00409e60
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x409cae
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411410
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415e49
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x421034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00402c00
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402c00
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402c00
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.00413c90
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.00413a10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4134f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x421a64]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x413544
push esi
push 0x10
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x41351a
mov ecx, eax
call fcn.00412cb0
mov esi, eax
jmp 0x41351c
xor esi, esi
push dword [0x421a64]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413534
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x421a64]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x669ab2
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub bl, cl
bts dx, sp
jp 0x669abe
mov eax, dword [esp]
not dl
mov dh, byte [esp]
jmp 0x669aff
mov dx, word [esp + 1]
mov ax, si
rdtsc
jmp 0x669a9c
mov eax, dword [esp]
jmp 0x669afa
dec al
jno 0x669ae4
dec al
pushal
pushal
pushal
lea esp, [esp + 0x60]
jmp 0x669b03
dec al
pushal
jmp 0x669b19
not dl
mov dh, byte [esp]
mov dl, bl
jmp 0x669ac3
mov eax, 0xd0b26115
mov ax, sp
jmp 0x669b21
pushal
pushal
lea esp, [esp + 0x60]
jmp 0x669b03
neg dl
mov eax, dword [esp]
pushal
mov word [esp + 0x18], sp
mov al, 5
jmp 0x669b61
mov eax, esp
neg eax
jne 0x669b4b
je 0x669b4b

Function at 0x669b37
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov eax, 0x8d82bad1
btc ax, di
lea eax, [esp + eax]
xchg dword [esp], edx
call fcn.006699ee
ror dl, 0
push dx
jmp 0x669b69
mov ax, 0x4ceb
lea eax, reloc.mscoree.dll__CorExeMain
push word [esp + 1]
jge 0x669c79
sub esp, 0x1f
lea esp, [esp + 3]
jmp 0x669bcd
jmp 0x669c3a
mov eax, 0x6da1810b
lea esp, [esp + 0x40]
xor dl, 0x1d
mov ax, si
jmp 0x669bfd
lea esp, [esp + 3]
ror dl, 0
bsf ax, di
js 0x669ba0
bswap eax
mov ax, 0xc3db
mov ax, 0x2e24
mov eax, 0x6da1810b
jmp 0x669baa
mov ax, word [esp]
jmp 0x669c13
mov al, cl
mov ax, word [esp]
bts ax, cx
jge 0x669be7
mov ax, word [esp]
jmp 0x669c5f
sub esp, 0x11
pop eax
dec ax
lea esp, [esp + 1]
jmp 0x669c49
lea esp, [esp + 1]
jmp 0x669c49
bswap eax
mov ax, 0xc3db
mov ax, 0x2e24
jmp 0x669ba5
lea esp, [esp + 0xc]
inc dl
push ebx
sub esp, 0xb
jne 0x669c97
je 0x669c99
test eax, 0x33c0a131
div dword [eax + reloc.mscoree.dll__CorExeMain]
sub esp, 0x11
pop eax
dec ax
jmp 0x669c23
sub esp, 0x1f
jmp 0x669bc9
pop word [esp + 5]
mov ax, cx
xor eax, edx
lea esp, [esp + 7]
mov eax, esi
jmp 0x669eaa
jmp 0x669c81
pop word [esp + 5]
mov ax, cx
xor eax, edx
jmp 0x669ca9
lea esp, [esp + 7]
mov eax, esi
jmp 0x669eaa
bsf dx, bp
call fcn.00669cf2
xchg dl, al
bt ax, si
mov dx, 0x9a2c
call fcn.00669db4
aad 0x48
fidivr word [ecx - 0x149a01b8]
call 0x9a9357c7
jmp 0x669d4f
mov dl, 0x2f
jmp 0x669d3c
lea esp, [esp + 2]
sub cl, dl
jo 0x669dff
mov dl, 0x2f
bsf dx, bp
call 0x669cc9
rcr al, 4
rdtsc
lea edx, [edi*4]
jmp 0x66a084
shl edx, 2
lea eax, reloc.mscoree.dll__CorExeMain
mov ax, 0x2106
jmp 0x669fdf
rdtsc
mov edx, ebx
mov eax, edx
mov ax, word [esp]
mov eax, 0x6affc1f7
jmp 0x669ef5
lea eax, reloc.mscoree.dll__CorExeMain
not eax
call fcn.00669f91
mov eax, edi
cmc
jge 0x66a052
jl 0x66a052
fmul qword [ecx - 0x27]
mov eax, 0xea7efa4b
js 0x66a01c
ljmp 0xc80f:0x5d228b5f
lea eax, [ebx*4]
jmp 0x66a033
mov ax, 0xf3a8
btc ax, si
jns 0x66a006
lea eax, [ebx*4]
jmp 0x66a033
push edx
ret
mov esp, ebp
setb al
jmp 0x66a01c
xchg dx, ax
mov dx, 0xa9ff
sub bl, 0xb
mov ah, byte [esp]
mov ax, word [esp]
mov al, byte [esp]
jmp 0x669f0b

Function at 0x669d8e
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp]
neg eax
jmp 0x669dd6
lea esp, [esp + 2]
xor bl, 0xa6
cmc
jmp 0x669dde
ja 0x669d9a
lea esp, [esp + 2]
jmp 0x669d9e
js 0x669dc0
lea eax, [ecx*4]
xchg dx, ax
jmp 0x669e1c
mov al, 0x8c
push ebp
mov dx, si
jmp 0x669e06