joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405da7
Capabilities:
Read data from internet
Receive data

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push dword [esi + 0xe4]
push dword [esi + 0xd4]
call fcn.004061bc
mov ecx, esi
call fcn.00404dcb
test eax, eax
je 0x405ea6
push 0x28
lea ebx, [esi + 0xa4]
pop edi
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x68]
mov ebp, dword [esi + 0xe4]
add esp, 0xc
mov dword [ebx], edi
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0x64]
cmp eax, ebp
jbe 0x405dfd
mov eax, ebp
push esi
push 1
push ebx
mov dword [esi + 0xbc], eax
push dword [esi + 0x9c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x405e5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x405e2c
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
lea eax, [esp + 0x10]
push 1
push eax
mov ecx, esi
call fcn.0040b97d
test eax, eax
jne 0x405eaa
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x12c]
jne 0x405e9a
mov eax, dword [esi + 0x128]
test eax, eax
je 0x405e69
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
jmp 0x405e69
mov ecx, esi
call fcn.0040b9c9
test eax, eax
jne 0x405eaa
mov edi, dword [esi + 0xbc]
test edi, edi
je 0x405eae
add dword [esi + 0xe0], edi
push edi
push dword [esi + 0xb8]
mov ecx, esi
sub ebp, edi
call fcn.00404f9a
test eax, eax
je 0x405edf
push edi
mov ecx, esi
call fcn.004062b6
jmp 0x405df4
push 0x422a40
mov ecx, esi
call fcn.0040440e
push 3
jmp 0x405eec
push 6
jmp 0x405eec
mov ecx, esi
call fcn.00405039
test eax, eax
je 0x405edf
mov eax, dword [esi + 0xe4]
cmp eax, 0xffffffff
je 0x405ed0
cmp eax, dword [esi + 0xe0]
je 0x405ed0
push 4
jmp 0x405ee1
push 0
push 2
mov ecx, esi
call fcn.004055b7
xor eax, eax
jmp 0x405eed
push 5
push 3
mov ecx, esi
call fcn.004055b7
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406e21
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4176ac
call fcn.0040c000
sub esp, 0x78
lea eax, [ebp - 0x1c]
push ebx
push eax
xor ebx, ebx
push 1
push ebx
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406f04
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x64
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406f04
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
push 0x2e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
cmp eax, 5
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
jl 0x406ef3
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x406f06
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40a95e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 0x54], 0x44
push dword [ebp + 8]
mov dword [ebp - 0x28], 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a9bc
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push 0x21
jmp 0x40a9de
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
je 0x40a9dc
dec eax
je 0x40a9d8
sub eax, 0xbe
je 0x40a9d4
xor eax, eax
jmp 0x40a9df
push 0xb
jmp 0x40a9de
push 3
jmp 0x40a9de
push 2
pop eax
pop esi
leave
ret
Function at 0x40a9e2
Capabilities:
Get common file path

Disassembly:
mov eax, 0x417bd3
call fcn.0040c000
sub esp, 0x110
and dword [ebp - 0x18], 0
push ebx
push esi
lea eax, [ebp - 0x11c]
push edi
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040ab81
pop ecx
push 1
cmp edi, esi
pop ebx
mov dword [ebp - 4], ebx
ja 0x40aa4c
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
je 0x40aa4c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
call sub.MFC42.DLL_CString::CString_4
mov dword [ebp - 0x18], ebx
jmp 0x40aa97
push str.c:_temp_
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.0040aab5
test eax, eax
pop ecx
jne 0x40aa7d
mov ecx, dword [ebp + 8]
push 0x422828
call sub.MFC42.DLL_CString::CString_4
mov dword [ebp - 0x18], ebx
jmp 0x40aa8c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
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 0x40aab5
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 8], esi
jle 0x40ab35
push esi
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x40ab35
lea eax, [ebp + 8]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp + 8]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
cmp ebx, 0xffffffff
je 0x40ab02
and ebx, 0x10
test bl, bl
jne 0x40ab2d
lea eax, [ebp - 4]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
lea ecx, [ebp - 4]
neg ebx
sbb bl, bl
inc bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x40ab3d
mov eax, dword [edi]
inc esi
cmp esi, dword [eax - 8]
jl 0x40aac8
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40ab38
Function at 0x40ac50
Capabilities:
Get common file path

Disassembly:
mov eax, 0x417c43
call fcn.0040c000
sub esp, 0xc
and dword [ebp - 0x18], 0
push ebx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
push 1
lea ecx, [ebp - 0x14]
pop ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
push 0
push 0x1a
push 0x104
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.MeituKanKan_
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40acef
Capabilities:
Get common file path

Disassembly:
mov eax, 0x417c77
call fcn.0040c000
sub esp, 0xc
and dword [ebp - 0x18], 0
push ebx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
push 1
lea ecx, [ebp - 0x14]
pop ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
push 0
push 0x1a
push 0x104
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.MeituDuoDuo_
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40b3b8
Capabilities:
Get file version info

Disassembly:
push esi
mov esi, ecx
call fcn.0040b42a
push dword [esp + 8]
mov ecx, esi
call fcn.0040b392
push 0
push dword [esi + 0x1c]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esi + 8], eax
je 0x40b41c
push eax
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [esi + 0xc], eax
je 0x40b41c
push eax
push dword [esi + 8]
push 0
push dword [esi + 0x1c]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40b415
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
push 0x422494
push dword [esi + 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40b420
mov ecx, esi
call fcn.0040b42a
xor eax, eax
jmp 0x40b426
push 1
pop eax
mov dword [esi + 4], eax
pop esi
ret 4

Function at 0x40b5ee
Capabilities:
Get disk information

Disassembly:
mov eax, 0x417d5b
call fcn.0040c000
sub esp, 0x18
and dword [ebp - 0x20], 0
and dword [ebp - 0x14], 0
push ebx
push esi
push 0x422a40
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
push 1
lea ecx, [ebp - 0x10]
pop ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
test esi, esi
jne 0x40b661
mov ecx, dword [ebp + 8]
push 0xd0
push 0x20
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x40b725
push edi
mov edi, ebx
mov byte [ebp - 0x1c], 0x41
push ebx
lea ecx, [ebp - 0x24]
push dword [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push str._s:_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
and dword [ebp - 0x14], 0
test esi, edi
je 0x40b6ca
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40b6ca
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push eax
push eax
push ecx
push eax
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40b6ca
or dword [ebp - 0x14], 0xffffffff
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str._.8X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040be5a
add edi, edi
inc byte [ebp - 0x1c]
cmp edi, 0x4000000
jb 0x40b668
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b85c
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 0x40b871
xor eax, eax
jmp 0x40b8ca
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 0x40b735
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
jle 0x40b86d
cmp dword [esi + 0xc], ebx
mov dword [esi + 4], eax
je 0x40b8af
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 0x40b8cf
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40b908
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b8f7
push dword [esi + 0x14]
jmp 0x40b90b
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 4], 0
jmp 0x40b911
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret 4

Function at 0x40c45c
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WSOCK32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WSOCK32.dll_ntohl
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x40c495
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WSOCK32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x40c492
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x40c4ac
push edi
call sub.WSOCK32.dll_htonl
mov esi, dword [ebp + 0x10]
push ebx
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c4ff
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WSOCK32.dll_ntohl
push dword [esi + 4]
mov ebx, eax
call sub.WSOCK32.dll_ntohl
mov edi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x40c538
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WSOCK32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x40c535
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 0xc]
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add eax, 0x61c88647
sub ebx, edx
dec ecx
jne 0x40c552
push ebx
call sub.WSOCK32.dll_htonl
mov esi, dword [ebp + 0x10]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cd97
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 0x40f11a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax]
mov edi, ecx
mov ecx, dword [eax - 8]
cmp ecx, 1
jle 0x40f13d
lea edx, [eax + ecx]
mov al, byte [eax + ecx - 2]
add al, byte [edx - 1]
jmp 0x40f145
jne 0x40f143
mov al, byte [eax]
jmp 0x40f145
xor al, al
xor al, cl
xor ebx, ebx
movzx esi, al
mov al, byte [esi + edi + 0x9c]
movzx eax, al
test eax, eax
mov dword [ebp - 8], eax
jle 0x40f18e
mov eax, dword [edi + 0x8c]
mov edx, dword [edi + 0x28]
mov eax, dword [eax + ebx*4]
mov cl, byte [eax + esi]
mov eax, dword [ebp + 8]
mov byte [ebp - 1], cl
mov eax, dword [eax]
movzx ecx, cl
push eax
mov ecx, dword [edx + ecx*4]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x40f198
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x40f15d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
movzx eax, byte [ebp - 1]
jmp 0x40f191

Function at 0x40f9e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov eax, dword [eax - 8]
lea eax, [eax + ecx + 7]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], eax
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [ebp + 0xc]
mov byte [esi], al
mov eax, dword [edi]
inc esi
mov ebx, dword [eax - 8]
movzx eax, bx
mov word [esi], bx
push eax
push dword [edi]
inc esi
inc esi
mov dword [ebp + 0x10], eax
push esi
call sub.MSVCRT.dll_memcpy
xor edi, edi
add esp, 0xc
xor bl, bh
xor eax, eax
cmp dword [ebp + 0x10], edi
jbe 0x40fa42
mov cl, byte [eax + esi]
not cl
xor cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, dword [ebp + 0x10]
jb 0x40fa32
add esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x18]
mov dword [esi], ebx
add esi, 4
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xc], 7
je 0x40fa66
cmp byte [ebp + 0xc], 6
jne 0x40fa7d
mov al, bl
xor al, bh
cmp ebx, edi
jbe 0x40fa7d
mov cl, byte [edi + esi]
not cl
xor cl, al
mov byte [edi + esi], cl
inc edi
cmp edi, ebx
jb 0x40fa6e
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x401166
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b38140]
jne 0x401170
repz ret
jmp fcn.004014af

Function at 0x407328
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b38140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402976
and dword [ebp - 0x14], 0
cmp dword [0x4b3bb2c], 0
mov dword [ebp - 0x18], eax
jne 0x4073db
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407483
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407483
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b3bb2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b3bb30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b3bb34], eax
call edi
push eax
call esi
mov dword [0x4b3bb3c], eax
test eax, eax
je 0x4073db
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b3bb38], eax
mov eax, dword [0x4b3bb38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x407434
cmp dword [0x4b3bb3c], ecx
je 0x407434
push eax
call esi
push dword [0x4b3bb3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407434
test ebx, ebx
je 0x407434
call edi
test eax, eax
je 0x40742b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40742b
test byte [ebp - 8], 1
jne 0x407434
or dword [ebp + 0x10], 0x200000
jmp 0x407467
mov eax, dword [0x4b3bb30]
cmp eax, dword [ebp - 0x18]
je 0x407467
push eax
call esi
test eax, eax
je 0x407467
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407467
mov eax, dword [0x4b3bb34]
cmp eax, dword [ebp - 0x18]
je 0x407467
push eax
call esi
test eax, eax
je 0x407467
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b3bb2c]
call esi
test eax, eax
je 0x407483
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407485
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401166
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x181a34ac
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3105587c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100177d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001879
cmp word [edi], 0
je 0x1001879
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xffffffffffffffff
mov ebx, 0x1001360
push ebx
push ebx
mov dword [ebp - 4], edi
call esi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 1
push 0x7f
call edi
cmp eax, 2
je 0x10017dd
push 0xffffffffffffffff
mov ebx, 0x1001354
push ebx
push ebx
call esi
push eax
push dword [ebp + 8]
push 1
push 0x7f
call edi
cmp eax, 2
jne 0x10017e9
push ebx
call esi
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100180e
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor eax, eax
inc eax
jmp 0x100187b
push 0xffffffffffffffff
mov dword [ebp + 8], ebx
mov ebx, 0x1001338
push ebx
push ebx
call esi
push eax
push dword [ebp - 4]
push 1
push 0x7f
call edi
cmp eax, 2
je 0x1001845
push 0xffffffffffffffff
mov ebx, 0x100131c
push ebx
push ebx
call esi
push eax
push dword [ebp - 4]
push 1
push 0x7f
call edi
cmp eax, 2
jne 0x1001851
push ebx
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1001879
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0xc]
call sub.SETUPAPI.dll_pSetupConcatenatePaths
neg eax
sbb eax, eax
neg eax
jmp 0x100187b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc