joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c008
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x49c112
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49c0f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
call fcn.0047e108
call fcn.0047f140
call fcn.0047e024
mov dword [ebx + 0x10], eax
call fcn.004ae0ac
lea eax, [ebp - 0x10]
mov edx, 1
mov cl, 1
call fcn.0042d7b0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x49c124
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x88]
push 0x49c134
call sub.user32.dll_RegisterWindowMessageW
mov dword [0x4c52bc], eax
push 0x49c15c
call sub.user32.dll_RegisterWindowMessageW
mov dword [0x4c52c0], eax
push 0x49c180
call sub.user32.dll_RegisterWindowMessageW
mov dword [0x4c52c4], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 8]
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x10]
cmp dword [ebx + 0x18], 0
jne 0x49c0e1
cmp dword [0x4bf39c], 0xffffffff
je 0x49c0e1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49c0fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c119
lea eax, [ebp - 0x10]
call fcn.00428100
ret
Function at 0x4af9fc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
call fcn.00406c0c
xor eax, eax
push ebp
push 0x4afabc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404a4c
push ebp
call fcn.004af934
pop ecx
xor eax, eax
push ebp
push 0x4afa9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x40]
call fcn.00407794
push eax
call sub.wininet.dll_InternetCrackUrlW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x41], al
mov eax, ebx
mov edx, dword [ebp - 0x2c]
call fcn.004077ec
mov eax, esi
mov edx, dword [ebp - 0x10]
call fcn.004077ec
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.004077ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afaa6
push ebp
call fcn.004af9bc
pop ecx
ret
Function at 0x401810
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebp
mov al, 0x45
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
mov al, 0x6c
push str.HeapFree
push str.kernel32.dll
mov byte [esp + 0x14], 0x4b
mov byte [esp + 0x16], 0x52
mov byte [esp + 0x17], 0x4e
mov byte [esp + 0x19], 0x4c
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], 0x32
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebp, eax
mov al, 0x65
mov cl, 0x73
mov byte [esp + 0x1d], al
mov byte [esp + 0x23], al
mov byte [esp + 0x27], al
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], cl
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x24], 0x47
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x50
mov byte [esp + 0x28], 0x72
mov byte [esp + 0x29], 0x6f
mov byte [esp + 0x2a], 0x63
mov byte [esp + 0x2e], 0x48
mov byte [esp + 0x30], 0x61
mov byte [esp + 0x31], 0x70
mov byte [esp + 0x32], 0
call esi
push eax
call edi
mov edx, dword [esp + 0x30]
push edx
push 0
call eax
push eax
call ebp
pop edi
pop esi
pop ebp
add esp, 0x20
ret

Function at 0x401a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4147a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], esp
je 0x401a4e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [ebp - 0x18], edi
cmp dword [edi], 0x4550
je 0x401a71
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call ebx
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
jne 0x401ab9
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call ebx
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
jne 0x401ab9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [eax + 4], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x20]
push 0x4187d0
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], 0x3f
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov edx, dword [ecx + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, 0x401b11
ret
Function at 0x401c20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4147b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.VirtualAlloc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x14], 0
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov si, word [eax + 0x14]
lea esi, [esi + eax + 0x18]
mov dword [ebp - 0x18], esi
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 6]
mov eax, dword [ebp - 0x14]
cmp eax, edx
jge 0x401d4c
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x401ccc
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x401d34
mov edx, dword [esi + 0xc]
push 4
push 0x1000
add edx, ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x401d34
push 4
push 0x1000
push eax
mov eax, dword [esi + 0xc]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [ebp - 0x20]
push 0x4187d0
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x55
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov edx, ecx
add esi, eax
mov eax, 0x401d24
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
inc ecx
add esi, 0x28
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], esi
jmp 0x401c77
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402270
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0x5f
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x58
test esi, esi
jbe 0x40229d
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x402291
pop esi
ret

Function at 0x403201
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x718]
call fcn.00410340
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3ea
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov ecx, dword [esi + 0x20]
push 0
push 0x3e9
push ecx
call edi
push eax
call ebx
push 5
push 0x402
mov ecx, esi
mov dword [esi + 0x4ac], 0x6a240a
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
lea ecx, [esi + 0x7d8]
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
push 0x404
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
push 0x403
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
mov edx, dword [esi + 0x20]
push 0x105
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov dword [esi + 0x1038], 1
pop edi
pop esi
pop ebx
ret

Function at 0x4053d0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x414c95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push 0x430c08
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 8]
push 0x200
push eax
mov dword [esp + 0x218], 1
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 8]
test ecx, ecx
je 0x40543c
lea edx, [esp + 8]
push edx
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
lea ecx, [esp]
push eax
call fcn.00413de4
push esi
mov esi, dword [esp + 0x21c]
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.00413e50
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x214], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret 4
Function at 0x4060f8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414d80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edi, dword [esp + 0x38]
lea ecx, [esp + 8]
push edi
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x12c]
push edi
push eax
lea ecx, [esp + 0x10]
push str._shistory_s.imh
push ecx
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esi + 0x100]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x10
push 0
push 0
push 0x144
push edx
call edi
cmp eax, 0xffffffff
je 0x40616e
mov eax, dword [esi + 0x100]
push 0
push 0
push 0x144
push eax
call edi
cmp eax, 0xffffffff
jne 0x406157
mov ecx, dword [esp + 8]
push 0
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4061ca
push ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov ebp, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4061c5
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CFileFind::GetFileTitle
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x100]
push 0
push 0x143
push eax
call edi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x406183
pop ebp
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00413e02
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x406d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebx
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
push 0x42fc0c
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_2
mov bl, 2
push str._FreeEIM_Emotion_
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x406ea6
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.00407110
mov eax, dword [esp + 0x34]
lea ecx, [esi + eax + 0x11]
push ecx
lea ecx, [esp + 0x14]
call fcn.00413de4
lea edx, [esp + 0x1c]
push 5
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
call ebp
add esp, 4
mov ecx, edi
push eax
call fcn.00406f20
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x34]
sub eax, esi
sub eax, 0x16
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
push str._FreeEIM_Emotion_
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
jne 0x406dce
pop ebp
mov eax, dword [esp + 0x30]
mov ecx, edi
push eax
call fcn.00407110
mov ecx, dword [edi + 0x80]
push 0
push 0
push 0x43f
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + 0x80]
push 0
push 7
push 0x115
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x407630
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0
push ecx
push 0x407680
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x407671
push eax
push eax
push str.CreateThread___failed.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ecx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret 4

Function at 0x4083b0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0
push 0x402
mov dword [esi + 0x68], 0
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0
push 0x403
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0xf6f3ec
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esi + 0xb8]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push 0
push esi
mov dword [esi + 0xc0], 0x4e6163
mov ecx, dword [eax]
push 0x407db0
push 0
push 0
mov dword [esi + 0x744], ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x408446
push eax
push eax
push str.CreateThread___failed.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ecx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x20]
push 0
push 1
push 0xb
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
pop ecx
ret 4
Function at 0x408470
Capabilities:
Create thread
Get file system object information

Disassembly:
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0xfafafa
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebx + 0xb8]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x178]
mov dword [ebx + 0xc0], 0xe48800
lea ebp, [ebx + 0xc4]
call fcn.004109a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x178]
call fcn.00410990
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebx + 0x2c4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x178]
call fcn.004109b0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x4c4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebx + 0x2c4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x400
mov ecx, ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push pe_nt_image_headers32
lea ecx, [esp + 0x18]
push 0x160
push ecx
push 0x80
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40858d
push 0x404
mov ecx, ebx
mov esi, eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push esi
push 1
push 0x172
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40859d
push 0
push 0
push str.Could_not_retrieve_the_file_icon.
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
push 0x407b80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4085d0
push eax
push eax
push str.Thread_creating_error._r_nFile_could_not_be_send.
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x4085d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x20]
push 0
push 1
push 0xb
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret 4
Function at 0x409aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x415280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea eax, [esp + 0x10]
push edi
mov edi, ecx
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
push str._H:_M:_S
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CTime::Format
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x10]
push str._s__s_r_n
push eax
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea esi, [edi + 0x1d4]
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetWindowTextLengthA
push eax
push eax
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::SetSel
mov ecx, dword [esp + 8]
mov edx, dword [edi + 0x1f4]
push ecx
push 0
push 0xc2
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::LineScroll
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x40c770
Capabilities:
Resume thread

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, ecx
push 0
push 0x3fb
mov dword [esi + 0x60], 1
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0x4301dc
push 0x3fe
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov eax, dword [esi + 0x20]
push 0
push 0x3e8
push 0x37
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0x3fa
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov edi, dword [esp + 0x10]
push 0x3fa
add edi, 0x32
mov ecx, esi
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
sub edx, ecx
push 1
push edx
mov edx, dword [esp + 0x10]
sub edi, edx
push edi
push ecx
push edx
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0
push 4
push 0
push 2
push 0x418338
call sub.MFC42.DLL_AfxBeginThread
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x64], eax
push ecx
mov ecx, eax
call fcn.004126f0
mov edx, dword [esi + 0x64]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 4
Function at 0x40cb80
Capabilities:
Get hostname

Disassembly:
sub esp, 0x200
lea eax, [esp]
push esi
push 0x200
mov esi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov edx, dword [esp + 0x208]
test edx, edx
je 0x40cbd6
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x200
ret 4
mov ecx, esi
call fcn.0040cd20
xor eax, eax
pop esi
add esp, 0x200
ret 4

Function at 0x40cbf0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x190
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x9d]
mov byte [esp + 0x9c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x9c]
mov ecx, ebp
push eax
call fcn.0040cb80
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x9c]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40ccfd
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
lea edi, [esp + 0x10]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x1a0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
je 0x40ccfd
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x410]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x190
ret 4
mov ecx, ebp
call fcn.0040cd20
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x190
ret 4

Function at 0x40cd50
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
test eax, eax
je 0x40cd77
push 0
push eax
call edi
mov eax, dword [esi]
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40cd90
push 0
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call ebx
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret