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

Disassembly:
sub esp, 0x14
mov ecx, 0x450120
push 0x11
push 0x44fb88
call fcn.0041e5c0
test eax, eax
jne 0x425d45
push str.Get_twfid_failed_
call fcn.00411930
add esp, 4
push esi
push edi
push 0x44fb88
push str.Login_success__twfid___s
call fcn.00411930
push 0x18
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x425d7f
push eax
push eax
mov eax, dword [0x44f860]
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x14
ret
mov dword [edx], 0
mov edi, 0x44fb88
or ecx, 0xffffffff
xor eax, eax
mov dword [edx], 1
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [edx + 4]
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
push edx
and ecx, 3
push 0x40f7c0
push 0
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov esi, eax
test esi, esi
pop ebx
jne 0x425df6
push str.start_ControlUpdateProc_failed
call fcn.00411930
mov ecx, dword [0x44f860]
add esp, 4
push esi
push esi
push 0x7e9
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x14
ret
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 8], 0
push 0x7d0
push esi
call edi
cmp eax, 0x102
mov eax, dword [0x4476b4]
jne 0x425e1e
test eax, eax
je 0x425e22
jmp 0x425e04
test eax, eax
jne 0x425e40
mov edx, dword [esp + 8]
mov eax, dword [0x44f860]
push 0
push edx
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x425ef0
mov eax, dword [esp + 8]
test eax, eax
je 0x425ef0
mov eax, dword [0x44ff7c]
push 0
test eax, eax
push 0
je 0x425e8e
mov edx, dword [0x44f860]
push 0x808
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [0x4501f0]
push 0x803
call fcn.00411250
mov ecx, 0x450120
call fcn.0041e820
call fcn.00411570
mov ecx, dword [0x44cb84]
mov eax, dword [str.SSLVPN]
mov edx, dword [0x44cb88]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [0x44cb8c]
push 0x10
push ecx
mov ecx, dword [0x4501f0]
push 0x7f3
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.004111f0
pop edi
pop esi
add esp, 0x14
ret
mov edx, dword [0x44f860]
push 0
push 0
push 0x7e9
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x14
ret
Function at 0x42cb40
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x42cb70
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], eax
mov eax, ecx
pop esi
ret

Function at 0x42cba0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x42cbda
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42cbc9
mov edx, dword [esi + 4]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
pop esi
ret 4
Function at 0x42dbe0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43b848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
test esi, esi
push edi
mov ebx, ecx
jne 0x42dc15
push esi
push esi
push esi
push 2
call fcn.0042f5a0
xor al, al
jmp 0x42ddac
mov ecx, ebx
call fcn.0042d0e0
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebp
add esp, 0x1c
test edi, edi
jg 0x42dc5f
push 0
push 0
push 0
push 0xd
mov ecx, ebx
call fcn.0042f5a0
xor al, al
jmp 0x42ddac
mov dword [esp + 0x10], 0x452bd8
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.0042cbe0
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_operatornew
push esi
mov ebp, eax
push 1
push edi
push ebp
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x42dcd6
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, ebx
push 0
push 0
push 0
push 2
call fcn.0042f5a0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
cmp eax, 0x452bd8
je 0x42dccf
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor al, al
jmp 0x42ddac
mov byte [edi + ebp], 0
mov cl, byte [ebp]
test cl, cl
mov eax, ebp
mov esi, ebp
je 0x42dd41
mov cl, byte [esi]
cmp cl, 0xa
jne 0x42dd01
mov ecx, esi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0042cd90
inc esi
mov eax, esi
jmp 0x42dd3c
cmp cl, 0xd
jne 0x42dd3b
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x42dd19
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0042cd90
lea edx, [esp + 0x24]
push 1
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0xa
call fcn.0042cd90
cmp byte [esi + 1], 0xa
jne 0x42dcfc
add esi, 2
mov eax, esi
jmp 0x42dd3c
inc esi
cmp byte [esi], 0
jne 0x42dce5
sub esi, eax
je 0x42dd50
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.0042cd90
push ebp
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx]
add esp, 4
add edx, 8
push ecx
push 0
push edx
mov ecx, ebx
call dword [eax + 8]
mov al, byte [ebx + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
test al, al
mov eax, dword [esp + 0x10]
je 0x42dd9a
cmp eax, 0x452bd8
je 0x42dccf
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor al, al
jmp 0x42ddac
cmp eax, 0x452bd8
je 0x42ddaa
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4309a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ba78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00439110
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x430a00
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x40
or ecx, 0xffffffff
xor eax, eax
push esi
push edi
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x26
je 0x430a20
pop edi
pop esi
add esp, 0x40
ret
mov eax, dword [str.CLSID_]
mov cx, word [0x44d5f8]
mov dword [esp + 0xc], eax
mov al, byte [0x44d5fa]
mov word [esp + 0x10], cx
mov byte [esp + 0x12], al
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x13]
push ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x50], eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.InprocServer32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x18]
push 0
push ecx
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop ebx
je 0x430ad1
pop edi
xor eax, eax
pop esi
add esp, 0x40
ret
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 8]
mov dword [esp + 8], 0x104
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x4c]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x40
ret

Function at 0x431620
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
xor eax, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x10]
push eax
push ecx
push ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
call fcn.00431550
add esp, 0xc
test eax, eax
jne 0x43166d
pop esi
mov eax, 0xfffffff6
pop ebp
add esp, 0x18
ret
push edi
push 0
lea edx, [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push edx
push ecx
push eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
push ecx
push str._Recv__d_data__errno___d
call fcn.00411930
add esp, 0xc
test edi, edi
pop edi
jne 0x4316cb
mov eax, dword [esp + 8]
test eax, eax
jbe 0x4316d5
push eax
push ebp
call fcn.00416b70
mov eax, dword [esp + 0x10]
add esp, 8
pop esi
pop ebp
add esp, 0x18
ret
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x4316e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
xor eax, eax
push ebx
mov dword [esp + 0x14], eax
push ebp
mov dword [esp + 0x1c], eax
push esi
push edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x43182c
lea ecx, [esp + 0x1c]
push 1
push ecx
push eax
call fcn.00431550
mov ecx, eax
add esp, 0xc
cmp ecx, edi
mov dword [esp + 0x14], ecx
jne 0x43172e
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebp, eax
add eax, esi
cmp eax, edi
mov dword [esp + 0x18], eax
jle 0x43182f
jmp 0x43174e
mov ecx, dword [esp + 0x14]
xor edi, edi
cmp esi, 0xfffe
jl 0x431764
mov dword [esp + 0x1c], 0xfffe
mov dword [esp + 0x24], edi
jmp 0x43177e
lea edx, [esi + ebp]
cmp edx, 0xfffe
jl 0x43177e
mov eax, 0xfffe
mov dword [esp + 0x1c], esi
sub eax, esi
mov dword [esp + 0x24], eax
push edi
push edi
lea edx, [esp + 0x18]
push edi
push edx
push ecx
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x34]
push ebx
push edx
push edi
push eax
push str.WSASend_fd_d_:_return__d_send:__u_error:_u
call fcn.00411930
add esp, 0x14
test edi, edi
jne 0x431825
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x43180e
cmp eax, esi
jae 0x4317e0
mov ecx, dword [esp + 0x20]
sub esi, eax
add ecx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
jmp 0x431800
mov edi, dword [esp + 0x28]
mov ecx, eax
sub ecx, esi
sub esi, eax
add edi, ecx
add ebp, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], edi
xor esi, esi
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.00416920
add esp, 8
lea eax, [esi + ebp]
test eax, eax
jg 0x431748
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x433c40
Capabilities:
Query environment variable
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x120]
xor ebp, ebp
stosw word es:[edi], ax
cmp esi, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
stosb byte es:[edi], al
je 0x433dcb
mov edi, dword [esp + 0x12c]
cmp edi, ebp
je 0x433dcb
cmp dword [esp + 0x124], ebp
je 0x433dcb
lea eax, [esp + 0x18]
push 0x103
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x433cc5
push 0x103
lea ecx, [esp + 0x1c]
push str.C:WINDOWSTemp
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [esp + 0x18]
push esi
push edx
push 0x447870
push 0x103
push edi
call ebx
add esp, 0x14
push ebp
push 0x80
push 2
push ebp
push ebp
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebp
cmp esi, 0xffffffff
jne 0x433d6e
cmp eax, 5
jne 0x433db7
mov ecx, dword [esp + 0x10]
cmp ecx, 0xa
jge 0x433db7
mov edx, ecx
push 0x64
inc edx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
mov eax, dword [esp + 0x128]
push eax
push str._s__d
push 0x103
push edi
call ebx
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call ebp
cmp esi, 0xffffffff
je 0x433d06
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x433dda
call ebp
push eax
push edi
push str.write_file__s_failed__errno___d
call fcn.00411930
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0x10
cmp esi, 0xffffffff
jne 0x433d6e
push eax
push edi
push str.create_file__s_failed__errno___d
call fcn.00411930
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret 0x10
Function at 0x4356f0
Capabilities:
Query environment variable
Write file on windows

Disassembly:
sub esp, 0x148
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x154]
mov ecx, 0xf
stosw word es:[edi], ax
stosb byte es:[edi], al
and esi, 0xffff
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
push esi
push str._SavePortToFile__port___d
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
call fcn.00411930
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
push 0x103
push eax
push str._TEMP_.cms.conf
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x43577d
push 0x103
lea ecx, [esp + 0x50]
push str.C:WINDOWSTemp.cms.conf
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
lea edx, [esp + 0x60]
push 0xc0000003
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4357c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x50]
push eax
push str.CreateFile__s_failed__errno___d
call fcn.00411930
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x148
ret 4
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x14]
push 0x40
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4357fe
cmp dword [esp + 8], 0x40
jne 0x4357fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x148
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x50]
push eax
push str.write_file__s_failed__errno___d
call fcn.00411930
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x148
ret 4
Function at 0x435830
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
mov edi, 1
mov dword [esp + 0xc], 0
call fcn.004356f0
test eax, eax
jne 0x43585b
push str.SavePortToFile___failed_
call fcn.00411930
add esp, 4
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWARESangforSSLSangforCSClient
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4358d0
cmp eax, 2
jne 0x4358b5
lea ecx, [esp + 8]
push ecx
push str.SOFTWARESangforSSLSangforCSClient
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4358d0
push 2
push str.HKEY_CURRENT_USERSOFTWARESangforSSLSangforCSClient
push str.RegCreateKey__s_failed__errno___d
call fcn.00411930
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ecx
ret 4
push eax
push str.HKEY_CURRENT_USERSOFTWARESangforSSLSangforCSClient
push str.RegOpenKeyEx__s_failed__errno___d
call fcn.00411930
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ecx
ret 4
and esi, 0xffff
mov dword [esp + 0x10], esi
call fcn.0040b0d0
test eax, eax
push 4
je 0x4358fa
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.SDSangforCSClientPort
push eax
jmp 0x43590d
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.SangforCSClientPort
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x435927
push eax
push str.RegSetValueEx_SangforCSClientPort_failed__errno___d
call fcn.00411930
add esp, 8
xor edi, edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret 4

Function at 0x435c00
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x440
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x435ccd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x435c63
cmp eax, 3
jne 0x435ccd
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, 0x80
push esi
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x435ccd
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push 0x44c2ec
rep stosb byte es:[edi], al
lea eax, [esi - 1]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, dword [0x4501f0]
add esp, 0x10
test ecx, ecx
je 0x435cc4
push esi
push ebx
push 0x7f3
call fcn.004111f0
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x435ce0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x3c
ret
Function at 0x435cf0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push str._ProgramFiles_Internet_Exploreriexplore.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x435d48
mov edi, str.C:Program_FilesInternet_Exploreriexplore.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call fcn.0040e7f0
add esp, 4
test eax, eax
je 0x435dae
mov edi, str._nomerge__nohome
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 8]
push edi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x435e25
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push str._nomerge__nohome__s
rep stosb byte es:[edi], al
jmp 0x435dfd
mov edi, str._nohome
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 8]
push edi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x435e25
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push str._nohome__s
rep stosb byte es:[edi], al
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push esi
call fcn.00411930
push 1
push 0
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00435c00
push esi
call sub.MFC42.DLL_operatordelete
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x435e30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push str._WINDIR_explorer.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
pop edi
je 0x435e7c
mov ecx, dword [esp + 0x10c]
push 1
push 0
lea edx, [esp + 8]
push ecx
push edx
call fcn.00435c00
add esp, 0x10
add esp, 0x108
ret
Function at 0x435f20
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
je 0x435f99
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea esi, [eax + 1]
push esi
call sub.MFC42.DLL_operatornew
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
mov dword [ebx], edi
je 0x435f99
mov ecx, esi
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x435f88
mov edi, dword [ebx]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x435f88
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov ecx, dword [ebx]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret