joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d040
Capabilities:
Create process on windows
Query service status

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_printf]
push esi
push edi
xor esi, esi
push ebx
push str.StartService:_ServiceName_s_n
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call ebp
add esp, 8
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, esi
jne 0x40d091
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_SC_MANAGER_ALL_ACCESS__fails__LastError0x_x_n
call ebp
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 4
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40d0b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.OpenService_ServiceName_s__SERVICE_START__fails__LastError0x_x_n
call ebp
add esp, 0xc
jmp 0x40d15c
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40d0d3
cmp dword [esp + 0x1c], 4
je 0x40d154
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str._CheckNetshSvc__NetshSvc_not_start.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0
push 0
push 0
push str.CheckSvc.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 4
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40d139
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40d130
cmp dword [esp + 0x1c], 4
je 0x40d154
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
mov ebp, dword [esp + 0x14]
inc ebp
push 0x1f4
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebp, 0xa
jae 0x40d15c
jmp 0x40d109
mov dword [esp + 0x10], 1
test esi, esi
je 0x40d167
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x40f860
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareNetentSecISCClient
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40f893
xor eax, eax
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.IscServiceInterPort
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40f8e2
test esi, esi
je 0x40f8db
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x10
ret
test esi, esi
push edi
mov edi, dword [esp + 0xc]
je 0x40f8f2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret
Function at 0x411620
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41abf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 1
call sub.MFC42.DLL_CWnd::UpdateData
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SoftwareNetentSecISCClient
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x411747
cmp dword [edi + 0x10f0], ebx
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], esi
je 0x411722
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push str.AutoLogon
push esi
mov dword [esp + 0x2c], 1
call ebp
push ebx
lea ecx, [edi + 0x10e4]
call sub.MFC42.DLL_CString::GetBuffer
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push 0
push str.IscUsername
push esi
call ebp
add edi, 0x10e8
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x28], 1
call fcn.004117e0
add esp, 4
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push str.IscPassword
push esi
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
pop ebp
jmp 0x41173c
push 4
lea eax, [esp + 0x14]
push eax
push 4
push ebx
push str.AutoLogon
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x411747
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x4117e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x100
push edi
mov edi, dword [esp + 0x108]
mov eax, dword [edi]
mov eax, dword [eax - 8]
test eax, eax
je 0x411859
mov ecx, dword [0x429ed8]
cmp eax, dword [ecx - 8]
jg 0x411859
push esi
xor esi, esi
test eax, eax
jle 0x41182e
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [0x429ed8]
mov cl, byte [edx + esi]
mov dl, byte [eax + esi]
add eax, esi
xor dl, cl
mov byte [eax], dl
mov edx, dword [edi]
mov eax, dword [edx - 8]
inc esi
cmp esi, eax
jl 0x411809
mov eax, dword [edi]
mov eax, dword [eax - 8]
lea ecx, [esp + 8]
push ecx
push eax
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.mcl.dll_mcl_Base64Encode]
add esp, 0xc
lea edx, [esp + 8]
push edx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
pop esi
pop edi
add esp, 0x100
ret
Function at 0x411870
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x100
push ebp
mov ebp, dword [esp + 0x108]
mov eax, dword [ebp]
mov eax, dword [eax - 8]
test eax, eax
je 0x4118e0
push esi
lea ecx, [esp + 8]
push ecx
push eax
push 0
mov ecx, ebp
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.mcl.dll_mcl_Base64Decode]
mov esi, eax
add esp, 0xc
xor edx, edx
test esi, esi
jle 0x4118ce
push ebx
push edi
mov edi, dword [0x429ed8]
lea eax, [esp + 0x10]
sub edi, eax
mov bl, byte [esp + edx + 0x10]
lea ecx, [esp + edx + 0x10]
mov al, byte [edi + ecx]
xor bl, al
inc edx
cmp edx, esi
mov byte [ecx], bl
jl 0x4118b8
pop edi
pop ebx
lea ecx, [esp + 8]
push ecx
mov ecx, ebp
mov byte [esp + esi + 0xc], 0
call sub.MFC42.DLL_CString::operator_2
pop esi
pop ebp
add esp, 0x100
ret
Function at 0x412200
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41ad29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call dword [sym.imp.util.dll_public:_void___thiscall_RSThread::constructor_void_]
xor ebx, ebx
lea ecx, [esi + 0x4c]
mov dword [esp + 0x18], ebx
mov byte [esi + 0x3d], bl
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.RSMsgThread::StartWait
mov byte [esi + 0x50], 1
mov dword [esi], 0x41d4c0
call edi
push str.RSMsgThread::EndWait__
mov dword [0x429f14], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [0x429f10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov ecx, dword [eax]
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x34], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x38], ecx
mov dl, byte [eax + 0xc]
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x3c], dl
mov eax, dword [eax + 0x10]
mov dword [esi + 0x40], eax
mov dword [esi + 0x2c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x412470
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x412481
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
ret

Function at 0x412490
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4124d3
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x28]
test ecx, ecx
mov dword [esi + 0x24], 0
je 0x4124b7
mov edx, dword [ecx]
call dword [edx + 0x60]
mov eax, dword [esi + 0x54]
push 0x1388
push eax
mov dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
pop esi
ret

Function at 0x414fd0
Capabilities:
Get routing table

Disassembly:
push ecx
push esi
push 0
lea eax, [esp + 8]
push eax
push 0
mov dword [esp + 0x10], 0
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
je 0x414ff2
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x415009
pop esi
pop ecx
ret
push 0
lea edx, [esp + 8]
push edx
push esi
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
je 0x415029
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x415860
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
test esi, esi
push edi
mov ebx, ecx
mov ebp, 1
je 0x41590a
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [esp + 0x14], 0x67
call edi
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
jne 0x4158c2
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41590a
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4158e1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, ebx
call fcn.00415780
push str.255.255.255.255
call edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41590a
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call fcn.00415050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x415920
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
test esi, esi
push edi
mov edi, ecx
mov ebp, 1
je 0x415a08
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [esp + 0x14], 0x68
call ebx
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
jne 0x41598a
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x415a08
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x4159c7
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, edi
call fcn.00415780
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edx, eax
and edx, ecx
and eax, esi
cmp eax, edx
jne 0x4159c7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
push ecx
mov ecx, edi
call fcn.00415a30
test eax, eax
je 0x4159df
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
push str.255.255.255.255
call ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415a08
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00415250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x415b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push esi
push edi
mov edi, 1
call fcn.00414fd0
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x415cdb
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
push eax
push ecx
call fcn.00415a20
mov dword [esp + 0x18], eax
mov eax, dword [esi]
add esp, 8
test eax, eax
mov dword [esp + 0xc], 0
jbe 0x415cd1
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ebx, [esi + 8]
mov eax, dword [ebx - 4]
cmp eax, dword [esp + 0x88]
jne 0x415bf1
mov ecx, dword [ebx]
cmp ecx, dword [esp + 0x8c]
mov dword [esp + 0x10], ecx
je 0x415c0a
cmp eax, dword [esp + 0x18]
jne 0x415cb9
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
mov dword [esp + 0x10], ecx
jne 0x415cb9
mov edx, dword [ebx + 8]
push eax
mov dword [esp + 0x20], edx
call ebp
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x64]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call ebp
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x44]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x24]
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x10]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x78]
push eax
push str.isc_delroute__s__s__d__s__d__d_n
call fcn.00406c50
mov esi, dword [esp + 0x3c]
add esp, 0x1c
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
inc eax
add ebx, 0x38
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x415bd6
pop ebp
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 0x74
ret 8

Function at 0x416d90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
lea eax, [esp + 0x24]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x416df5
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x12c]
push 0x429870
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x138]
push ecx
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 0x14
test eax, eax
jne 0x416df5
push eax
push 1
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.util.dll_int___cdecl_Exec_char___char___int__int_]
add esp, 0x10
add esp, 0x22c
ret
Function at 0x417d10
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
lea edx, [esp + 0x28]
push edx
mov ebp, 1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 2
mov dword [esp + 0x24], 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], ebx
call dword [0x42a3a8]
mov esi, eax
cmp esi, ebx
jl 0x417deb
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push edi
push ebx
push ebx
push 0x10
push ebx
push 0xc11c
push ebx
push edi
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], 2
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
call dword [0x42a398]
mov esi, eax
cmp esi, ebx
jl 0x417deb
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov ebp, eax
je 0x417deb
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x417deb
mov edx, dword [esp + 0x38]
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x417de3
cmp eax, ebx
je 0x417de3
push ebp
call dword [0x42a3c0]
jmp 0x417deb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push edi
call dword [0x42a3a4]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x417e10
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov ebp, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
xor esi, esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push esi
push esi
push 0x10
push esi
push 0xc11c
push ecx
push esi
push ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], 2
mov dword [esp + 0x48], esi
mov dword [esp + 0x58], 1
mov dword [esp + 0x54], esi
call dword [0x42a398]
cmp eax, 0x90312
jne 0x417ebb
mov ecx, dword [esp + 0x18]
cmp ecx, esi
mov edi, dword [esp + 0x34]
je 0x417ea9
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x417ea9
push esi
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x417ec3
cmp eax, esi
je 0x417ec3
mov edx, dword [esp + 0x20]
push edx
call dword [0x42a3c0]
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x44]
push ecx
push 1
push ebx
push ebp
push edi
call fcn.00417ef0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x20]
push eax
call dword [0x42a3c0]
push ebx
call dword [0x42a3a4]
pop edi
pop esi
pop ebp
mov eax, 0x80090304
pop ebx
add esp, 0x20
ret
Function at 0x418980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b45b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x410]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi]
mov ebp, dword [sym.imp.CRYPT32.dll_CertNameToStrA]
push 0x3e8
lea eax, [esp + 0x1c]
push eax
push 0x28000003
add ecx, 0x30
push ecx
push edx
mov dword [esp + 0x41c], 0
call ebp
test eax, eax
jne 0x4189fa
lea ecx, [esp + 0x10]
mov dword [esp + 0x408], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x418b6d
push 0x429dbc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x428db8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [edi + 0xc]
mov eax, dword [edi]
push 0x3e8
lea ecx, [esp + 0x1c]
push ecx
push 0x28000003
add edx, 0x18
push edx
push eax
call ebp
test eax, eax
jne 0x418a5e
lea ecx, [esp + 0x10]
mov dword [esp + 0x408], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x418b6d
push 0x429db0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x428db8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
test edi, edi
mov ebx, edi
je 0x418b43
mov eax, dword [edi + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
push ebx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.CRYPT32.dll_CertGetIssuerCertificateFromStore]
mov esi, eax
test esi, esi
je 0x418b38
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
push 0x3e8
lea ecx, [esp + 0x1c]
push ecx
push 0x20000003
add edx, 0x30
push edx
push eax
call ebp
test eax, eax
je 0x418a43
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
push 0x3e8
lea ecx, [esp + 0x1c]
push ecx
push 0x20000003
add edx, 0x18
push edx
push eax
call ebp
test eax, eax
je 0x418a43
push 0x429da4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x428db8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
cmp ebx, edi
je 0x418b31
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov ebx, esi
jmp 0x418a92
cmp ebx, edi
je 0x418b43
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov ecx, dword [esp + 0x414]
lea edx, [esp + 0x10]
push edx
call fcn.00419824
lea ecx, [esp + 0x10]
mov dword [esp + 0x408], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x400]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3fc
ret
Function at 0x418b90
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x114]
push esi
mov esi, dword [esp + 0x114]
lea ecx, [esp + 4]
push ecx
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x418bea
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
pop esi
add esp, 0x10c
ret
xor eax, eax
pop esi
add esp, 0x10c
ret

Function at 0x418d20
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x105
mov dword [esi], ebx
mov byte [esi + 4], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esi + 0x1c], edi
je 0x418d7e
mov ecx, 0x41
xor eax, eax
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esi + 0x1c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esi + 0x1c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov dword [esi + 0x20], eax
mov byte [eax], bl
mov eax, dword [esi + 0x20]
add esp, 8
inc eax
mov dword [esi + 0x20], eax
push str.GlobalASGCLIENT_FILELOG
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x418dcd
push 6
push eax
call fcn.00418c00
mov edx, dword [esi + 0x18]
add esp, 8
mov byte [esi + 4], 1
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x418dcd
cmp eax, 0xffffffff
je 0x418dcd
mov ecx, esi
call fcn.00419040
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov word [esi + 0xe], bx
mov word [esi + 0x10], bx
mov word [esi + 0x12], bx
mov word [esi + 0x14], bx
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x418f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
push esi
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 8], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 0x201
push 0
push str.SOFTWARENetentSec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x418fa2
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.LogLevel
push eax
mov dword [esp + 0x20], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x418fd3
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x10]
mov eax, dword [edx]
mov ecx, eax
shr eax, 0x10
and ecx, 0xffff
cmp eax, edi
je 0x418fdb
inc esi
add edx, 4
cmp esi, 8
jl 0x418fb9
pop edi
xor al, al
pop esi
add esp, 0x28
ret
mov edx, dword [esp + 0x38]
pop edi
mov al, 1
pop esi
mov dword [edx], ecx
add esp, 0x28
ret