joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51de40
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51de78
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051becd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051bea5
jmp 0x51de84
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51f52e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51f570
call fcn.005252dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51f570
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x51f567
xor eax, eax
jmp 0x51f578
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051f57e
pop edi
pop esi
pop ebx
ret 4

Function at 0x52580c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x52583a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x525858
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00525772
jmp 0x525858
mov eax, dword [esi + 0x14]
test eax, eax
je 0x525858
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00525772
test edi, edi
mov eax, edi
jne 0x525842
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402630
Capabilities:
Check os version

Disassembly:
mov eax, 0x40dd79
call fcn.0040d5b0
sub esp, 0x20c
push ebx
push esi
push edi
mov esi, ecx
push 1
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x3f0]
xor ebx, ebx
cmp eax, 1
mov dword [ebp - 4], ebx
jne 0x402668
push 0x76
jmp 0x402688
cmp eax, 2
jne 0x402671
push 0x77
jmp 0x402688
cmp eax, 3
jne 0x40267a
push 0x78
jmp 0x402688
cmp eax, 4
jne 0x402775
push 0x96
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esi + 0x3e4]
push esi
push dword [ebp - 0x10]
lea edi, [esi + 0x3e4]
lea ecx, [ebp - 0x218]
push 0x1004
push eax
push ebx
push ebx
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4026cb
push 0x58
cmp al, 5
pop ecx
jae 0x4026ce
push 0x4c
pop ecx
mov dword [ebp - 0x1b8], ecx
lea ecx, [ebp - 0x218]
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x402756
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x218]
push eax
call sub.MFC42.DLL_CFileDialog::GetPathName
push dword [ebp - 0x1c]
mov eax, dword [edi]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
je 0x402714
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator_1
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CDialog::CDialog
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x4027d4
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CDialog::CDialog
jmp 0x4027c6
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
push 0x79
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0x67
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::LoadStringA
push ebx
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4035b6
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40e030
call fcn.0040d5b0
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push edi
push eax
push 0x20019
push 0
push str.SoftwareTencentPlatForm_Type_List1
mov esi, ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40361a
push 0x50
pop edi
push edi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 1
push ecx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
push eax
push 0
push str.TypePath
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403621
xor eax, eax
jmp 0x4036b1
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.0040d242
and dword [ebp - 4], 0
add esi, 0x13c
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x5c
mov ecx, esi
or edi, 0xffffffff
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40366b
mov edi, eax
inc eax
push eax
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find
jmp 0x403657
inc edi
lea eax, [ebp - 0x24]
push edi
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x405dea
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40e610
call fcn.0040d5b0
sub esp, 0x10
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x10]
pop ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 0x20019
push esi
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x405f10
mov esi, 0x104
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x1c]
push edi
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
jne 0x405f10
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040d242
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [ebp - 0x10]
or esi, 0xffffffff
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x405eb1
mov esi, eax
inc eax
push eax
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
jmp 0x405e9c
inc esi
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [ebp + 0x14]
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [ebp + 0x18]
push eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x406cb9
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40e86b
call fcn.0040d5b0
sub esp, 0x1c
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push 1
lea ecx, [ebp - 0x10]
pop ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push str.SoftwareTencentPlatForm_Type_List_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406d2c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040d224
mov dword [ebp - 0x18], ebx
jmp 0x406e06
push 0x50
pop esi
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x28]
push edi
push eax
push 0
push str.TypePath
push dword [ebp - 0x20]
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406d6f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040d224
mov dword [ebp - 0x18], ebx
jmp 0x406e06
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.0040d242
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_1
push 0x5c
lea ecx, [ebp - 0x10]
or esi, 0xffffffff
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x406db4
mov esi, eax
inc eax
push eax
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
jmp 0x406d9f
inc esi
lea eax, [ebp + 0xc]
push esi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040d224
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408d49
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push dword [esi + 0x20]
call edi
test eax, eax
jne 0x408d73
push dword [esi + 0xd4]
call edi
test eax, eax
je 0x408ec3
xor edi, edi
cmp dword [esi + 0x88], edi
je 0x408ec3
cmp dword [esi + 0x78], edi
je 0x408d95
mov ecx, esi
call fcn.00409abd
push 1
pop eax
jmp 0x408ec5
mov ecx, esi
mov dword [esi + 0x7c], edi
call fcn.00409aa0
test eax, eax
je 0x408de4
mov dword [esi + 0x84], edi
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x4091ff
push edi
push edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0xa4], eax
je 0x408ec3
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp + 8]
mov dword [esi + 0x78], 1
mov dword [esi + 0x7c], eax
jmp 0x408d8d
mov eax, dword [esi + 0xac]
cmp eax, edi
je 0x408ec3
cmp dword [esi + 0xd0], edi
je 0x408e05
push 1
pop eax
mov dword [esi + 0x78], eax
jmp 0x408ec5
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xac]
lea edx, [ebp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ebx, dword [esi + 0xe0]
cmp ebx, edi
jl 0x408e33
cmp dword [esi + 0x80], edi
mov eax, ebx
jne 0x408e36
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0xe4]
mov dword [ebp - 4], eax
cmp ecx, edi
jl 0x408e4b
cmp dword [esi + 0x80], edi
jne 0x408e4e
mov ecx, dword [esi + 0x58]
xor edx, edx
cmp dword [esi + 0x80], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
je 0x408e73
cmp ebx, edi
jl 0x408e73
cmp dword [esi + 0xe4], edi
jl 0x408e73
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp + 8]
neg edx
push edx
mov eax, dword [esi + 0xac]
push dword [ebp - 8]
mov ebx, dword [eax]
push dword [ebp + 8]
push edi
push ecx
push dword [ebp - 4]
push edi
push edi
push dword [esi + 0x8c]
push eax
call dword [ebx + 0x20]
test eax, eax
jne 0x408d8d
mov eax, dword [esi + 0xd4]
push 1
pop ebx
cmp eax, edi
push edi
mov dword [esi + 0x78], ebx
push edi
je 0x408eb6
push eax
jmp 0x408eb9
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, ebx
jmp 0x408ec5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408ecc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], ecx
call sub.MFC42.DLL_AfxGetModuleState
push dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x408f75
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x408f75
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x408f75
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x408f71
test ebx, ebx
je 0x408f71
push edi
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
push edi
push esi
call fcn.0040888d
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop ebx
jmp 0x408f77
xor edi, edi
jmp 0x408f65
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x40a5c2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x40ec10
call fcn.0040d5b0
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call sub.MFC42.DLL_CString::CString_1
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40b0db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x74], edi
jne 0x40b10e
cmp dword [esi + 0x68], edi
je 0x40b113
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, edi
je 0x40b10b
push dword [esi + 0x6c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi + 0x74], eax
jne 0x40b10e
mov dword [esi + 0x68], edi
cmp dword [esi + 0x68], edi
jne 0x40b13f
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x84]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b157
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x40b157
cmp dword [ebp + 0xc], eax
je 0x40b171
jmp 0x40b157
mov eax, dword [esi + 0x70]
mov edi, dword [ebp + 0xc]
add eax, edi
cmp eax, dword [esi + 0x6c]
jbe 0x40b15b
mov ecx, esi
call fcn.0040b17a
test eax, eax
jne 0x40b15b
xor eax, eax
jmp 0x40b174
mov eax, dword [esi + 0x70]
push edi
push dword [ebp + 8]
add eax, dword [esi + 0x74]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x70], edi
push 1
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x40b257
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x40ed7c
call fcn.0040d5b0
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x78], ebx
je 0x40b274
cmp dword [esi + 0x7c], ebx
je 0x40b27c
push 3
pop eax
jmp 0x40b3c8
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x18]
push 0x20000000
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
mov eax, dword [esi + 0xb0]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
call sub.MFC42.DLL_AfxParseURLEx
test eax, eax
je 0x40b394
cmp dword [ebp - 0x20], 3
jne 0x40b394
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x58]
push eax
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x5c]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push esi
push ebx
mov eax, dword [ecx - 8]
push 3
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [edx - 8]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [esi + 0x78]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 0x7c], eax
jne 0x40b377
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40b346
push eax
push ebx
call sub.MFC42.DLL_AfxThrowInternetException
lea eax, [ebp - 0x28]
push 1
push eax
mov ecx, esi
call fcn.0040c5ed
test eax, eax
je 0x40b35b
push 6
jmp 0x40b396
mov eax, dword [ebp - 0x28]
cmp eax, dword [esi + 0x11c]
jne 0x40b388
mov eax, dword [esi + 0x114]
cmp eax, ebx
je 0x40b377
push eax
push ebx
call sub.MFC42.DLL_AfxThrowInternetException
push dword [esi + 0x11c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esi + 0x7c], ebx
jne 0x40b3d6
push 0x414440
mov ecx, esi
call fcn.0040bb62
push 3
pop esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push 2
jmp 0x40b396
Function at 0x40bc20
Capabilities:
Read data from internet
Receive data

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push dword [esi + 0xc8]
push dword [esi + 0xb8]
call fcn.0040c012
mov ecx, esi
call fcn.0040af18
test eax, eax
je 0x40bd19
push 0x28
lea ebx, [esi + 0x88]
pop edi
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x64]
mov ebp, dword [esi + 0xc8]
add esp, 0xc
mov dword [ebx], edi
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x60]
push esi
push 1
push ebx
push dword [esi + 0x80]
mov dword [esi + 0xa0], eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x40bcd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40bc9f
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
lea eax, [esp + 0x10]
push 1
push eax
mov ecx, esi
call fcn.0040c5ed
test eax, eax
jne 0x40bd1d
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x118]
jne 0x40bd0d
mov eax, dword [esi + 0x114]
test eax, eax
je 0x40bcdc
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
jmp 0x40bcdc
mov ecx, esi
call fcn.0040c639
test eax, eax
jne 0x40bd1d
mov edi, dword [esi + 0xa0]
test edi, edi
je 0x40bd21
add dword [esi + 0xc4], edi
push edi
push dword [esi + 0x9c]
mov ecx, esi
sub ebp, edi
call fcn.0040b0db
test eax, eax
je 0x40bd52
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x18]
jmp 0x40bc6d
push 0x414440
mov ecx, esi
call fcn.0040bb62
push 3
jmp 0x40bd5f
push 6
jmp 0x40bd5f
mov ecx, esi
call fcn.0040b17a
test eax, eax
je 0x40bd52
mov eax, dword [esi + 0xc8]
cmp eax, 0xffffffff
je 0x40bd43
cmp eax, dword [esi + 0xc4]
je 0x40bd43
push 3
jmp 0x40bd54
push 0
push 2
mov ecx, esi
call fcn.0040b5c5
xor eax, eax
jmp 0x40bd60
push 4
push 3
mov ecx, esi
call fcn.0040b5c5
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40c50a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 4], ebx
je 0x40c51f
xor eax, eax
jmp 0x40c578
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call edi
push dword [esi + 0x14]
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push esi
push 0x40c3e8
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
jle 0x40c51b
cmp dword [esi + 0xc], ebx
mov dword [esi + 4], eax
je 0x40c55d
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x10]
mov dword [ebp - 8], eax
call edi
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c57d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40c5b7
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40c5a6
push dword [esi + 0x14]
jmp 0x40c5ba
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 4], 0
pop esi
ret
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret

Function at 0x401af5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b34
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b34
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b34
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b34
cmp dword [ecx + 0x74], 0xe
jbe 0x401b34
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret