joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c620
Capabilities:
Create thread

Disassembly:
sub esp, 0x224
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
xor ebx, ebx
cmp edi, ebx
push ebp
mov ebp, dword [esp + 0x230]
push esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
je 0x40c698
call fcn.0040c270
test eax, eax
je 0x40c698
mov esi, ebp
call fcn.0040c360
test eax, eax
je 0x40c698
cmp dword [edi + 0xc], ebx
je 0x40c6f5
call fcn.00414060
test eax, eax
jne 0x40c67c
mov esi, 0x432638
call fcn.00415e70
call fcn.004170a0
cmp eax, 0xffffffff
jne 0x40c6a0
push str.StartProxySetExe_failed_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
or eax, 0xffffffff
jmp 0x40c862
test byte [edi + 8], 1
je 0x40c6f5
cmp dword [0x43af5c], ebx
mov dword [esp + 0x14], ebx
jne 0x40c6f5
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x40c4a0
push ebx
push ebx
mov dword [0x43af58], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x43af54], eax
jne 0x40c6f5
push str.Start:_Failed_to_create_thread_ThreadNem2ProxysetHeartBeat._Maybe_out_of_memory.
push 3
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
or eax, 0xffffffff
jmp 0x40c862
push 0x103
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call fcn.00420f50
add esp, 0xc
push 0x103
lea edx, [esp + 0x125]
push ebx
push edx
mov byte [esp + 0x12c], bl
call fcn.00420f50
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x128]
mov esi, edi
call fcn.00419c80
mov esi, eax
push esi
push str.There_are__d_file_s__need_to_upgrade.
call fcn.00403400
mov eax, dword [edi + 8]
add esp, 8
cmp eax, 2
je 0x40c75e
cmp eax, 4
jne 0x40c772
call fcn.004152e0
cmp eax, 1
jne 0x40c772
mov eax, 0xfffffc17
jmp 0x40c862
cmp esi, ebx
jne 0x40c7e4
push str.Start:_There_is_no_file_to_be_downloaded.
push ebx
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
push edi
call fcn.0040c880
cmp eax, ebx
mov dword [esp + 0xc], eax
jne 0x40c7a9
add ebp, 0x4c8
push ebp
mov esi, edi
call fcn.00417040
mov dword [esp + 0xc], eax
test byte [edi + 8], 1
je 0x40c85e
mov eax, dword [0x43af54]
cmp eax, ebx
mov dword [0x43af58], ebx
je 0x40c85e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x43af54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x43af54], ebx
jmp 0x40c85e
jle 0x40c856
push str.Start:_There_are_files_to_download.
push ebx
mov ecx, 0x43b48c
call fcn.0040a450
add esp, 8
cmp dword [ebp + 0x31c], ebx
je 0x40c829
push str.Downloading_was_started__Service_Wait.
mov ecx, 0x43b48c
call fcn.0040a090
mov eax, dword [0x43af78]
add esp, 4
push edi
push 0xfffffffffffffffe
push 0x52c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40c85e
lea ecx, [esp + 0x18]
push ecx
push 0x104
push 0x43af98
call fcn.0041aff9
add esp, 0xc
push 0x43af98
push ebp
lea edx, [esp + 0x128]
mov ecx, edi
call fcn.004127b0
jmp 0x40c85e
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x224
ret 4
Function at 0x40ddb0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Check mutex on windows
Print debug messages

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
push ebx
push str.SendMessageToAgent_wParam____d___lParam__d_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0xc
cmp dword [0x43b458], 0
je 0x40ddf0
push str.Ending_session__stop_sending_message_to_agent.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
pop edi
pop esi
pop ebp
add esp, 8
ret
cmp dword [0x43af7c], 2
jne 0x40de06
cmp ebx, 2
jne 0x40de48
cmp ebp, 0x1ea
je 0x40de55
mov eax, dword [0x43ac0c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40de6e
mov esi, dword [esp + 0x18]
mov ecx, dword [0x43ac0c]
push ebp
push ebx
push esi
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [0x43ac0c]
push ebp
push ebx
push esi
push edx
push str.PostMessage_to_agent_hwnd0x_08x_msg_d_service_d_parm_d
call fcn.00403400
add esp, 0x14
pop edi
pop esi
pop ebp
add esp, 8
ret
cmp ebx, 1
jne 0x40de06
cmp ebp, 0x12e
jne 0x40de06
push str.Client_Manager_is_exiting__it_does_not_send__TIMEOUT__message_to_agent.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
pop edi
pop esi
pop ebp
add esp, 8
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp + 0x10], eax
xor edi, edi
call esi
sub eax, dword [esp + 0x10]
cmp eax, 0x2710
jae 0x40df98
jmp 0x40de96
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.hAgentWnd_is_invalid_refresh_inter_process_info
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x43b7f8]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040f190
mov ecx, dword [0x43b7f8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [0x43ac0c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov ecx, 0x43b48c
jne 0x40df5f
push str.Post_message_to_agent_failed
call fcn.0040a090
add esp, 4
push str.GlobalSVNIEAgentControl
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x40df1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40df1b
push str.Ocx_or_plugin_do_not_exist_
call fcn.00403400
add esp, 4
cmp edi, 2
je 0x40df86
push 0x1f4
add edi, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
mov ecx, dword [0x43ac0c]
push ebp
mov esi, eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push ecx
push str.PostMessage_to_agent_hwnd0x_08x_msg_d_service_d_parm_d
call fcn.00403400
sub esi, dword [esp + 0x24]
add esp, 0x14
cmp esi, 0x2710
jb 0x40de90
pop edi
pop esi
pop ebp
add esp, 8
ret
push str.IsWindow__TRUE__message_has_sent.
call fcn.0040a090
mov edx, dword [esp + 0x1c]
mov eax, dword [0x43ac0c]
add esp, 4
push ebp
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
add esp, 8
ret
push str.Ocx_or_plugin_do_not_exist_stop_try_to_post_message_to_agent.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x40dff0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00420f50
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.0041aec3
add esp, 0x98
ret
Function at 0x40e930
Capabilities:
Print debug messages

Disassembly:
movzx eax, byte [0x439ca8]
add eax, eax
push esi
add eax, eax
cmp dword [esp + 8], 0
push edi
mov edi, dword [eax + 0x4392dc]
je 0x40e95c
mov eax, dword [eax + 0x4392e8]
mov esi, eax
mov eax, edi
call fcn.0040b500
pop edi
pop esi
ret
cmp dword [0x43b808], 0
je 0x40e96f
mov esi, dword [0x43ba14]
test esi, esi
jne 0x40e97e
pop edi
pop esi
mov dword [esp + 4], str.SVNCMgr_GetNemInfo
jmp fcn.00403400
mov eax, dword [0x43ba10]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40e99a
cmp eax, 0x80
jne 0x40e9c2
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0x88], 0
mov ecx, dword [0x43ba10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
movzx edx, byte [0x439ca8]
mov eax, dword [edx*4 + 0x4392f4]
mov esi, eax
mov eax, edi
call fcn.0040b500
pop edi
pop esi
ret
Function at 0x40f050
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11]
push ebx
push eax
mov byte [esp + 0x18], bl
call fcn.00420f50
add esp, 0xc
push 0x103
lea ecx, [esp + 0x119]
push ebx
push ecx
mov byte [esp + 0x120], bl
call fcn.00420f50
mov edx, dword [0x43b7f8]
add esp, 0xc
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040f190
mov eax, dword [0x43b7f8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ecx, ecx
cmp dword [0x43a9c4], ebx
lea ebx, [esp + 0x114]
setne cl
mov esi, ecx
call fcn.00412340
mov edx, dword [0x43a9fc]
mov eax, dword [0x43a9f8]
push esi
push edx
push eax
mov ecx, ebx
push ecx
push str._s_bridge.html_UserID_dSessionID_dviewoption1SelectLanguage_d
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.0041af4d
add esp, 0x1c
lea eax, [esp + 0xc]
push eax
push str.Option_path:__s
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
push 5
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x43b350
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x40f149
push str.Open_option_failed
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
mov ecx, dword [esp + 0x220]
pop esi
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x21c
ret
Function at 0x40fcc0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Check mutex on windows
Print debug messages

Disassembly:
push ebx
push ebp
push esi
push edi
push str.SVN_ST_CMGR__SYS_STOP_invoked_
call fcn.00403400
mov eax, dword [0x43b7f8]
add esp, 4
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040f190
mov ebx, 2
mov byte [0x43ac43], bl
call fcn.0040f260
mov ecx, dword [0x43b7f8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 1
mov dword [0x43af7c], ebx
mov ebx, dword [esp + 0x18]
push 0x4395b8
mov dword [0x4395b0], 1
call fcn.0040cee0
call fcn.00410d10
push 0x6a
push 0xff
push str.SendMessageToAgent_wParam____d___lParam__d_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0xc
cmp dword [0x43b458], 0
je 0x40fd55
push str.Ending_session__stop_sending_message_to_agent.
jmp 0x40fead
mov edx, dword [0x43ac0c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40fda3
mov eax, dword [0x43ac0c]
push 0x6a
push 0xff
push 0x1080
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x43ac0c]
push 0x6a
push 0xff
push 0x1080
push ecx
push str.PostMessage_to_agent_hwnd0x_08x_msg_d_service_d_parm_d
call fcn.00403400
add esp, 0x14
jmp 0x40feba
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ebp, eax
xor edi, edi
call ebx
sub eax, ebp
cmp eax, 0x2710
jae 0x40feba
push str.hAgentWnd_is_invalid_refresh_inter_process_info
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x43b7f8]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040f190
mov eax, dword [0x43b7f8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x43ac0c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov ecx, 0x43b48c
jne 0x40fe81
push str.Post_message_to_agent_failed
call fcn.0040a090
add esp, 4
push str.GlobalSVNIEAgentControl
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x40fe3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40fe3f
push str.Ocx_or_plugin_do_not_exist_
call fcn.00403400
add esp, 4
cmp edi, 2
je 0x40fea8
push 0x1f4
add edi, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
mov edx, dword [0x43ac0c]
push 0x6a
push 0xff
push 0x1080
push edx
push str.PostMessage_to_agent_hwnd0x_08x_msg_d_service_d_parm_d
mov esi, eax
call fcn.00403400
sub esi, ebp
add esp, 0x14
cmp esi, 0x2710
jb 0x40fdbe
jmp 0x40feba
push str.IsWindow__TRUE__message_has_sent.
call fcn.0040a090
mov eax, dword [0x43ac0c]
add esp, 4
push 0x6a
push 0xff
push 0x1080
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40feba
push str.Ocx_or_plugin_do_not_exist_stop_try_to_post_message_to_agent.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
mov ecx, dword [0x43b7f8]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040f190
mov byte [0x43ac43], 0
call fcn.0040f260
mov edx, dword [0x43b7f8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x411340
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x411394
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup_failed__error___d
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0041aec3
add esp, 0x19c
ret
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 1
call fcn.0041aec3
add esp, 0x19c
ret

Function at 0x4113b0
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
xor eax, eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov esi, 0x26cb
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x18], 2
call edi
push 0x7f000001
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push 0x11
push 2
push 2
mov dword [esp + 0x24], eax
call ebx
cmp eax, 0xffffffff
mov dword [0x4390d4], eax
je 0x411462
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x411420
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x41147e
mov edx, dword [0x4390d4]
push edx
call ebp
add esi, 1
push esi
mov dword [0x4390d4], 0xffffffff
call edi
push 0x11
push 2
push 2
mov word [esp + 0x22], ax
call ebx
cmp eax, 0xffffffff
mov dword [0x4390d4], eax
jne 0x411420
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0041aec3
add esp, 0x1c
ret
movzx eax, si
push eax
push str.SVNCMgr_bind_port___d__ok
call fcn.00403400
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
mov ax, si
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x1c
ret

Function at 0x411910
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x43af60]
test eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x411957
push 0x3e8
push eax
call esi
test eax, eax
je 0x411957
mov eax, dword [0x43af60]
push 0
push eax
call edi
mov ecx, dword [0x43af60]
push ecx
call ebx
mov dword [0x43af60], 0
mov eax, dword [0x43af64]
test eax, eax
je 0x411989
push 0x3e8
push eax
call esi
test eax, eax
je 0x411989
mov edx, dword [0x43af64]
push 0
push edx
call edi
mov eax, dword [0x43af64]
push eax
call ebx
mov dword [0x43af64], 0
mov eax, dword [0x43af68]
test eax, eax
je 0x4119bc
push 0x3e8
push eax
call esi
test eax, eax
je 0x4119bc
mov ecx, dword [0x43af68]
push 0
push ecx
call edi
mov edx, dword [0x43af68]
push edx
call ebx
mov dword [0x43af68], 0
pop edi
pop esi
pop ebx
ret
Function at 0x413880
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
test esi, esi
push edi
jne 0x4138a5
push str.Error:_create_file_directory_failed__file_name_is_null
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
call edi
test eax, eax
jne 0x4138ee
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push esi
call edi
test eax, eax
jne 0x4138ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4138ee
cmp eax, 0xb7
je 0x4138ee
push eax
push esi
push str.Error:_create_directory__s_failed__error__d_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x413aa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x114
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00420f50
add esp, 0xc
lea esi, [esp + 0xc]
call fcn.00413b70
cmp eax, 0xffffffff
jne 0x413af6
or eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0041aec3
add esp, 0x114
ret
push edi
lea ecx, [esp + 0x10]
call fcn.00413900
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 4
push edi
call ebx
cmp eax, 0xffffffff
jne 0x413b4e
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
call esi
test eax, eax
jne 0x413b2a
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push edi
call esi
push edi
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0041aec3
add esp, 0x114
ret
mov ecx, dword [esp + 0x118]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041aec3
add esp, 0x114
ret

Function at 0x413b70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x114
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x110], eax
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00420f50
add esp, 0xc
test esi, esi
je 0x413c14
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x413c26
push str._svnclient
lea edx, [esp + 8]
push 0x104
push edx
call fcn.0041af88
lea eax, [esp + 0x10]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413bd6
sub eax, edx
cmp eax, 0x104
jge 0x413c26
push 0xffffffffffffffff
lea eax, [esp + 8]
push eax
push 0x104
push esi
call fcn.0041c3aa
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0041aec3
add esp, 0x114
ret
push str.Error:_get_svn_application_directory_failed__dir_is_null
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
mov ecx, dword [esp + 0x110]
xor ecx, esp
or eax, 0xffffffff
call fcn.0041aec3
add esp, 0x114
ret
Function at 0x413c40
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x24
cmp dword [esp + 0x28], 0
push ebx
push ebp
push esi
push edi
jne 0x413c58
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0x1c
lea eax, [esp + 0x1c]
push eax
push 0x413d80
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
movzx ecx, word [esp + 0x3c]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [esp + 0x1c]
push 0xa
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x413d70
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x38]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x3c]
push eax
push str.Release_to_file__s_failed_error_d
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push ebp
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x38]
push eax
push edx
push str.Release__s_failed_error_d
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0xc
jmp 0x413d62
mov eax, dword [esp + 0x38]
push eax
push str.Release__s_successful
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x413db0
Capabilities:
Get file version info
Print debug messages

Disassembly:
mov eax, 0x100c
call fcn.00429600
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebp
mov ebp, dword [esp + 0x1014]
push 0xfff
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00420f50
add esp, 0xc
test esi, esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0
je 0x413e76
test edi, edi
je 0x413e76
test ebp, ebp
je 0x413e76
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x413e76
lea ecx, [esp + 0xc]
push ecx
push 0x1000
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x413e76
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
push 0x42cfc8
lea ecx, [esp + 0x18]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x413e76
mov eax, dword [esp + 4]
mov edx, dword [eax + 8]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
push str.Get_file_version_success
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0041aec3
add esp, 0x100c
ret
mov ecx, dword [esp + 0x100c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0041aec3
add esp, 0x100c
ret

Function at 0x413f80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x10c], eax
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00420f50
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x25
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x414046
push str.drivers_
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0041af88
push str.SVNDrv.sys
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0041af88
add esp, 0x18
push esi
push edi
lea ecx, [esp + 8]
push ecx
lea edi, [esp + 0x10]
lea esi, [esp + 0x14]
call fcn.00413db0
add esp, 4
test eax, eax
pop edi
pop esi
jne 0x414046
cmp dword [esp + 4], 0x10000
jne 0x414046
cmp dword [esp], 8
jne 0x414046
mov eax, 1
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0041aec3
add esp, 0x110
ret
mov ecx, dword [esp + 0x10c]
xor ecx, esp
xor eax, eax
call fcn.0041aec3
add esp, 0x110
ret
Function at 0x414210
Capabilities:
Get common file path

Disassembly:
sub esp, 0x114
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x110], eax
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00420f50
add esp, 0xc
test esi, esi
je 0x41429e
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4142b0
lea eax, [esp + 4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414260
sub eax, edx
cmp eax, 0x104
jge 0x4142b0
push 0xffffffffffffffff
lea edx, [esp + 8]
push edx
push 0x104
push esi
call fcn.0041c3aa
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0041aec3
add esp, 0x114
ret
push str.Error:_get_svn_application_directory_failed__dir_is_null
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
mov ecx, dword [esp + 0x110]
xor ecx, esp
or eax, 0xffffffff
call fcn.0041aec3
add esp, 0x114
ret
Function at 0x415010
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x220
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x121]
push ebx
push eax
mov byte [esp + 0x128], bl
call fcn.00420f50
add esp, 0xc
push 0x103
lea ecx, [esp + 0x19]
push ebx
push ecx
mov byte [esp + 0x20], bl
call fcn.00420f50
add esp, 0xc
lea edi, [esp + 0x11c]
call fcn.00413aa0
push str.SSLVPNDump.dll
mov edx, edi
push edx
push 0x42ced8
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.0041af4d
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4150cd
lea edx, [esp + 0xc]
push edx
lea edi, [esp + 0x14]
lea esi, [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call fcn.00413db0
add esp, 4
cmp dword [esp + 0x10], 0x20001
jne 0x4150cd
cmp dword [esp + 0xc], 0x60002
mov eax, 1
je 0x4150cf
mov eax, ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x220
ret