joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407230
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
test ecx, ecx
push edi
jl 0x407373
mov ebp, dword [esp + 0x20]
test ebp, ebp
jl 0x407373
test ecx, ecx
jne 0x407257
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
xor edx, edx
xor esi, esi
test ecx, ecx
mov ecx, dword [esp + 0x1c]
jle 0x407343
mov edi, dword [esp + 0x14]
mov ebx, edx
sub ebx, 0
je 0x407302
dec ebx
je 0x4072c0
dec ebx
jne 0x407336
xor edx, edx
xor ebx, ebx
mov dl, byte [eax + ecx - 1]
mov bl, byte [esi + edi]
shr ebx, 6
mov edx, dword [edx*4 + 0x446c84]
or edx, ebx
cmp eax, ebp
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx - 1], dl
jge 0x407373
mov dl, byte [esi + edi]
and edx, 0x3f
inc eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx - 1], dl
xor edx, edx
jmp 0x407336
xor edx, edx
xor ebx, ebx
mov dl, byte [eax + ecx - 1]
mov bl, byte [esi + edi]
shr ebx, 4
mov edx, dword [edx*4 + 0x446c84]
or edx, ebx
cmp eax, ebp
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx - 1], dl
jge 0x407373
mov dl, byte [esi + edi]
and edx, 0xf
inc eax
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx - 1], dl
mov edx, 2
jmp 0x407336
cmp eax, ebp
jge 0x407373
xor edx, edx
mov dl, byte [esi + edi]
shr edx, 2
inc eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
cmp eax, ebp
mov byte [eax + ecx - 1], dl
jge 0x407373
mov dl, byte [esi + edi]
and edx, 3
shl edx, 4
inc eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx - 1], dl
mov edx, 1
mov ebx, dword [esp + 0x18]
inc esi
cmp esi, ebx
jl 0x40726d
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x407352
dec edx
or edx, 0xfffffffc
inc edx
je 0x407376
cmp eax, ebp
jge 0x407373
mov byte [eax + ecx], 0x3d
inc eax
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x40736c
dec edx
or edx, 0xfffffffc
inc edx
jne 0x407354
pop edi
pop esi
pop ebp
pop ebx
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407380
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov edx, dword [esp + 8]
push ebx
push ebp
xor ecx, ecx
xor ebp, ebp
push esi
test edx, edx
push edi
jl 0x407445
mov ebx, dword [esp + 0x20]
test ebx, ebx
jl 0x407445
test edx, edx
jne 0x4073ab
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
xor esi, esi
test edx, edx
jle 0x407448
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
movsx edx, byte [edx + ebp]
mov edx, dword [edx*4 + 0x446c84]
cmp edx, 0xffffffff
je 0x407433
cmp esi, 3
ja case.default.0x4073d4
jmp dword [esi*4 + 0x407450]
mov esi, 1
jmp case.default.0x4073d4
cmp eax, ebx
jge 0x407445
mov ebx, edx
mov esi, 2
sar ebx, 4
and bl, 3
shl cl, 2
or bl, cl
mov byte [eax + edi], bl
mov ebx, dword [esp + 0x20]
inc eax
jmp case.default.0x4073d4
cmp eax, ebx
jge 0x407445
mov ebx, edx
mov esi, 3
sar ebx, 2
and bl, 0xf
shl cl, 4
or bl, cl
mov byte [eax + edi], bl
mov ebx, dword [esp + 0x20]
inc eax
jmp case.default.0x4073d4
cmp eax, ebx
jge 0x407445
shl cl, 6
or cl, dl
mov byte [eax + edi], cl
inc eax
xor esi, esi
mov ecx, edx
mov edx, dword [esp + 0x18]
inc ebp
cmp ebp, edx
jl 0x4073bb
pop edi
pop esi
pop ebp
pop ebx
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x407600
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x439e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], 0
test eax, eax
je 0x40763e
push str._CCommunicateNamePipe::Create__Pipe_Already_Created_Or_Opened__n
jmp 0x407661
push 0
push 4
push esi
push 0x407a40
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x38], eax
test eax, eax
jne 0x407685
push str._CCommunicateNamePipe::Create__Server_Main_Thread_Create_Fail__n
call fcn.00411930
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 1
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x20]
add esi, 0x28
push eax
mov dword [esi], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str._CCommunicateNamePipe::Create__Start_As_Server_Succeed__n
call fcn.00411930
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x407700
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x439e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], 0
test eax, eax
je 0x407743
push str._CCommunicateNamePipe::Open__Pipe_Already_Created_Or_Opened__n
jmp 0x407825
mov eax, dword [esp + 0x20]
push eax
push str..pipeSangforDD2SDPipe
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x40776a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4077a0
push eax
push str._CCommunicateNamePipe::Open__Wait_Pipe_Fail_Err___u_n
jmp 0x407798
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipeSangforDD2SDPipe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
jne 0x4077bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CCommunicateNamePipe::Open__Open_Pipe_Fail_Err___u_n
call fcn.00411930
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov dword [esp + 0x18], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x407819
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CCommunicateNamePipe::Open__Set_Pipe_State_Fail_Err___u_n
call fcn.00411930
mov edx, dword [esi + 0x1c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov dword [esi + 0x20], 2
push str._CCommunicateNamePipe::Create__Start_As_Client_Succeed__n
call fcn.00411930
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x407866
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x439e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0
test eax, eax
je 0x4078db
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4078db
mov edx, dword [esp + 0x24]
cmp edx, 0x3f
ja 0x4078ae
mov esi, dword [esi + edx*4 + 0x40]
cmp esi, 0xffffffff
je 0x4078db
lea edx, [esp + 8]
push 0
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4078bc
mov ecx, dword [esp + 8]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x407900
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x439ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 4]
push edi
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x2c], ebp
je 0x407a19
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xffffffff
je 0x407a19
cmp eax, 2
jne 0x407a19
xor eax, eax
mov edx, dword [str.CMNP]
mov dword [esp + 0x19], eax
mov edi, dword [esp + 0x38]
mov dword [esp + 0x1d], eax
mov dword [esp + 0x18], edx
mov word [esp + 0x21], ax
push ebp
mov byte [esp + 0x27], al
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push 0xc
mov dword [esp + 0x1c], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], edi
call ebp
test eax, eax
je 0x407a05
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407a05
xor esi, esi
test edi, edi
jbe 0x4079f6
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [ebx + 0x1c]
lea edx, [esi + ecx]
push edi
push edx
push eax
call ebp
test eax, eax
je 0x4079e2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4079e2
add esi, eax
sub edi, eax
jne 0x4079ab
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x407a22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CCommunicateNamePipe::Write__Client_Write_Pipe_Fail_Err__u_n
call fcn.00411930
add esp, 8
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x407a22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CCommunicateNamePipe::Write__Client_Write_Pipe_Fail_Err__u_n
call fcn.00411930
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x407ef0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x38]
sub esp, 0x14
push esi
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407f1b
push str._CCommunicateNamePipe::SendQuitCmd__Server_Thread_Already_Exit_n
call fcn.00411930
add esp, 4
xor eax, eax
pop esi
add esp, 0x14
ret
push 0
push str..pipeSangforDD2SDPipe
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x407f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CCommunicateNamePipe::SendQuitCmd__Wait_Pipe_Fail_Err___u_n
call fcn.00411930
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipeSangforDD2SDPipe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CCommunicateNamePipe::SendQuitCmd__Open_Pipe_Fail_Err___u_n
call fcn.00411930
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
push esi
mov dword [esp + 0x18], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x407fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CCommunicateNamePipe::SendQuitCmd__Set_Pipe_State_Fail_Err___u_n
jmp 0x408016
xor edx, edx
mov eax, dword [str.CMNP]
mov dword [esp + 0xd], edx
lea ecx, [esp + 4]
mov dword [esp + 0x11], edx
mov dword [esp + 0xc], eax
mov word [esp + 0x15], dx
mov dword [esp + 0x10], 2
mov byte [esp + 0x17], dl
mov dword [esp + 0x14], edx
mov dword [esp + 4], edx
push edx
push ecx
lea edx, [esp + 0x14]
push 0xc
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40800a
mov eax, dword [esp + 4]
test eax, eax
je 0x40800a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CCommunicateNamePipe::SendQuitCmd__Write_Cmd_To_Pipe_Fail_Err___u_n
call fcn.00411930
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x408b30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SOFTWARESangforSSLRemoteAppClient
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x408b73
push eax
push str.SOFTWARESangforSSLRemoteAppClient
push str.RegOpenKeyEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
xor eax, eax
pop edi
add esp, 0x14
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push edi
push str.AudioMode
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], 4
call esi
cmp eax, edi
je 0x408bc1
push eax
push str.AudioMode
push str.RegQueryValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push edx
push edi
push edi
push str.ColorDepth
push eax
mov dword [esp + 0x20], 4
call esi
cmp eax, edi
je 0x408c00
push eax
push str.ColorDepth
push str.RegQueryValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
mov dword [esp + 0x14], 0x18
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
push edi
push edi
push str.DeviceRedirectMask
push eax
mov dword [esp + 0x20], 4
call esi
cmp eax, edi
pop esi
je 0x408c40
push eax
push str.DeviceRedirectMask
push str.RegQueryValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
mov dword [esp + 0xc], 0x1f
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
dec ecx
push str.AudioMode_uamp_ColorDepth_uamp_DeviceRedirectMask_u
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [esp + 0x20]
add esp, 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x14
ret
Function at 0x408d90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SOFTWARESangforSSLHTPINFO
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x408ddf
push eax
push str.SOFTWARESangforSSLHTPINFO
push str.RegOpenKeyEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
xor eax, eax
pop edi
add esp, 0x10
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push ecx
push edx
push edi
push edi
push str.EnableHTP
push eax
mov dword [esp + 0x20], 4
call esi
cmp eax, edi
je 0x408e30
push eax
push str.EnableHTP
push str.RegQueryValueEx_failed__key___s__err___d
call fcn.00411930
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
pop edi
add esp, 0x10
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
push edi
push edi
push str.WorkMode
push eax
mov dword [esp + 0x20], 4
call esi
cmp eax, edi
je 0x408e7a
push eax
push str.WorkMode
push str.RegQueryValueEx_failed__key___s__err___d
call fcn.00411930
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
pop edi
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
dec eax
push str.Enable_damp_WorkMode_d
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edx, dword [esp + 0x20]
add esp, 0x14
mov edi, 1
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
pop edi
add esp, 0x10
ret
Function at 0x409180
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
push str.DealVpnShortCut....
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00411930
add esp, 4
lea eax, [esp + 0x108]
push 0x104
push eax
push str._ProgramFiles_SangforSSLSangforCSClientSangforCSClient.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
pop edi
jne 0x4091f7
push str.DealVpnShortCut::_ExpandEnvironmentStrings_failed...
call fcn.00411930
add esp, 4
xor eax, eax
add esp, 0x208
ret
push 0
lea ecx, [esp + 4]
push 0x19
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x409222
push str.DealVpnShortCut::_SHGetSpecialFolderPath_failed...
call fcn.00411930
add esp, 4
xor eax, eax
add esp, 0x208
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax - 1], 0x5c
jne 0x409240
lea eax, [esp]
push 0x447b9c
push eax
jmp 0x40924a
lea ecx, [esp]
push 0x447b8c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp]
lea eax, [esp + 0x104]
push edx
push eax
push str.Path_s_Link_s
call fcn.00411930
lea ecx, [esp + 0xc]
push ecx
call fcn.004309a0
mov ecx, dword [esp + 0x21c]
add esp, 0x10
test ecx, ecx
je 0x40928f
test eax, eax
je 0x40929f
mov eax, 1
add esp, 0x208
ret
test eax, eax
jne 0x4092d5
mov eax, 1
add esp, 0x208
ret
lea edx, [esp]
push 0x447b74
lea eax, [esp + 0x108]
push edx
push eax
mov ecx, 0x450120
call fcn.0041e490
test eax, eax
jne 0x4092f7
push str.DealVpnShortCut::_CreateShortCut_failed...
call fcn.00411930
add esp, 4
xor eax, eax
add esp, 0x208
ret
lea ecx, [esp]
push ecx
mov ecx, 0x450120
call fcn.0041e4c0
test eax, eax
jne 0x4092f7
push str.DealVpnShortCut::_DeleteShortCut_failed...
call fcn.00411930
add esp, 4
xor eax, eax
add esp, 0x208
ret
Function at 0x409300
Capabilities:
Persist via run registry key
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.DealAutoLog....
mov dword [esp + 0xc], 0
stosb byte es:[edi], al
call fcn.00411930
add esp, 4
lea eax, [esp + 0xc]
push 0x104
push eax
push str._ProgramFiles_SangforSSLSangforCSClientSangforCSClient.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x409354
pop edi
pop esi
add esp, 0x20c
ret
mov esi, dword [esp + 0x21c]
xor ecx, ecx
lea edx, [esp + 8]
push 4
test esi, esi
push edx
push 4
setne cl
push str.EnableShortCut
mov dword [esp + 0x18], ecx
push str.SOFTWARESangforSSLSangforCSClient
push reloc.WS2_32.dll_bind
mov ecx, 0x450120
call fcn.0041e640
test eax, eax
jne 0x4093a4
push str.DealAutoLog::_bDesktop_failed...
call fcn.00411930
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x20c
ret
mov edi, dword [esp + 0x220]
lea ecx, [esp + 8]
push 4
xor eax, eax
push ecx
push 4
test edi, edi
push str.MinimizeWindow
push str.SOFTWARESangforSSLSangforCSClient
setne al
push reloc.WS2_32.dll_bind
mov ecx, 0x450120
mov dword [esp + 0x20], eax
call fcn.0041e640
test eax, eax
jne 0x4093f4
push str.DealAutoLog::_bMin_failed...
call fcn.00411930
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x20c
ret
mov edi, dword [esp + 0x218]
lea eax, [esp + 8]
push 4
xor edx, edx
push eax
push 4
test edi, edi
push str.EnableAutoLogin
push str.SOFTWARESangforSSLSangforCSClient
setne dl
push reloc.WS2_32.dll_bind
mov ecx, 0x450120
mov dword [esp + 0x20], edx
call fcn.0041e640
mov esi, eax
test esi, esi
jne 0x409437
pop edi
pop esi
add esp, 0x20c
ret
test edi, edi
je 0x4094a9
mov eax, dword [esp + 0x224]
test eax, eax
je 0x4094a9
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x207
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc]
sub edx, ecx
push edx
push str.__SysAutoLogin
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push 0x447ce0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
mov ecx, 0x450120
call fcn.0041e640
mov esi, eax
pop edi
pop esi
add esp, 0x20c
ret
push 0x447ce0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push str.HKEY_LOCAL_MACHINE
call dword [0x4501e4]
add esp, 0xc
test eax, eax
jne 0x4094d2
push str.CSCM_DelRegKeyOrItem_HKEY_LOCAL_MACHINE_Run_failed_
call fcn.00411930
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x40a160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWARESangforSSLSangforCSClient
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x40a1ab
push eax
push str.SOFTWARESangforSSLSangforCSClient
push str.RegOpenKeyEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push esi
push esi
push str.UserEnableWebOpt
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x40a1f8
push eax
push str.UserEnableWebOpt
push str.RegQueryValueEx_failed__key___s__err___d
call fcn.00411930
mov ecx, dword [esp + 0x10]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
dec edx
push str.state_d
push edx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, dword [esp + 0x14]
add esp, 0x10
mov esi, 1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x40ac30
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
je 0x40ac7b
cmp byte [eax], 0
je 0x40ac7b
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, dword [esp + 8]
test eax, eax
mov dword [esi], eax
je 0x40ac7b
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0xc]
test eax, eax
mov dword [ecx], eax
jne 0x40ac7f
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret