joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f444
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x417e90
call fcn.00416190
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 0x40f4b9
cmp byte [ebp - 0x1a0], 2
jne 0x40f4b3
mov al, byte [ebp - 0x19f]
cmp al, 2
jne 0x40f4b3
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040f5ac
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 0x40f4b3
push 1
pop eax
jmp 0x40f4bb
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 0x40f4ce
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x417ebb
call fcn.00416190
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 0x40f50f
mov ecx, dword [ebp + 8]
push 0x42187c
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
jmp 0x40f59e
push ebx
push 0x42187c
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 0x40f57f
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 0x4215b8
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 0x40f57f
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0xc]
add edi, 4
cmp dword [edi + eax], 0
jne 0x40f52a
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 0x40f8c2
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 0x40fa10
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
jne 0x40f906
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 0x40fa10
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 0x40f8ea
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 0x40f9b6
add ebx, eax
mov eax, dword [esi + 0x20]
cmp ebx, eax
jge 0x40f9b6
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 0x40f990
cmp ebx, dword [esi + 0x20]
jge 0x40f9ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi]
push 0x7ea
jmp 0x40f8f8
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 0x40fa5c
push esi
push 0
push 0x40f71a
call dword [sym.imp.MSVCRT.dll__beginthread]
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [esi + 0x38], eax
jne 0x40fa14
push ebx
push dword [esi]
push 0x7ee
push dword [esi + 0x14]
call edi
xor eax, eax
jmp 0x40fa5f
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 0x40fa29
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 0x40fa49
push ebx
push dword [esi]
push 0x7eb
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x40fa5c
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 0x40fb6b
Capabilities:
Create thread

Disassembly:
mov eax, 0x417f16
call fcn.00416190
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 0x40fced
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 8], ebx
je 0x40fced
cmp word [ebp + 0xc], bx
je 0x40fced
cmp dword [ecx + 0x34], 0x2710
jge 0x40fced
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax - 8], ebx
je 0x40fced
call fcn.0040f631
cmp ax, bx
mov dword [ebp - 0x14], eax
je 0x40fced
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 0x40fbed
call fcn.0040f0ea
mov esi, eax
jmp 0x40fbef
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 0x40fcdb
cmp dword [esi + 0x30], ebx
je 0x40fcdb
cmp eax, ebx
je 0x40fcdb
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.0040fafa
mov eax, dword [ebp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x40fc7f
mov eax, dword [eax]
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
jmp 0x40fc88
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 0x40fa64
mov byte [esi + 0x34], al
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0x28], eax
je 0x40fcdb
mov eax, dword [ebp + 0x18]
mov dword [esi], esi
cmp eax, ebx
je 0x40fcb7
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.0040fd3d
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
call dword [eax + 0x1c]
push 1
pop eax
jmp 0x40fcef
cmp esi, ebx
je 0x40fced
mov ecx, esi
call fcn.0040f170
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 0x41103f
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 0x4122c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4182b1
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], 0x41a8ac
mov dword [esp + 0x18], 8
call fcn.004123a0
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.00414b10
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x412e80
Capabilities:
Create http request

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418360
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x412fc5
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.00413b80
test eax, eax
jne 0x412eea
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 0x412f07
mov ecx, dword [esp + 0xc]
push str.127.0.0.1:0
push 3
push ecx
jmp 0x412f0f
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 0x412f25
push 0
push 0
call sub.MFC42.DLL_AfxThrowInternetException
mov eax, dword [esi + 0x78]
push 0x413c50
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x412f42
push 0
push 0
call sub.MFC42.DLL_AfxThrowInternetException
push 0
push 0x421acc
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 0x412f84
push esi
mov ecx, 0x421ab0
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 ecx, esi
call fcn.00413ba0
test eax, eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 4]
jne 0x412fc0
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 0x413090
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 0x4130c3
cmp dword [ebx + 0x68], edi
je 0x4130c8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, edi
je 0x4130c0
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 0x4130c3
mov dword [ebx + 0x68], edi
cmp dword [ebx + 0x68], edi
jne 0x413103
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 0x4130f9
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4130f9
cmp esi, eax
je 0x413145
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 0x413126
mov ecx, ebx
call fcn.00413160
test eax, eax
jne 0x413126
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 0x4139a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418468
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 0x421780
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 0x42177c
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 0x421778
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 0x413b03
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 0x414030
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.00414560
mov ecx, esi
call fcn.00412e30
test eax, eax
jne 0x414066
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 0x4140f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4140c5
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.00414e40
test eax, eax
jne 0x414146
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x11c]
cmp ecx, eax
jne 0x414153
mov eax, dword [esi + 0x118]
test eax, eax
je 0x414104
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
jmp 0x414104
mov ecx, esi
call fcn.00414ea0
test eax, eax
jne 0x414146
mov edi, dword [esi + 0xa0]
test edi, edi
je 0x41416c
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.00413090
test eax, eax
je 0x4141a3
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x18]
jmp 0x414096
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret
push 0x42187c
mov ecx, esi
call fcn.00413f40
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.00413160
test eax, eax
je 0x4141a3
mov eax, dword [esi + 0xc8]
cmp eax, 0xffffffff
je 0x41418e
cmp eax, dword [esi + 0xc4]
je 0x41418e
push 3
jmp 0x4141a5
push 0
push 2
mov ecx, esi
call fcn.004137f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 4
push 3
mov ecx, esi
call fcn.004137f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x414bb0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x414bc2
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 0x414a30
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jg 0x414c00
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], eax
test ecx, ecx
je 0x414c13
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 0x414c40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x414c88
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 0x414c73
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 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x403008
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x471020]
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 [0x471020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x471020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47304c], 0
je 0x403dcd
cmp word [0x473220], 0xd7b2
jne 0x403d95
cmp dword [0x473228], 0
jbe 0x403d95
mov eax, 0x47321c
call dword [0x473238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47106c
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 [0x471030], 0
jne 0x403de9
push 0
push 0x471064
push 0x47106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret