joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ba78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 2
push 0x476548
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call sub.MFC42.DLL_CString::operator_1
push 0x47654c
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call sub.MFC42.DLL_CString::operator_1
push 0x476550
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call sub.MFC42.DLL_CString::operator_1
push 0x476554
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42.DLL_CString::operator_1
push 0x476558
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call sub.MFC42.DLL_CString::operator_1
push 0x47655c
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40179a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bb70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp + 8]
call fcn.004020a0
test eax, eax
je 0x4017f8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 3
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x80]
jmp 0x401959
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 1
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401874
push 0
push 0
push str.CXSyncExeApp::CreateDirectory_GrantAccess___:_Fail_to_get_Everyone_SID___
call sub.MFC42.DLL_AfxMessageBox_1
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x84]
jmp 0x401959
push 0x40
push 0
lea ecx, [ebp - 0x7c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x7c], 0x10000000
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 5
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x7c]
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
push 1
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x28], 0xc
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401913
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 0x10], 0
je 0x401923
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], 0
je 0x401933
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp dword [ecx], 0
sete dl
mov dword [ebp - 0x88], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x407800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov byte [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov edx, dword [ebp - 0xa]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0xe]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
push ecx
push 0x46d424
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
push 8
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x52c
push ecx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40786f
jmp 0x40790d
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0
je 0x40788f
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx], 0
mov ecx, dword [ebp - 0x20]
call fcn.00408308
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 8
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0x52c
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x105
push 0
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x20]
add ecx, 0x52c
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x53c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x538]
push edx
push 0x46d434
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov ecx, dword [ebp - 0x20]
call fcn.00407db6
mov esp, ebp
pop ebp
ret

Function at 0x408010
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 8
push ecx
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
jge 0x408036
jmp 0x4080c4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
shl eax, 0xa
shl eax, 0xa
cmp dword [ebp - 0x10], eax
jge 0x408049
jmp 0x4080c4
mov ecx, dword [ebp - 0x28]
cmp dword [ecx], 0
je 0x408069
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [ecx], 0
mov ecx, dword [ebp - 0x28]
call fcn.00408308
mov edx, dword [ebp - 0x28]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x4080c4
push 0x46d4c0
mov ecx, dword [ebp - 0x28]
add ecx, 8
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov edx, dword [ebp - 0x28]
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x4080b7
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x110], 1
jmp 0x4080c4
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x110], 0
mov esp, ebp
pop ebp
ret
Function at 0x408308
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x10c], ecx
push 0x105
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
add ecx, 8
push ecx
push str._s.bak
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x10c]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esp, ebp
pop ebp
ret

Function at 0x408f05
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp - 0x11c]
add eax, 8
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
jmp 0x408f4e
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ebp - 0x114]
jge 0x408fdb
mov eax, dword [ebp - 0x11c]
add eax, dword [ebp - 0x10c]
movsx ecx, byte [eax + 8]
cmp ecx, 0x5c
jne 0x408fd6
mov edx, dword [ebp - 0x110]
and edx, 0xff
test edx, edx
jne 0x408f8a
mov byte [ebp - 0x110], 1
jmp 0x408fd6
push 0x105
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x11c]
add edx, 8
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
jmp 0x408f3f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40af0b
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov byte [ebp - 0x30], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 8], 0
push 0x1e
push 0
lea eax, [ebp - 0x30]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1e
lea ecx, [ebp - 0x30]
push ecx
call sub.WSOCK32.dll_gethostname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x40af6f
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.CSockUtil::GetLocalIpAddr__gethostname___Fail__ErrCode___d
push 4
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
or eax, 0xffffffff
jmp 0x40afdf
lea eax, [ebp - 0x30]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40afa4
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.CSockUtil::GetLocalIpAddr__gethostbyname___Fail__ErrCode___d
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov eax, 0xfffffffe
jmp 0x40afdf
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
push 4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call sub.WSOCK32.dll_inet_ntoa
push eax
push 0x46d8d0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40b02b
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.CSockUtil::RecvTcpSocket__recv___Fail__ErrCode___d
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
or eax, 0xffffffff
jmp 0x40b038
cmp dword [ebp - 4], 0
jne 0x40b035
xor eax, eax
jmp 0x40b038
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40b15c
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x11c], eax
mov ecx, 1
test ecx, ecx
je 0x40b2eb
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x10c], 0
cmp dword [ebp - 0x10c], 0x40
jae 0x40b1d1
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x108], eax
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
xor edx, edx
test edx, edx
jne 0x40b1a9
lea eax, [ebp - 8]
push eax
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp + 8]
add edx, 1
push edx
call sub.WSOCK32.dll_select
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x40b224
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.CSockUtil::RecvTcpSocketTimeout__select___Fail__ErrCode___d
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
or eax, 0xffffffff
jmp 0x40b2f1
cmp dword [ebp - 0x110], 0
jne 0x40b25c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
sub ecx, dword [ebp - 0x11c]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x3e8
cmp ecx, edx
jbe 0x40b257
jmp 0x40b2eb
jmp 0x40b184
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040afe4
add esp, 0xc
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jg 0x40b290
mov eax, dword [ebp - 0x110]
jmp 0x40b2f1
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x120]
sub ecx, dword [ebp - 0x110]
mov dword [ebp - 0x120], ecx
cmp dword [ebp - 0x120], 0
jg 0x40b2bf
jmp 0x40b2eb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
sub edx, dword [ebp - 0x11c]
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
cmp edx, eax
jbe 0x40b2e6
jmp 0x40b2eb
jmp 0x40b184
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret
Function at 0x40b402
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40b489
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40b462
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.CSockUtil::SendTcpSocket__send___Fail__ErrCode___d
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
or eax, 0xffffffff
jmp 0x40b48c
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jne 0x40b487
jmp 0x40b489
jmp 0x40b41c
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x10
push 0
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recvfrom
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40b736
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.CSockUtil::RecvUdpSocket__recvfrom___Fail__ErrCode___d
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
or eax, 0xffffffff
jmp 0x40b775
cmp dword [ebp + 0x14], 0
je 0x40b758
mov ecx, dword [ebp - 0xc]
push ecx
call sub.WSOCK32.dll_inet_ntoa
push eax
push 0x46dc8c
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x40b772
mov ax, word [ebp - 0xe]
push eax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x40c572
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c446
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
cmp dword [ebp + 8], 0
ja 0x40c59a
xor eax, eax
jmp 0x40c652
push 0x64
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
jg 0x40c5b5
xor eax, eax
jmp 0x40c652
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [ebp - 0x10]
call fcn.004020a0
test eax, eax
je 0x40c5f7
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x78]
jmp 0x40c652
push 0x46dca8
push 3
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x88]
push edx
call fcn.0040c7c0
and eax, 0xff
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40c89d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c4a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call sub.MFC42.DLL_CPtrList::CPtrList
mov dword [ebp - 4], 0
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call sub.MFC42.DLL_CPtrList::CPtrList
mov byte [ebp - 4], 1
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call sub.MFC42.DLL_CPtrList::CPtrList
mov byte [ebp - 4], 2
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x88
call sub.MFC42.DLL_CPtrList::CPtrList
mov byte [ebp - 4], 3
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call sub.MFC42.DLL_CPtrList::CPtrList
mov byte [ebp - 4], 4
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0xc0
call sub.MFC42.DLL_CPtrList::CPtrList
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xdc
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x46129c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
push 0x10
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xe4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xe0], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c9cd
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c4b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xe8], ecx
push 0x14
call fcn.00407590
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x40ca2a
push 0
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__Trident_7.0__rv:11.0__like_Gecko
mov ecx, dword [ebp - 0x18]
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov dword [ebp - 0x20], eax
jmp 0x40ca31
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xe0], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xe8]
mov cx, word [eax + 0xc]
mov word [ebp - 0x10], cx
push 0
push 0
mov dx, word [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xe8]
add ecx, 0x10
call fcn.004020c0
push eax
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xe0]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xe4], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xe4], 0
jne 0x40cace
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xe8]
mov ecx, dword [eax + 0x10]
push ecx
push str.CSyncEngine::DownloadListFileFromServer__GetHttpConnection__s___d__returns_NULL
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x14
or eax, 0xffffffff
jmp 0x40cb66
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
push edx
push str.CSyncEngine::InitSyncEngine__m_dwConnectTimeOut_d__m_dwSendTimeOut_d__m_dwRecvTimeOut_d
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0
jbe 0x40cb1c
push 0
push 4
mov edx, dword [ebp - 0x1c]
add edx, 4
push edx
push 2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xe4]
call sub.MFC42.DLL_CInternetConnection::SetOption
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 8], 0
jbe 0x40cb40
push 0
push 4
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
push 5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xe4]
call sub.MFC42.DLL_CInternetConnection::SetOption
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xc], 0
jbe 0x40cb64
push 0
push 4
mov edx, dword [ebp - 0x1c]
add edx, 0xc
push edx
push 6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xe4]
call sub.MFC42.DLL_CInternetConnection::SetOption
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4