joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
cmp edi, 8
jl 0x49473f
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 3]
shl edx, 8
or edx, eax
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x4c5e50]
xor edx, dword [eax*4 + 0x4c5a50]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4c6250]
movzx eax, byte [esi + 6]
xor edx, dword [eax*4 + 0x4c4a50]
movzx eax, byte [esi + 5]
xor edx, dword [eax*4 + 0x4c4e50]
movzx eax, byte [esi + 7]
xor edx, dword [eax*4 + 0x4c4650]
movzx eax, byte [esi + 4]
add esi, 8
xor edx, dword [eax*4 + 0x4c5250]
movzx eax, cl
xor edx, dword [eax*4 + 0x4c5650]
mov ecx, edx
sub ebx, 1
jne 0x4946b0
pop ebx
test edi, edi
je 0x49475f
movzx eax, byte [esi]
lea esi, [esi + 1]
mov edx, ecx
shl ecx, 8
shr edx, 0x18
xor edx, eax
xor ecx, dword [edx*4 + 0x4c4650]
sub edi, 1
jne 0x494743
pop edi
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x495ffc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49603b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49603b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49603b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49603b
cmp dword [ecx + 0x74], 0xe
jbe 0x49603b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49f3b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049f22a

Function at 0x4a7680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a76ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a76ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40198d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x4019e8
mov esi, 0x9c
lea eax, [ebp - 0x9c]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4019ef
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
jne 0x4019ef
xor eax, eax
jmp 0x401b55
mov eax, dword [ebp - 0x8c]
mov byte [edi], bl
sub eax, ebx
je 0x401ac5
dec eax
je 0x401a51
dec eax
jne 0x401ad2
cmp dword [ebp - 0x98], 4
ja 0x401a1c
push str.Microsoft_Windows_NT
jmp 0x401aca
cmp dword [ebp - 0x98], 5
jne 0x401a4a
cmp dword [ebp - 0x94], ebx
jne 0x401a37
push str.Microsoft_Windows_2000
jmp 0x401aca
cmp dword [ebp - 0x94], 1
jne 0x401a4a
push str.Microsoft_Windows_XP
jmp 0x401aca
push str.Microsoft_Windows_XP_later
jmp 0x401aca
cmp dword [ebp - 0x98], 4
jne 0x401abe
cmp dword [ebp - 0x94], ebx
jne 0x401a88
push str.Microsoft_Windows_95
push edi
call sub.MSVCRT.dll_strcat
cmp byte [ebp - 0x87], 0x43
pop ecx
pop ecx
je 0x401a81
cmp byte [ebp - 0x87], 0x42
jne 0x401ad2
push str.OSR2
jmp 0x401aca
cmp dword [ebp - 0x94], 0xa
jne 0x401aae
push str.Microsoft_Windows_98
push edi
call sub.MSVCRT.dll_strcat
cmp byte [ebp - 0x87], 0x41
pop ecx
pop ecx
jne 0x401ad2
push 0x4282cc
jmp 0x401aca
cmp dword [ebp - 0x94], 0x5a
jne 0x401abe
push str.Microsoft_Windows_Me
jmp 0x401aca
push str.Microsoft_Windows_Me_later
jmp 0x401aca
push str.Microsoft_Win32s
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp dword [ebp - 0x98], 4
mov eax, dword [ebp - 0x90]
ja 0x401b17
and eax, 0xffff
push eax
lea eax, [ebp - 0x1a0]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str._Build__d._d._d__n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x1a0]
push eax
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x1c
jmp 0x401b52
and eax, 0xffff
push eax
lea eax, [ebp - 0x88]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push eax
lea eax, [ebp - 0x1a0]
push str._s__Build__d._d._d__n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x1a0]
push eax
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x20
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401bd6
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41b844
call fcn.0041b500
push ecx
mov eax, 0x1188
call fcn.0041b540
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x104
lea eax, [ebp - 0x118]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
mov dword [ebp - 4], esi
push 1
pop ebx
mov byte [ebp - 4], bl
push 0x10
push esi
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push 0x80
push 3
push esi
push ebx
push closesocket
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x11c], edi
cmp edi, 0xffffffff
je 0x401ccc
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x130], esi
lea eax, [ebp - 0x118c]
push eax
call fcn.004114d0
pop ecx
push esi
lea eax, [ebp - 0x130]
push eax
push 0x1000
lea eax, [ebp - 0x1130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x130], esi
je 0x401cb0
push dword [ebp - 0x130]
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x118c]
push eax
call fcn.0041150b
add esp, 0xc
jmp 0x401c6f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x118c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0041205f
pop ecx
pop ecx
push dword [ebp + 8]
push 0x10
lea eax, [ebp - 0x12c]
push eax
call fcn.00401b5a
add esp, 0xc
mov dword [ebp - 0x1190], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x401d19
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402085
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41b850
call fcn.0041b500
sub esp, 0x118
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x104
lea eax, [ebp - 0x118]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
inc eax
mov byte [eax], bl
push str.BugReport.log
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
add esp, 0x14
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x124], esi
cmp esi, 0xffffffff
je 0x402135
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4030e7
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x408447
Capabilities:
Delete file

Disassembly:
mov eax, 0x41c2b0
call fcn.0041b500
push ecx
push esi
mov esi, ecx
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
call fcn.0040d50f
add esp, 4
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 3
call fcn.0040d39b
pop ecx
push 0
lea ecx, [esi + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040dc30
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x40a883
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40a8ad
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40a8ad
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40a8b1
xor eax, eax
jmp 0x40a918
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40a90f
lea eax, [ebp - 4]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x4297e8
push edi
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a90f
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push 1
mov ecx, dword [eax + 8]
pop ebx
shr ecx, 0x10
mov byte [edx], cl
mov edx, dword [ebp + 0x10]
mov cl, byte [eax + 8]
mov byte [edx], cl
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0x14]
and ecx, 0xffff
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x18]
shr eax, 0x10
mov dword [ecx], eax
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b872
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x41c6f6
call fcn.0041b500
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x4206a8
xor edi, edi
mov dword [esp + 0x1c], 2
cmp dword [esi + 0x48], edi
jle 0x40b8c1
mov eax, dword [esi + 0x44]
mov ebp, dword [eax + edi*4]
test ebp, ebp
je 0x40b8bb
mov ecx, ebp
call fcn.0040c5c2
mov ecx, ebp
call fcn.0040b984
push ebp
call sub.MFC42.DLL_operatordelete
pop ecx
inc edi
cmp edi, dword [esi + 0x48]
jl 0x40b89c
lea ebx, [esi + 0x40]
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0040d217
mov eax, dword [esi + 0x5c]
lea ebp, [eax - 1]
test ebp, ebp
jl 0x40b93d
mov eax, dword [esi + 0x58]
mov edi, dword [eax + ebp*4]
test edi, edi
je 0x40b92e
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x40b917
cmp eax, 0xffffffff
je 0x40b917
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
push str.Thread_Live__u
push str.QQPlayerSvr.txt
call fcn.0040836b
add esp, 0xc
mov eax, dword [edi + 0x14]
lea ecx, [edi + 0x14]
call dword [eax + 0x1c]
mov ecx, edi
call fcn.0040b9d5
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
dec ebp
jns 0x40b8d9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x54]
call fcn.0040d217
push str.CUploadMang
push str.QQPlayerSvr.txt
call fcn.0040836b
pop ecx
mov byte [esp + 0x20], 1
pop ecx
lea ecx, [esi + 0x54]
call fcn.0040d183
and byte [esp + 0x1c], 0
mov ecx, ebx
call fcn.0040d034
or dword [esp + 0x1c], 0xffffffff
mov ecx, esi
call fcn.0041b24c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40be7a
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x41c7e8
call fcn.0041b500
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x40bf67
cmp dword [ebp + 0xc], ebx
je 0x40bf67
mov esi, dword [ebp + 0x10]
push ebx
mov ecx, esi
call fcn.0040915f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
push edi
jne 0x40beda
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 0x10]
mov dword [ebp - 4], ebx
push eax
call fcn.0040bab7
mov ebx, eax
pop ecx
neg ebx
sbb bl, bl
lea ecx, [ebp + 0x10]
inc bl
or dword [ebp - 4], 0xffffffff
jmp 0x40bf3f
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 1
push eax
call fcn.0040bc93
mov ebx, eax
pop ecx
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
inc bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40bf48
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40bf67
push edi
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 2
push eax
call fcn.0040bab7
mov ebx, eax
pop ecx
neg ebx
sbb bl, bl
lea ecx, [ebp + 0x10]
inc bl
or dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x40bf67
xor ebx, ebx
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
mov dword [ebp - 4], 3
push eax
call fcn.0041269c
cmp dword [ebp + 8], ebx
pop ecx
jne 0x40bf78
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [esi]
cmp eax, ebx
je 0x40bf86
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov eax, dword [ebp + 8]
push esi
push 1
push dword [ebp + 0xc]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x30]
xor ecx, ecx
test eax, eax
mov eax, dword [ebp + 8]
setge cl
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov esi, ecx
je 0x40bfb0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x40bf69
Function at 0x40d39b
Capabilities:
Create directory
Get file attributes

Disassembly:
mov eax, 0x41ca34
call fcn.0041b500
push ecx
push ecx
push ebx
push esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 8], 3
jg 0x40d3c0
or dword [ebp - 4], 0xffffffff
jmp 0x40d446
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or esi, 0xffffffff
cmp eax, esi
je 0x40d3d2
test al, 0x10
jne 0x40d443
push 0x5c
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, esi
je 0x40d42f
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Left
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
call fcn.0040d39b
cmp eax, ebx
pop ecx
jne 0x40d416
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
jmp 0x40d42a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
jne 0x40d43e
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40d451
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40d575
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41caa3
call fcn.0041b500
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push 1
lea ecx, [ebp - 0x18]
pop ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.0041b13e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
mov esi, 0x104
lea ecx, [ebp - 0x14]
push esi
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40d618
push 0x4297e8
lea ecx, [ebp - 0x14]
call fcn.0041af34
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 8], edi
je 0x40d644
cmp byte [ecx], 0x2e
push ecx
push dword [ebp - 0x1c]
push eax
je 0x40d63d
push str._s_s._s
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x40d659
push str._s_s_s
jmp 0x40d62f
push dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push 0x429b08
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0x10], edi
je 0x40d697
push edi
push 0x80
push ebx
push edi
push edi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
jne 0x40d690
mov ecx, dword [ebp + 8]
push 0x429dbc
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x10], ebx
jmp 0x40d6a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
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 0x40db20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41cc01
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], 0x420808
mov dword [esp + 0x18], 8
call fcn.0040dc10
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.00410340
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40e6f0
Capabilities:
Create http request

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ccb0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x40e820
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.0040f3b0
test eax, eax
jne 0x40e75a
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 ecx, dword [esi + 0x38]
mov edx, dword [esp + 4]
push 0x10000000
push 0
push 0
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x78], eax
jne 0x40e780
push eax
push eax
call sub.MFC42.DLL_AfxThrowInternetException
mov eax, dword [esi + 0x78]
push 0x40f480
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x40e79d
push 0
push 0
call sub.MFC42.DLL_AfxThrowInternetException
push 0
push 0x429f34
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 0x40e7df
push esi
mov ecx, 0x429f18
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.0040f3d0
test eax, eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 4]
jne 0x40e81b
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 0x40e8f0
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 0x40e923
cmp dword [ebx + 0x68], edi
je 0x40e928
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, edi
je 0x40e920
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 0x40e923
mov dword [ebx + 0x68], edi
cmp dword [ebx + 0x68], edi
jne 0x40e963
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 0x40e959
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40e959
cmp esi, eax
je 0x40e9a5
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 0x40e986
mov ecx, ebx
call fcn.0040e9c0
test eax, eax
jne 0x40e986
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