joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad91
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
or dword [esi + 0x1c], 0xffffffff
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
lea edi, [esi + 0x18]
push edi
mov ecx, esi
lea ebx, [eax + 0x88]
push ebx
call fcn.0040b2d9
push dword [edi]
mov ecx, esi
call fcn.0040af4a
lea eax, [esi + 0x20]
push 0x318
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [edi]
add esp, 0xc
cmp eax, 2
je 0x40ade5
cmp eax, 0xc
jne 0x40ae0e
lea eax, [esi + 0x20]
mov ecx, esi
push eax
push ebx
call fcn.0040b34a
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
jne 0x40ae0e
cmp dword [edi], 0xc
je 0x40ae0e
and byte [ebp - 1], 0
mov dword [esi + 0x44c], 0x3ea
jmp 0x40ae6c
push dword [ebp + 8]
mov ecx, esi
call fcn.0040b037
test al, al
mov byte [ebp - 1], al
jne 0x40ae41
push dword [ebp + 8]
mov ecx, esi
call fcn.0040afee
test al, al
jne 0x40ae6c
push dword [ebp + 8]
mov ecx, esi
call fcn.0040ad2f
test al, al
je 0x40ae6c
mov byte [ebp - 1], 1
jmp 0x40ae6c
push ebx
call fcn.0042d648
pop ecx
test al, al
push ebx
mov ecx, esi
je 0x40ae56
call fcn.0040c09a
jmp 0x40ae5b
call fcn.0040b3b9
mov ecx, esi
mov byte [ebp - 1], al
call fcn.0040b186
mov ecx, esi
call fcn.0040b1d9
cmp dword [esi + 0x1c], 0xffffffff
je 0x40af40
mov eax, dword [0x454704]
mov eax, dword [eax + 0x20]
cmp byte [eax + 0x41], 0
je 0x40aebe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
mov ecx, dword [0x454760]
push eax
push str.timecostcounter
push dword [esi + 0x1c]
call fcn.00410d4c
cmp eax, 0xffffffff
jne 0x40aebe
lea eax, [esi + 0x20]
push eax
push str._s_g_pCRuntimeTableShmSPD__IncreaseCounter_timecost_fail
push 0x7d1
push 0
call fcn.00426a9a
add esp, 0x10
cmp dword [esi + 0x1c], 0xffffffff
je 0x40af40
cmp dword [esi + 0x1ac], 0xffffffff
lea edi, [esi + 0x1ac]
je 0x40af40
mov eax, dword [ebp + 8]
xor ebx, ebx
push dword [eax + 0x84]
push ebx
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
push eax
call dword [sym.imp.MSVCRT.dll_difftime]
fild dword [edi]
pop ecx
pop ecx
fcompp
fnstsw ax
sahf
jae 0x40af40
lea eax, [esi + 0x20]
push eax
mov eax, dword [0x454704]
push str._s_finished_with_timeout
mov eax, dword [eax + 0x20]
push dword [eax + 0x9c]
push ebx
call fcn.00426a9a
mov eax, dword [esi + 0x33c]
add esp, 0x10
add eax, 0xe8
push eax
mov eax, dword [0x454704]
push str.LUW:_dump_s
mov eax, dword [eax + 0x20]
push dword [eax + 0x9c]
push ebx
call fcn.00426a9a
add esp, 0x10
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e793
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov dword [ebp - 0x120], ecx
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
pushfd
pushal
mov dword [ebp - 4], esp
mov eax, dword [ebp - 0x120]
cmp dword [eax + 0x8f34], 0
jne 0x40e7f0
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x8f2c], ecx
call fcn.0040e7d9

Function at 0x4131e2
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push ebx
xor ebx, ebx
push esi
cmp ecx, ebx
push edi
je 0x41322f
mov eax, dword [ecx + 0x238]
cmp eax, ebx
je 0x413254
lea esi, [ecx + 0x134]
inc eax
push esi
push eax
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
jne 0x413233
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CAsyncDaemon::SetShmReleaseFlag_CreateFileMapping_for_data__s_fail__GetLastError_d
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0x14
xor al, al
jmp 0x413256
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x41324d
push eax
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
ret 4

Function at 0x413b97
Capabilities:
Resume thread

Disassembly:
push dword [ecx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x41d15b
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push dword [esi + 4]
push str.KCBPAS__d_start
push 5
push ebx
call fcn.00426a9a
add esp, 0x10
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov dword [esi + 0xc], ebx
cmp byte [0x454780], bl
jne 0x41d1a9
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x41d19f
push eax
call edi
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x41d1a9
push eax
call edi
lea eax, [esi + 0x10]
push 0x10
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp byte [0x454780], bl
je 0x41d20d
push ebx
push 4
push ebx
push dword [0x454784]
push 0x438c48
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x41d1f6
push dword [esi + 4]
push str.AfxBeginThread_CWorkerThread__d_fail
push 0x7d2
push ebx
call fcn.00426a9a
add esp, 0x10
jmp 0x41d2d6
mov ecx, dword [esi + 4]
mov dword [eax + 0x6c], ecx
mov eax, dword [esi + 0xc]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x41d2d2
push dword [esi + 4]
lea eax, [ebp - 0xa8]
push str.kcbpas__d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x44], 0x44
push 0xfffffffffffffff6
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], bx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x12], bx
call edi
push 0xfffffffffffffff5
mov dword [ebp - 0xc], eax
call edi
push 0xfffffffffffffff4
mov dword [ebp - 8], eax
call edi
push dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push 0x4459bc
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x448c5c]
add esp, 0xc
lea ecx, [esi + 0x10]
or al, 8
push ecx
lea ecx, [ebp - 0x44]
push ecx
push ebx
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x10c]
push ebx
push eax
push str.kcbpas.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41d2d2
push dword [esi + 4]
push str.CreateProcess__d_fail
push 0x7d2
push ebx
call fcn.00426a9a
add esp, 0x10
mov byte [esi + 8], bl
mov byte [esi + 8], 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42068b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0x40
push esi
mov esi, 0x102
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
ja 0x4206be
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x42078a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], edi
je 0x420716
cmp dword [ebp + 8], edi
jbe 0x420785
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
sub eax, ebx
cmp eax, 0x40
jbe 0x4206eb
push 0x40
pop eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x420785
add ebx, 0x40
add edi, 0x100
cmp ebx, dword [ebp + 8]
jb 0x4206de
jmp 0x420785
xor edi, edi
cmp dword [ebp - 8], edi
jne 0x420728
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42072b
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
mov dword [ebp + 0x10], edi
jbe 0x420772
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub eax, edi
cmp eax, 0x40
jbe 0x420743
push 0x40
pop eax
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x420769
inc dword [ebp + 0x10]
add edi, 0x40
add ebx, 0x100
cmp edi, dword [ebp + 8]
jb 0x420736
jmp 0x420772
mov eax, dword [ebp + 0x10]
shl eax, 6
add dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jae 0x420785
cmp dword [ebp - 4], esi
je 0x420714
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 0x10

Function at 0x42078f
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.StartKCMMThread_start
xor ebx, ebx
push 0x64
mov esi, ecx
push ebx
call fcn.00426a9a
add esp, 0xc
push ebx
push 4
push ebx
push ebx
push 0x438d08
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [esi + 0xe8], eax
jne 0x4207da
push str.Create_CKCMMThread_failure
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0xc
mov byte [ebp - 1], bl
jmp 0x4207f0
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0xec], ecx
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 1], 1
push str.StartKCMMThread_end
push 0x64
push ebx
call fcn.00426a9a
mov al, byte [ebp - 1]
add esp, 0xc
pop esi
pop ebx
leave
ret
Function at 0x420843
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.StartMonitorThread_start
xor ebx, ebx
push 0x64
mov esi, ecx
push ebx
call fcn.00426a9a
add esp, 0xc
push ebx
push 4
push ebx
push ebx
push 0x4388f8
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [esi + 0xe0], eax
jne 0x42088e
push str.Create_CKCBPMonitor_failure
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0xc
mov byte [ebp - 1], bl
jmp 0x4208ad
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0xe4], ecx
mov dword [eax + 0x6c], esi
mov eax, dword [esi + 0xe0]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 1], 1
push str.StartMonitorThread_end
push 0x64
push ebx
call fcn.00426a9a
mov al, byte [ebp - 1]
add esp, 0xc
pop esi
pop ebx
leave
ret
Function at 0x420e9e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.StartReRequestThread_start
xor ebx, ebx
push 0x64
mov esi, ecx
push ebx
call fcn.00426a9a
add esp, 0xc
push ebx
push 4
push ebx
push ebx
push 0x439138
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [esi + 0xf0], eax
jne 0x420ee9
push str.Create_CReRequestThread_failure
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0xc
mov byte [ebp - 1], bl
jmp 0x420eff
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0xf4], ecx
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 1], 1
push str.StartReRequestThread__end
push 0x64
push ebx
call fcn.00426a9a
mov al, byte [ebp - 1]
add esp, 0xc
pop esi
pop ebx
leave
ret

Function at 0x420f52
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor ebx, ebx
push str.StartKCBPPerfMonAgent_start
push 0x64
push ebx
mov byte [ebp - 1], bl
call fcn.00426a9a
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0x18
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x54], ebx
push 0xfffffffffffffff6
mov dword [ebp - 0x4c], 0x44a65c
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x28], bx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x26], bx
call esi
push 0xfffffffffffffff5
mov dword [ebp - 0x20], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x1c], eax
call esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 8
push ebx
push ebx
push ebx
push ebx
push str.KCBPPerfMonAgent.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x420ffb
push str.CKCBPDaemon::StartKCBPPerfMonAgent_CreateProcess_fail
push 0x66
push ebx
call fcn.00426a9a
add esp, 0xc
jmp 0x42100f
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov byte [ebp - 1], 1
push str.StartKCBPPerfMonAgent_end
push 0x64
push ebx
call fcn.00426a9a
mov al, byte [ebp - 1]
add esp, 0xc
pop esi
pop ebx
leave
ret
Function at 0x421026
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
push ebx
push esi
push edi
xor ebx, ebx
push str.StartKCBPDaemonProcess_start
push 0x64
mov esi, ecx
push ebx
mov byte [ebp - 1], bl
call fcn.00426a9a
lea eax, [ebp - 0x15c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__getcwd]
lea eax, [ebp - 0x15c]
push str.KCBPDaemon
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x15c]
xor edi, edi
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x20
test eax, eax
jle 0x4210a4
cmp byte [ebp + edi - 0x15c], 0x5c
lea eax, [ebp + edi - 0x15c]
jne 0x421092
mov byte [eax], 0x2f
lea eax, [ebp - 0x15c]
inc edi
push eax
call sub.MSVCRT.dll_strlen
cmp edi, eax
pop ecx
jl 0x42107e
lea eax, [ebp - 0x15c]
push eax
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [esi + 0xf8], eax
jne 0x4210d4
push str.CKCBPDaemon::StartKCBPDaemonProcess_CreateSemaphore_return_NULL
push 0x66
push ebx
call fcn.00426a9a
add esp, 0xc
jmp 0x4211d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x421119
push str.CKCBPDaemon::StartKCBPDaemonProcess_sem_already_exist
push 0x66
push ebx
call fcn.00426a9a
add esp, 0xc
push ebx
push 1
push dword [esi + 0xf8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x2710
mov ecx, esi
call fcn.0042121d
push ebx
push dword [esi + 0xf8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x44], ebx
push 0xfffffffffffffff6
mov dword [ebp - 0x3c], 0x44a65c
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x18], bx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x16], bx
call esi
push 0xfffffffffffffff5
mov dword [ebp - 0x10], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x1c0]
push 0x4459bc
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push 8
push ebx
push ebx
lea eax, [ebp - 0x1c0]
push ebx
push eax
push str.KCBPDaemon.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4211c2
push str.CKCBPDaemon::StartKCBPDaemonProcess_CreateProcess_fail
jmp 0x4210c4
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x58]
call esi
mov byte [ebp - 1], 1
push str.StartKCBPDaemonProcess_end
push 0x64
push ebx
call fcn.00426a9a
mov al, byte [ebp - 1]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421e84
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.StartAsyncDaemon_start
xor ebx, ebx
push 0x64
mov esi, ecx
push ebx
call fcn.00426a9a
add esp, 0xc
push ebx
push 4
push ebx
push ebx
push 0x437ca8
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [esi + 0xfc], eax
jne 0x421ecf
push str.Create_CAsyncDaemon_thread_failure
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0xc
mov byte [ebp - 1], bl
jmp 0x421ee5
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x100], ecx
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 1], 1
push str.StartAsyncDaemon_end
push 0x64
push ebx
call fcn.00426a9a
mov al, byte [ebp - 1]
add esp, 0xc
pop esi
pop ebx
leave
ret

Function at 0x421f38
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.StartTimerThread_start
xor ebx, ebx
push 0x64
mov esi, ecx
push ebx
call fcn.00426a9a
add esp, 0xc
push ebx
push 4
push ebx
push ebx
push 0x4389b8
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [esi + 0x104], eax
jne 0x421f83
push str.Create_CKCBPTimerThread_failure
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0xc
mov byte [ebp - 1], bl
jmp 0x421f99
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x108], ecx
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 1], 1
push str.StartTimerThread_end
push 0x64
push ebx
call fcn.00426a9a
mov al, byte [ebp - 1]
add esp, 0xc
pop esi
pop ebx
leave
ret

Function at 0x421fec
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.StartIMDBSyncServer_start
xor ebx, ebx
push 0x64
mov esi, ecx
push ebx
call fcn.00426a9a
add esp, 0xc
push ebx
push 4
push ebx
push ebx
push 0x437f68
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [esi + 0x10c], eax
jne 0x422037
push str.Create_CIMDBSyncServer_failure
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0xc
mov byte [ebp - 1], bl
jmp 0x42204d
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x110], ecx
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 1], 1
push str.StartIMDBSyncServer_end
push 0x64
push ebx
call fcn.00426a9a
mov al, byte [ebp - 1]
add esp, 0xc
pop esi
pop ebx
leave
ret

Function at 0x422b36
Capabilities:
Resume thread

Disassembly:
push dword [ecx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x423727
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__access]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x423808
push 0x100
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0xff
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x104]
push eax
call fcn.004244eb
lea eax, [ebp - 0x104]
push 0x2f
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x24
cmp eax, ebx
je 0x4237cc
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4237cc
lea eax, [ebp - 0x104]
push ebx
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x4237cc
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x104]
push eax
call fcn.00423727
test eax, eax
jne 0x423803
push edi
call dword [sym.imp.MSVCRT.dll__mkdir]
cmp eax, 0xffffffff
pop ecx
jne 0x423808
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
push dword [eax]
call dword [sym.imp.MSVCRT.dll_strerror]
pop ecx
push eax
call esi
push dword [eax]
push edi
push str.create_log_path_fail__s__d__s
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0x18
or eax, 0xffffffff
jmp 0x42380a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x425324
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], esi
push 0xfffffffffffffff6
mov dword [ebp - 0x48], 0x441ba4
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x24], 0xa
mov dword [ebp - 0x20], esi
mov word [ebp - 0x22], si
call edi
push 0xfffffffffffffff5
mov dword [ebp - 0x1c], eax
call edi
push 0xfffffffffffffff4
mov dword [ebp - 0x18], eax
call edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 8]
push esi
push esi
push esi
push esi
push esi
lea ecx, [eax + 0x114]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4253cb
cmp dword [ebp - 0xc], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4253c1
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], esi
je 0x4253cb
push dword [ebp - 0x10]
call edi
pop edi
xor eax, eax
pop esi
leave
ret 4
Function at 0x4267ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x4267d2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x4267d6
xor al, al
jmp 0x42681e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x42681b
cmp dword [ebp + 0x10], ebx
jne 0x4267f9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x426819
mov eax, dword [ebp + 0x14]
push edi
push ebx
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, eax
jl 0x42681b
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov bl, 1
mov al, bl
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42bb41
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42bd2e
cmp dword [ebp + 0xc], edi
je 0x42bd2e
cmp dword [ebp + 0x10], edi
je 0x42bd2e
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x42bd2e
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x42bd2a
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
cmp eax, 0x20
pop ecx
ja 0x42bd2a
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x42bd26
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
cmp eax, 0x20
pop ecx
ja 0x42bd26
and byte [esi], 0
push 0x4486c4
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
mov dword [ebp + 8], esi
je 0x42bd2e
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push edi
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x42bbf8
push 2
jmp 0x42bc0b
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x42bc1a
push 3
pop esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
jmp 0x42bd21
push 0
push 0
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
push 1
push esi
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
and byte [edi + esi], 0
push 0x4486c0
push edi
call fcn.0042ad05
push edi
xor esi, esi
call sub.MSVCRT.dll_strlen
add esp, 0x2c
test eax, eax
jle 0x42bc6d
cmp byte [esi + edi], 7
jne 0x42bc61
mov byte [esi + edi], 0xa
push edi
inc esi
call sub.MSVCRT.dll_strlen
cmp esi, eax
pop ecx
jl 0x42bc57
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x34]
push str.__s_
push eax
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x34]
push eax
push edi
call esi
add esp, 0x14
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x42bc9d
push 4
pop esi
jmp 0x42bd1a
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_strlen
add dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
test eax, eax
pop ecx
jne 0x42bcbb
push 5
jmp 0x42bc9a
push 0x4486cc
push dword [ebp + 0xc]
call esi
pop ecx
test eax, eax
pop ecx
je 0x42bcce
and byte [eax], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push 0x4486c8
push eax
call ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call esi
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x42bcf2
push 6
jmp 0x42bc9a
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_strlen
push 0xa
add esi, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 1
push esi
call fcn.0042ae94
add esp, 0x18
test eax, eax
jge 0x42bd18
push 7
jmp 0x42bc9a
xor esi, esi
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, esi
jmp 0x42bd31
push 3
jmp 0x42bd30
push 2
jmp 0x42bd30
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret