joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f654
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4182d5
call fcn.00416540
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x41a6d4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea eax, [esi + 0x14]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
xor ebx, ebx
test eax, eax
jle 0x40f6cc
mov eax, dword [esi + 0x30]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x40f6c6
cmp dword [edi + 0x28], 0xffffffff
je 0x40f6c6
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40f6c6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [edi + 0x30]
test edi, edi
je 0x40f6c6
push edi
lea ecx, [ebp - 0x28]
push dword [ebp - 0x20]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
inc ebx
cmp ebx, dword [esi + 0x34]
jl 0x40f695
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0xc]
mov ecx, ebx
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x10], eax
jle 0x40f712
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
jle 0x40f701
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + ecx*4]
mov dword [eax + ecx*4], edx
inc ecx
cmp ecx, dword [ebp - 0x20]
jl 0x40f6f2
push 0x1388
push 1
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 0x10], 0
cmp dword [esi + 0x34], 0
jle 0x40f776
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x40f76b
mov eax, dword [edi + 0x38]
cmp eax, 0xffffffff
je 0x40f748
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [edi + 0x38], 0xffffffff
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x40f75d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [edi + 0x28], 0xffffffff
mov ecx, edi
call fcn.0040f51b
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x34]
jl 0x40f726
lea edi, [esi + 0x2c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0041106f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00416224
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041017b
and byte [ebp - 4], 0
mov edi, ebx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x41a6d8
lea eax, [edi + 8]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and byte [ebp - 4], 0
mov ecx, edi
call fcn.00416476
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f7ef
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x4182e8
call fcn.00416540
sub esp, 0x194
lea eax, [ebp - 0x1a0]
push esi
push eax
mov esi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40f864
cmp byte [ebp - 0x1a0], 2
jne 0x40f85e
mov al, byte [ebp - 0x19f]
cmp al, 2
jne 0x40f85e
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040f957
and dword [ebp - 4], 0
add esi, 4
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x40f85e
push 1
pop eax
jmp 0x40f866
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40f879
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x418313
call fcn.00416540
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push dword [eax]
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
jne 0x40f8ba
mov ecx, dword [ebp + 8]
push 0x4218cc
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
jmp 0x40f949
push ebx
push 0x4218cc
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0xc]
push 1
pop ebx
cmp dword [eax], edi
mov dword [ebp - 4], ebx
je 0x40f92a
movsx ecx, word [esi + 0xa]
push ecx
push dword [edi + eax]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp + 0xc]
push 0x421600
push eax
call sub.MFC42.DLL_CString::Format
push str.127.0.0.1
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x14
test eax, eax
jne 0x40f92a
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0xc]
add edi, 4
cmp dword [edi + eax], 0
jne 0x40f8d5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_1
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40fc6d
Capabilities:
Create thread
Create udp socket
Send data
Send data on socket
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40fdbb
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
jne 0x40fcb1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi]
push 0x7e9
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40fdbb
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 0xc
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [ebp - 0x24], eax
mov ax, word [esi + 8]
mov word [ebp - 0x28], 2
push eax
call ebx
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x28]
push 0x10
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40fc95
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [esi + 0xc]
call edi
mov dword [ebp - 0x14], eax
mov ax, word [esi + 0x10]
push eax
mov word [ebp - 0x18], 2
call ebx
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
xor ebx, ebx
push 0x10
push eax
push ebx
push dword [esi + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_sendto]
push dword [esi + 0x1c]
push dword [esi + 0x18]
call edi
cmp eax, 0xffffffff
je 0x40fd61
add ebx, eax
mov eax, dword [esi + 0x20]
cmp ebx, eax
jge 0x40fd61
lea ecx, [ebp - 0x18]
push 0x10
push ecx
sub eax, ebx
push 0
push eax
mov eax, dword [esi + 0x1c]
add eax, ebx
push eax
push dword [esi + 0x18]
jmp 0x40fd3b
cmp ebx, dword [esi + 0x20]
jge 0x40fd79
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi]
push 0x7ea
jmp 0x40fca3
push 0
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push dword [esi]
push 0x7ec
push dword [esi + 0x14]
call edi
cmp byte [esi + 0x34], 0
je 0x40fe07
push esi
push 0
push 0x40fac5
call dword [sym.imp.MSVCRT.dll__beginthread]
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [esi + 0x38], eax
jne 0x40fdbf
push ebx
push dword [esi]
push 0x7ee
push dword [esi + 0x14]
call edi
xor eax, eax
jmp 0x40fe0a
mov eax, dword [esi + 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x40fdd4
mov eax, ebx
push eax
lea eax, [ebp - 8]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x40fdf4
push ebx
push dword [esi]
push 0x7eb
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x40fe07
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x38], ebx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ff16
Capabilities:
Create thread

Disassembly:
mov eax, 0x41836e
call fcn.00416540
sub esp, 0xc
mov eax, dword [ecx + 4]
push ebx
xor ebx, ebx
push esi
cmp dword [eax - 8], ebx
push edi
mov dword [ebp - 0x10], ecx
je 0x410098
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 8], ebx
je 0x410098
cmp word [ebp + 0xc], bx
je 0x410098
cmp dword [ecx + 0x34], 0x2710
jge 0x410098
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax - 8], ebx
je 0x410098
call fcn.0040f9dc
cmp ax, bx
mov dword [ebp - 0x14], eax
je 0x410098
push 0x40
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x40ff98
call fcn.0040f495
mov esi, eax
jmp 0x40ff9a
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
or dword [ebp - 4], 0xffffffff
push ebx
push ebx
push 1
push ebx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x2c], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x30], eax
call edi
cmp dword [esi + 0x2c], ebx
mov dword [esi + 0x3c], eax
je 0x410086
cmp dword [esi + 0x30], ebx
je 0x410086
cmp eax, ebx
je 0x410086
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 4]
add eax, 4
push eax
call sub.MFC42.DLL_CString::operator_2
mov ax, word [ebp - 0x14]
push dword [ebp + 8]
lea ecx, [esi + 0xc]
mov word [esi + 8], ax
call sub.MFC42.DLL_CString::operator_2
mov ax, word [ebp + 0xc]
mov word [esi + 0x10], ax
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x1c]
push eax
push dword [ebp + 0x10]
call fcn.0040fea5
mov eax, dword [ebp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x41002a
mov eax, dword [eax]
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
jmp 0x410033
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x40]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 8]
push esi
mov dword [esi + 0x14], eax
mov al, byte [ebp + 0x14]
push ebx
push 0x40fe0f
mov byte [esi + 0x34], al
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0x28], eax
je 0x410086
mov eax, dword [ebp + 0x18]
mov dword [esi], esi
cmp eax, ebx
je 0x410062
mov dword [eax], esi
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
push esi
push ebx
lea ecx, [edi + 0x2c]
call fcn.004100e8
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
call dword [eax + 0x1c]
push 1
pop eax
jmp 0x41009a
cmp esi, ebx
je 0x410098
mov ecx, esi
call fcn.0040f51b
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4113c7
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x412640
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x418711
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x41a91c
mov dword [esp + 0x18], 8
call fcn.00412720
lea ecx, [esi + 0x10c]
mov byte [esp + 0x18], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x108]
mov byte [esp + 0x18], 6
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0xb0]
mov dword [esp + 0xc], edi
lea ecx, [edi + 4]
mov byte [esp + 0x18], 9
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00414ec0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x413200
Capabilities:
Create http request

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4187c0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x41335e
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 4]
mov ecx, esi
push eax
mov dword [esp + 0x20], 0
call fcn.00413f30
test eax, eax
jne 0x41326a
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi + 0x38]
push 0x10000000
cmp eax, 3
push 0
jne 0x413287
mov ecx, dword [esp + 0xc]
push str.127.0.0.1:0
push 3
push ecx
jmp 0x41328f
mov edx, dword [esp + 0xc]
push 0
push eax
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x78], eax
jne 0x4132a5
push 0
push 0
call sub.MFC42.DLL_AfxThrowInternetException
mov eax, dword [esi + 0x78]
push 0x414000
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4132c2
push 0
push 0
call sub.MFC42.DLL_AfxThrowInternetException
push 0x421b2c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x421b24
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CSingleLock::Lock
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41330f
push esi
mov ecx, 0x421b08
call sub.MFC42.DLL_CMapPtrToPtr::operator__
lea ecx, [esp + 8]
mov dword [eax], 0
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CSingleLock::Unlock
mov edx, dword [0x421b24]
mov ecx, 0x421b24
call dword [edx + 0x1c]
mov ecx, esi
call fcn.00413f50
test eax, eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 4]
jne 0x413359
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x413430
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x74], edi
jne 0x413463
cmp dword [ebx + 0x68], edi
je 0x413468
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, edi
je 0x413460
mov ecx, dword [ebx + 0x6c]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebx + 0x74], eax
jne 0x413463
mov dword [ebx + 0x68], edi
cmp dword [ebx + 0x68], edi
jne 0x4134a3
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x84]
lea edx, [esp + 0x10]
push edi
push edx
push esi
push eax
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413499
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x413499
cmp esi, eax
je 0x4134e5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov edx, dword [ebx + 0x70]
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x6c]
add edx, ebp
cmp edx, eax
jbe 0x4134c6
mov ecx, ebx
call fcn.00413500
test eax, eax
jne 0x4134c6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edi, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
mov esi, dword [esp + 0x18]
mov ecx, ebp
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x70], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x413d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4188c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CTime::CTime
lea ecx, [esp + 0x38]
push 0x4217c8
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea edx, [esp + 0x20]
push 3
push edx
mov ecx, eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
push 0x4200e8
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x24]
push 0x4217c4
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CTime::Format
lea edx, [esp + 0x18]
push 3
push edx
mov ecx, eax
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x4217c0
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x10]
push str._H:_M:_S
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 8
call sub.MFC42.DLL_CTime::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._s___s__s__s__s_GMT
push ecx
mov byte [esp + 0x4c], 9
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
push str.If_Modified_Since:__s
push eax
mov byte [esp + 0x3c], 0xa
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [eax - 8]
push 0x20000000
push ecx
mov ecx, dword [esi + 0x80]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
pop esi
jne 0x413eb3
push eax
push eax
call sub.MFC42.DLL_AfxThrowInternetException
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x4143e0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0xb8]
push eax
push ecx
mov ecx, esi
call fcn.00414910
mov ecx, esi
call fcn.004131b0
test eax, eax
jne 0x414416
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.WININET.dll_InternetReadFileExA]
lea ebx, [esi + 0x88]
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0xc8]
mov dword [ebx], 0x28
mov dword [esi + 0x9c], edx
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + 0x60]
push esi
push 1
push ebx
push edx
mov dword [esi + 0xa0], ecx
call ebp
test eax, eax
jne 0x4144a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x414475
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.004151f0
test eax, eax
jne 0x4144f6
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x11c]
cmp ecx, eax
jne 0x414503
mov eax, dword [esi + 0x118]
test eax, eax
je 0x4144b4
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
jmp 0x4144b4
mov ecx, esi
call fcn.00415250
test eax, eax
jne 0x4144f6
mov edi, dword [esi + 0xa0]
test edi, edi
je 0x41451c
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc4]
sub edx, edi
add eax, edi
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x9c]
push edi
push edx
mov ecx, esi
mov dword [esi + 0xc4], eax
call fcn.00413430
test eax, eax
je 0x414553
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x18]
jmp 0x414446
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret
push 0x4218cc
mov ecx, esi
call fcn.004142f0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.00413500
test eax, eax
je 0x414553
mov eax, dword [esi + 0xc8]
cmp eax, 0xffffffff
je 0x41453e
cmp eax, dword [esi + 0xc4]
je 0x41453e
push 3
jmp 0x414555
push 0
push 2
mov ecx, esi
call fcn.00413ba0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 4
push 3
mov ecx, esi
call fcn.00413ba0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x414f60
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x414f72
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call edi
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
push 0
push esi
push 0x414de0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jg 0x414fb0
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], eax
test ecx, ecx
je 0x414fc3
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x10]
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
mov ebx, eax
push ecx
call edi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
sete al
pop esi
pop ecx
ret
Function at 0x414ff0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x415038
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x415023
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 4], 0
pop esi
ret
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret
Function at 0x403008
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403080
xor eax, eax
push ebp
push 0x403079
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403080
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47e04c], 0
je 0x403dcd
cmp word [0x47e220], 0xd7b2
jne 0x403d95
cmp dword [0x47e228], 0
jbe 0x403d95
mov eax, 0x47e21c
call dword [0x47e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47c06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403df4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47c030], 0
jne 0x403de9
push 0
push 0x47c064
push 0x47c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret