joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417660
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [0x43a8f4], edi
je 0x417728
push 8
mov dword [0x43a8f4], edi
call fcn.0041ce0b
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x417692
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push str.Send_stop_msg_to_nemservice.
push 1
mov ecx, 0x43b48c
mov word [esi + 2], 8
mov word [esi], 6
call fcn.0040a450
movzx eax, word [esi + 2]
add esp, 8
push eax
push esi
call fcn.00418b90
test eax, eax
jl 0x417689
mov ebp, dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x43c07c], 3
lea ecx, [ecx]
push str.GlobalNemservie
push 0
push 0
call ebp
mov esi, eax
call ebx
test esi, esi
jne 0x4176f8
cmp eax, 5
jne 0x41770b
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 0x19
jl 0x4176e0
push str.Stop_nemservice_successfully.
push 1
mov ecx, 0x43b48c
call fcn.0040a450
push 0
call fcn.0040e930
add esp, 0xc
jmp 0x41773c
push str.When_receive_command_to_stop_nem__but_find_no_running_just_set_the_service____________________flag.
push 2
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
mov ecx, dword [0x43b7f8]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040f190
mov edx, dword [0x43a9c8]
and edx, 1
cmp dl, 1
mov byte [0x43ac40], 0
jne 0x41776f
xor dword [0x43a9c8], 1
call fcn.0040f260
mov eax, dword [0x43b7f8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov dword [0x43a8f4], 0
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x417980
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x429b78
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4382c4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x14], vtable.CFindKillProcess.0
push 0
push 2
mov dword [esp + 0x28], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x417aad
push 0
mov esi, eax
mov edi, str.CPFMHST.exe
call fcn.00403eb0
test eax, eax
mov dword [esp + 0x10], eax
je 0x417aad
push 0
push 0
push ebp
push 0
push 0x101e
push edi
mov ecx, 0x43b5d0
call fcn.00404e60
cmp dword [ebx + 8], 0xff
jne 0x417b05
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp eax, 0xfffffffa
jne 0x417b05
push str.Failed_to_post_message_to_cpfm_try_agin.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
push 0xc8
call edi
push 0
push 0
push ebp
push 0
push 0x101e
push str.CPFMHST.exe
mov ecx, 0x43b5d0
call fcn.00404e60
add esi, 1
cmp esi, 0xa
jl 0x417a11
cmp eax, 0xfffffffa
jne 0x417b05
mov eax, dword [esp + 0x10]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x417b05
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CPFM_process_is_killed
call fcn.00403400
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push str.When_receive_command_to_stop_cpfm_find_the_process_didnt_exit_just_set_______________________the_service_flag.
push 2
mov ecx, 0x43b48c
call fcn.0040a450
mov ecx, dword [0x43b7f8]
add esp, 8
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040f190
mov edx, dword [0x43a9c8]
and edx, 2
cmp dl, 2
mov byte [0x43ac41], 0
jne 0x417af4
xor dword [0x43a9c8], 2
call fcn.0040f260
mov eax, dword [0x43b7f8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x417b20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x118
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x114], eax
xor eax, eax
mov byte [esp], 0
mov dword [esp + 1], eax
mov dword [esp + 5], eax
mov dword [esp + 9], eax
mov word [esp + 0xd], ax
mov byte [esp + 0xf], al
call fcn.0040dff0
test eax, eax
je 0x417b66
push str.runas
push 0x10
lea eax, [esp + 8]
push eax
jmp 0x417b72
push str.open
push 0x10
lea ecx, [esp + 8]
push ecx
call fcn.0041aff9
add esp, 0xc
push 0x103
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 0
call fcn.00420f50
push edi
push str.__s_
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.0041af4d
add esp, 0x1c
push 0
push 0
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041aec3
add esp, 0x118
ret
Function at 0x417e40
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x417e94
push 0
mov esi, eax
mov edi, str.SVNIDHST.exe
call fcn.00403eb0
test eax, eax
je 0x417e94
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x417e94
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Host_ID_process_is_killed
call fcn.00403400
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x418320
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
push str.KA_client_constructor
xor esi, esi
push esi
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x418389
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup_failed__code__d
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
mov dword [0x43c07c], 2
push 0x400
push esi
push 0x43c090
mov dword [0x43c084], esi
mov dword [0x43c4b0], esi
mov dword [0x43c4b4], esi
mov dword [0x43c494], esi
call fcn.00420f50
add esp, 0xc
push 0x43c498
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x19c]
mov dword [0x43c490], esi
pop esi
xor ecx, esp
mov eax, 0x43c060
call fcn.0041aec3
mov esp, ebp
pop ebp
ret

Function at 0x418480
Capabilities:
Create tcp socket

Disassembly:
push ecx
push 6
xor eax, eax
push 1
push 2
mov dword [0x43c074], eax
mov dword [0x43c07c], eax
mov dword [0x43c08c], eax
mov dword [0x43c078], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x43c070], eax
jne 0x4184d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.create_keepalive_client_socket_failed__last_error__d
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
mov dword [0x43c07c], 2
or eax, 0xffffffff
pop ecx
ret
push str.KA_client_initialized_ok
push 1
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
xor eax, eax
pop ecx
ret
Function at 0x4184f0
Capabilities:
Connect socket
Create thread

Disassembly:
sub esp, 0x10
xor eax, eax
test cx, cx
push esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
jne 0x418529
push 0
push str.KA_server_listen_port__d_is_not_valid
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
xor eax, eax
cmp eax, 0x417f90
je 0x418658
xor edx, edx
cmp edx, 0x418060
je 0x418658
cmp dword [0x43c07c], eax
je 0x41856a
push str.KA_client_status_is_not_in_initial.
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
mov eax, 0xfffffffe
pop esi
add esp, 0x10
ret
cmp dword [0x43c070], 0xffffffff
jne 0x418591
push str.The_tcp_communicate_socket_is_invalid.
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
mov eax, 0xfffffffe
pop esi
add esp, 0x10
ret
push str.127.0.0.1
movzx esi, cx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
call fcn.00418680
mov eax, dword [0x43c070]
push 0x10
push 0x43c060
push eax
mov dword [0x43c4b0], 0x417f90
mov dword [0x43c4b4], 0x418060
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4185fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Failed_to_connect_to_KA_server__d
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
mov eax, 0xfffffffd
pop esi
add esp, 0x10
ret
push 0x43c080
push 0
push 0x43c060
push 0x4186b0
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x43c084], eax
jne 0x418651
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_KA_thread_failed___error__d
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
mov dword [0x43c07c], 2
mov eax, 0xfffffffc
pop esi
add esp, 0x10
ret
xor eax, eax
pop esi
add esp, 0x10
ret
push str.The_input_function_point_is_null.
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
Function at 0x418950
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 0
call fcn.0041d6e8
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
add esp, 4
cmp eax, 0xffffffff
mov esi, 5
je 0x41899f
push 0
push 8
lea ebx, [ebp + 0x30]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jne 0x4189b3
push str.Server_closed_socket_gracefully.
push 1
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
mov dword [ebp + 0x1c], 3
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
cmp edi, 0xffffffff
jne 0x418a0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push str.Recv_SOCKET_ERROR__errorCode:__d
push 1
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
cmp esi, 0x2733
je 0x418aa4
push esi
push str.Recv_error_error_code_d
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
mov dword [ebp + 0x1c], 3
mov eax, 0xfffffffb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
cmp edi, 8
je 0x418a65
push edi
push str.recv_msg_less_than_sizeof_TLV__recvLen___d
push 2
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x418a4f
lea esp, [esp]
movsx eax, byte [ebx]
add eax, esi
push eax
push str.0x_x
mov ecx, 0x43b48c
call fcn.0040a090
add esi, 1
add esp, 8
cmp esi, edi
jl 0x418a30
mov dword [ebp + 0x1c], 3
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
movzx eax, word [ebx + 2]
mov edi, 8
cmp eax, edi
jg 0x418ab4
cmp dword [ebp + 0x450], 0
je 0x418a9d
push edi
push str.Client_recv_msg_len__d_ok__call_pfnMsgHandler
push 0
mov ecx, 0x43b48c
call fcn.0040a450
mov ecx, dword [ebp + 0x450]
add esp, 0xc
push edi
push ebx
call ecx
add esp, 8
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x2c], edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov esi, dword [esp + 0x1c]
mov ecx, esi
sub esi, 1
test ecx, ecx
mov dword [esp + 0x1c], esi
jl 0x418b33
push 0
sub eax, edi
push eax
mov eax, dword [ebp + 0x10]
lea edx, [ebx + edi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
push esi
push str.Client_recv_msg_slice_length__d
push 0
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
test esi, esi
je 0x418b5d
cmp esi, 0xffffffff
jne 0x418b24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push str.Recv_SOCKET_ERROR_2__errorCode:__d
push 1
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
cmp esi, 0x2733
jne 0x418b26
push esi
push str.Recv_error2_error_code_d
jmp 0x4189e7
add edi, esi
movzx eax, word [ebx + 2]
cmp edi, eax
jl 0x418ab0
jmp 0x418a72
push str.Recv_msg_for_too_many_time__fault_may_happen
push 2
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
mov dword [ebp + 0x1c], 3
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push str.Server_closed_socket_gracefully_2.
push 1
mov ecx, 0x43b48c
mov dword [ebp + 0x1c], 3
call fcn.0040a450
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 8
ret 4
Function at 0x418c20
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x50
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push edi
lea ebp, [esi + 0x438]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x434], 0
mov ebx, dword [sym.imp.WS2_32.dll_send]
je 0x418cd8
mov eax, dword [esi + 0x434]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [esi + 0x10]
push 0
push ecx
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x418d68
mov ecx, dword [esi + 0x434]
mov eax, dword [ecx + 4]
movzx eax, word [eax]
cmp ax, 5
je 0x418c8a
cmp ax, 6
jne 0x418c9c
push str.Send_stop_msg.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
mov edx, dword [esi + 0x434]
mov eax, dword [edx + 4]
push eax
call fcn.0041d275
mov ecx, dword [esi + 0x434]
mov dword [ecx + 4], 0
mov edx, dword [esi + 0x434]
add esp, 4
push edx
call fcn.0041d275
add esp, 4
test edi, edi
mov dword [esi + 0x434], edi
jne 0x418c51
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x430], 0
je 0x418db7
push 0x3f
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esi + 0x430], 0
call fcn.00420f50
mov edx, dword [esi + 0x10]
add esp, 0xc
push 0
push 8
lea ecx, [esp + 0x18]
push ecx
push edx
mov word [esp + 0x20], 3
mov word [esp + 0x22], 8
call ebx
cmp eax, 0xffffffff
jne 0x418d9f
add dword [esi + 0x18], 1
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_KA_failed__error:_d___dth
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0x10
mov dword [esi + 0x1c], 2
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0041aec3
add esp, 0x50
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Fail_to_send_Msg_to_nemservice__error:_d.
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
mov dword [esi + 0x1c], 2
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0041aec3
add esp, 0x50
ret
mov eax, dword [esi + 0x14]
push eax
push str.client_KA_sent_to_port__u_ok
push 0
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 0xc
mov ecx, dword [esp + 0x54]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041aec3
add esp, 0x50
ret
Function at 0x418dd0
Capabilities:
Terminate thread

Disassembly:
push esi
push str.Call_CTcpCommClient::Clean.
xor esi, esi
push esi
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
cmp dword [0x43c07c], 1
mov ecx, 0x43b48c
je 0x418e06
push str.Not_running__return.
push esi
call fcn.0040a450
add esp, 8
xor eax, eax
pop esi
ret
push str.client_is_running__clean_now.
push esi
call fcn.0040a450
mov eax, dword [0x43c084]
add esp, 8
cmp eax, esi
je 0x418e3b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x43c084]
cmp eax, esi
je 0x418e3b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x43c084], esi
mov eax, dword [0x43c070]
cmp eax, 0xffffffff
mov dword [0x43c080], esi
mov dword [0x43c074], esi
mov dword [0x43c078], esi
je 0x418e68
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x43c070], 0xffffffff
xor eax, eax
pop esi
ret

Function at 0x418e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.00420f50
add esp, 0xc
lea esi, [esp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call fcn.00418f30
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418edf
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0041aec3
add esp, 0x11c
ret
lea edx, [esp + 0xc]
push edx
lea edi, [esp + 0x14]
lea esi, [esp + 0x18]
call fcn.00413db0
add esp, 4
test eax, eax
jne 0x418ec6
cmp dword [esp + 0x10], 0x10000
jne 0x418f09
cmp dword [esp + 0xc], 5
je 0x418ec6
mov ecx, dword [esp + 0x120]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041aec3
add esp, 0x11c
ret

Function at 0x418f30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x114
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x110], eax
test esi, esi
je 0x418fce
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00420f50
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 4]
push edx
push str.System_dir_is___s_
mov ecx, 0x43b48c
call fcn.0040a090
push str.drivers_tdisvn_drv.sys
lea eax, [esp + 0x10]
push eax
push 0x42ced8
push 0x104
push esi
call fcn.0041af4d
add esp, 0x1c
push esi
push str.Driver_binary_path_is___s_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0041aec3
add esp, 0x114
ret
push str.GetDriverBinaryPath:_Parameter
mov ecx, 0x43b48c
call fcn.0040a090
mov ecx, dword [esp + 0x114]
add esp, 4
xor ecx, esp
call fcn.0041aec3
add esp, 0x114
ret
Function at 0x419a70
Capabilities:
Query or enumerate registry value
Query service configuration

Disassembly:
sub esp, 0x9ac
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x9a4], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x18c
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x2c], ebx
call fcn.00420f50
add esp, 0xc
push 0x7ff
lea ecx, [esp + 0x1b5]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x1bc], bl
call fcn.00420f50
add esp, 0xc
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
jne 0x419afb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CTDIInstaller::IsInstalled:OpenSCManager:__d_n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
jmp 0x419bf7
push 0xf01ff
push str.tdisvn
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
jne 0x419b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CTDIInstaller::IsInstalled:OpenService:__d_n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
jmp 0x419be7
lea edx, [esp + 0x14]
push edx
push 0x800
lea eax, [esp + 0x1b8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x419b68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CTDIInstaller::IsInstalled:QueryServiceConfig_hTcpip_:__d_n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
jmp 0x419be7
mov esi, dword [esp + 0x1c4]
lea ecx, [esp + 0x18]
push ecx
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
je 0x419b9d
push eax
push str.CTDIInstaller::IsInstalled:RegOpenKey:__d_n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
jmp 0x419be7
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.PNP_TDI
push edx
mov dword [esp + 0x2c], 0x190
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x419c0d
push eax
push str.CTDIInstaller::IsInstalled:RegQueryValueEx:__d_n
mov ecx, 0x43b48c
call fcn.0040a090
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x419bf4
push edi
call esi
push ebp
call esi
push str.CTDIInstaller::IsInstalled:Error_occurred._The_driver_is_not_installed._n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
xor eax, eax
jmp 0x419c61
mov ecx, dword [esp + 0x14]
shr ecx, 2
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x14], ecx
jbe 0x419c35
cmp dword [esp + eax*4 + 0x20], esi
je 0x419c30
add eax, 1
cmp eax, ecx
jb 0x419c21
jmp 0x419c35
mov ebx, 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebp
call esi
push ebx
push str.CTDIInstaller::IsInstalled:success_and_bInstalled____d__n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
mov eax, ebx
mov ecx, dword [esp + 0x9b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x9ac
ret
Function at 0x41a400
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x110
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call fcn.00420f50
push str.SVNIDHST.exe
push 0x43ae48
push 0x42ced8
mov eax, 0x104
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.0040d050
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x18
mov ecx, edi
push ecx
call ebx
lea edx, [esp + 0xc]
push edx
lea edi, [esp + 0x14]
lea esi, [esp + 0x18]
call fcn.0041a830
test eax, eax
jne 0x41a4a7
cmp dword [esp + 0x10], 0x20001
jne 0x41a4a7
cmp dword [esp + 0xc], 0x60002
jne 0x41a4a7
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0041aec3
add esp, 0x110
ret
push str.Host_ID_need_update
call ebx
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041aec3
add esp, 0x110
ret

Function at 0x41a4d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x110
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00420f50
push str.SVNCEPSM.exe
push 0x43ae48
push 0x42ced8
mov eax, 0x104
lea edi, [esp + 0x28]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call fcn.0040d050
add esp, 0x18
lea ecx, [esp + 8]
push ecx
lea edi, [esp + 0x10]
lea esi, [esp + 0x14]
call fcn.0041a830
test eax, eax
pop edi
pop esi
jne 0x41a571
cmp dword [esp + 4], 0x20001
jne 0x41a571
cmp dword [esp], 0x60002
jne 0x41a571
mov eax, 1
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0041aec3
add esp, 0x110
ret
push str.EPS_need_update
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x10c]
xor ecx, esp
xor eax, eax
call fcn.0041aec3
add esp, 0x110
ret
Function at 0x41a5a0
Capabilities:
Get common file path
Print debug messages

Disassembly:
sub esp, 0x228
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x25]
push ebx
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x2c], bl
call fcn.00420f50
add esp, 0xc
push 0x103
lea edx, [esp + 0x12d]
push ebx
push edx
mov byte [esp + 0x134], bl
call fcn.00420f50
add esp, 0xc
push 0x104
lea eax, [esp + 0x12c]
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x42d258
lea ecx, [esp + 0x12c]
push ecx
push 0x42ced8
mov eax, 0x104
lea edi, [esp + 0x2c]
call fcn.0040d050
add esp, 0xc
mov edx, edi
push ebx
push edx
call fcn.0041b0e5
add esp, 8
cmp eax, 0xffffffff
jne 0x41a65c
push str.SPI_need_update
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, ebx
jmp 0x41a6ee
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.0041a830
cmp eax, 0xffffffff
jne 0x41a682
push str.CPFM_CreateDLLInstance:Get_DLL_version_error_may_be_no_version__n
xor esi, esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41a6e6
mov esi, dword [esp + 0x14]
cmp esi, 0x20001
mov edi, dword [esp + 0x18]
jb 0x41a6a3
jne 0x41a69c
cmp edi, 0x40001
jb 0x41a6a3
mov esi, 1
jmp 0x41a6e6
push edi
push esi
push str.The_SPI_DLL:Current_version__x._x___n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0xc
push str.CPFM_CreateDLLInstance:The_SPI_DLL_need_update___n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
cmp esi, 0x10002
jb 0x41a6e2
jne 0x41a6db
cmp edi, 0x20003
jbe 0x41a6e2
mov ebp, 1
jmp 0x41a6e4
xor ebp, ebp
xor esi, esi
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebp
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x228
ret 4