joyce8/EMBER2024-capa huggingface dataset:
Function at 0x555cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.00455b10
mov eax, dword [0x634274]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.004f5890
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.004f56f0
add esp, 0xc
test eax, eax
je 0x555dc2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004f53d0
add esp, 0xc
test eax, eax
je 0x555dc2
lea eax, [esp + 0x20]
push eax
call fcn.004f5630
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x555de0
push edi
call fcn.004f60d0
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.00509a40
mov esi, eax
add esp, 0xc
test esi, esi
je 0x555dc2
push esi
call fcn.0055c2f0
add esp, 4
test eax, eax
jle 0x555dc2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.005097e0
add esp, 0x18
test eax, eax
jle 0x555dc2
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.0055c200
add esp, 0x14
test eax, eax
jle 0x555dc2
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.005099d0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00455afe
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x555df8
cmp dword [edi], edx
je 0x555e22
inc eax
add ecx, 4
cmp eax, 4
jl 0x555de5
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.004fc290
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00455afe
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x555e56
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.004fc290
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00455afe
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00455afe
add esp, 0x6c
ret
Function at 0x578630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.00455b10
mov eax, dword [0x634274]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [ecx]
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x578739
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push edi
lea esi, [edx + 2]
lea edi, [ebx + 3]
sub ebx, edx
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.005789f0
movzx ecx, byte [edi - 3]
lea edi, [edi + 8]
movzx eax, byte [esp + 0x28]
lea esi, [esi + 8]
xor ecx, eax
add esp, 0xc
movzx eax, byte [esp + 0x1d]
mov byte [esi - 0xa], cl
mov byte [esp + 0x14], cl
movzx ecx, byte [edi - 0xa]
xor ecx, eax
movzx eax, byte [esp + 0x1e]
mov byte [esi - 9], cl
mov byte [esp + 0x15], cl
movzx ecx, byte [esi + ebx - 8]
xor ecx, eax
movzx eax, byte [esp + 0x1f]
mov byte [esi - 8], cl
mov byte [esp + 0x16], cl
movzx ecx, byte [edi - 8]
xor ecx, eax
movzx eax, byte [esp + 0x20]
mov byte [esi - 7], cl
mov byte [esp + 0x17], cl
movzx ecx, byte [edi - 7]
xor ecx, eax
movzx eax, byte [esp + 0x21]
mov byte [esi - 6], cl
mov byte [esp + 0x18], cl
movzx ecx, byte [edi - 6]
xor ecx, eax
movzx eax, byte [esp + 0x22]
mov byte [esi - 5], cl
mov byte [esp + 0x19], cl
movzx ecx, byte [edi - 5]
xor ecx, eax
movzx eax, byte [esp + 0x23]
mov byte [esi - 4], cl
mov byte [esp + 0x1a], cl
movzx ecx, byte [edi - 4]
xor ecx, eax
mov byte [esi - 3], cl
mov byte [esp + 0x1b], cl
sub ebp, 1
jne 0x578680
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop ebp
xor ecx, esp
call fcn.00455afe
add esp, 0x18
ret
Function at 0x57aa00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.00455b10
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
je 0x57aaf5
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
cmp edx, 0x20
jb 0x57aace
push ebp
lea eax, [ebx - 1]
lea ebp, [esi - 1]
add eax, edx
add ebp, edx
cmp esi, eax
ja 0x57aa47
cmp ebp, ebx
jae 0x57aacd
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x57aa54
cmp ebp, edi
jae 0x57aacd
mov eax, edx
lea ebp, [esi + 0x10]
mov edx, edi
and eax, 0xffffffe0
sub edx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov eax, ebx
mov edx, esi
sub edx, ebx
mov dword [esp + 0x14], edx
mov edx, edi
mov edi, dword [esp + 0x14]
sub edx, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
nop word [eax + eax]
movups xmm0, xmmword [eax]
add ecx, 0x20
lea eax, [eax + 0x20]
lea ebp, [ebp + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ebp - 0x20]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [ebp - 0x20], xmm1
cmp ecx, dword [esp + 0x1c]
jb 0x57aa90
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
pop ebp
cmp ecx, edx
jae 0x57aaf2
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
nop dword [eax + eax]
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x57aae0
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x586ac0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x586ae9
mov eax, edi
jmp 0x586af3
push eax
push edi
call fcn.004f1d10
add esp, 8
test eax, eax
jne 0x586afb
pop edi
pop ebp
pop ebx
ret
xor eax, eax
cmp dword [ebp + 4], eax
jle 0x586b1a
push esi
mov ecx, dword [ebx]
mov edx, dword [ebp]
mov esi, dword [ecx + eax*4]
mov ecx, dword [edi]
xor esi, dword [edx + eax*4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebp + 4]
jl 0x586b03
pop esi
cmp eax, dword [ebx + 4]
jge 0x586b30
nop
mov ecx, dword [ebx]
mov edx, dword [edi]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [ebx + 4]
jl 0x586b20
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
test ecx, ecx
jle 0x586b53
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x586b50
dec ecx
test ecx, ecx
jg 0x586b42
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x586b60
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x5ba6f0
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.005babb0
mov edi, eax
add esp, 8
test edi, edi
jns 0x5ba72b
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.004fc290
add esp, 0x14
jmp 0x5ba7ec
call fcn.005baae0
cmp eax, 1
jne 0x5ba7fc
test edi, edi
jle 0x5ba744
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.005054d0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x5ba781
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.004fc290
add esp, 0x14
jmp 0x5ba7d2
cmp word [ecx + 8], 2
je 0x5ba7a2
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.004fc290
add esp, 0x14
jmp 0x5ba7d2
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.005054d0
add esp, 0x10
test ebp, ebp
je 0x5ba803
push esi
push str.host
push 2
call fcn.004fb7e0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x5bab60
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x5baba0
push 0x233
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004fc290
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x4020c0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4cbba8
call fcn.0046fad0
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 4
pop edi
push edi
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x402174
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
add eax, 0x12
mov dword [ebp - 0x20], eax
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x4e5274
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004397ca
add esp, 0x18
mov dword [ebp - 0x18], edi
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x28], esi
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
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 0x4021e9
Capabilities:
Clear file content
Get file size

Disassembly:
mov eax, 0x4cbbb4
call fcn.0046fad0
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
call fcn.0040218d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x40224f
mov dword [ebp - 0x18], esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x402248
cmp eax, 0xf4240
jbe 0x402248
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
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 0x402431
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, 0x4cbc2c
call fcn.0046fad0
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
call dword [sym.imp.QQHelperDll.dll_class_CString___cdecl_GetSbuddyFolder_void_]
mov dword [esp], str.SBuddyCall.exe
push eax
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
call fcn.0046f570
push esi
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x402491
or esi, 0xffffffff
jmp 0x4025c0
push 0x4e52f0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
mov dword [ebp - 0x14], esi
mov edi, str.TSBuddy_shellopencommand
push 0x20006
push edi
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004025fe
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40251b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x402501
xor eax, eax
cmp dword [ebp - 0x14], esi
je 0x4024f7
push dword [ebp - 0x14]
call ebx
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x14], ecx
je 0x40251b
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x402489
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
jmp 0x402489
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x18]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
push esi
push 0x4e51ec
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp dword [ebp - 0x14], esi
je 0x40255a
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
push 0x20006
push str.TSBuddy
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
call fcn.004025fe
test eax, eax
jne 0x402501
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
mov al, byte [0x4e51ec]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xd]
push eax
push 1
push esi
push str.URL_Protocol
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x14], esi
je 0x4025af
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x4025c0
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402a2c
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4cbd48
call fcn.0046fad0
push ecx
push ecx
push ebx
push esi
push 1
lea eax, [ebp - 0x14]
pop esi
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402a9e
mov eax, dword [ebp + 0xc]
push dword [eax - 8]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push ebx
push dword [ebp - 0x10]
call esi
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ebx
push str.contexts
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4038ac
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.0046fb40
push ebx
push esi
push edi
xor edi, edi
push 0x10
push edi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x4038f9
push 0x3e8
call ebx
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40393b
push edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0xc]
push 3
push edi
mov edi, SysReAllocStringLen
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40393f
push 0x3e8
call ebx
push 0
push dword [ebp - 0xc]
push 3
push 0
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40393f
xor eax, eax
jmp 0x4039b3
lea eax, [ebp - 0x68]
push eax
call fcn.00439b83
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
mov esi, 0x1000
lea eax, [ebp - 0x1068]
push esi
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x403999
push dword [ebp - 8]
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00439bc1
add esp, 0xc
cmp dword [ebp - 8], esi
jne 0x403999
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x1068]
push esi
push eax
push dword [ebp - 4]
jmp 0x403965
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
call fcn.0043a715
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403b24
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
je 0x403b41
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
pop ebp
ret 0xc

Function at 0x403b45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
je 0x403b62
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop ebp
ret 0xc
Function at 0x40eead
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x4cc0c2
call fcn.0046fad0
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x40eecd
mov eax, 0x80070057
jmp 0x40efc1
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0x18]
je 0x40eed6
inc eax
cmp eax, 0x10
jbe 0x40eee5
mov eax, 0x80004005
jmp 0x40efc1
push 0x10
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x40ef0a
mov dword [eax + 4], edi
mov dword [eax], 0x4e6fe8
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov esi, eax
jmp 0x40ef0c
xor esi, esi
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
push esi
call dword [eax + 4]
push 0x70
pop ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x40ef3f
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, 0x8007000e
jmp 0x40efc1
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edi, dword [esi + 0xc]
push ebx
push 0
push edi
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x40ef7b
mov dword [edi], ebx
add edi, 4
mov eax, dword [ebp + 0x18]
shl eax, 2
push eax
lea eax, [ebp + 0x1c]
push eax
push edi
call sub.MSVCRT.dll_memcpy
mov edi, dword [esi + 0xc]
push 0x28
add edi, 0x40
push 0x5283b0
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0xc]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x11], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x1d], eax
mov eax, dword [esi + 0xc]
add eax, 0x40
add esp, 0x18
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40f57c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40f5a1
call fcn.0040fca9
test eax, eax
jne 0x40f59e
xor esi, esi
jmp 0x40f5a1
mov esi, dword [eax + 0x20]
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40f5fd
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40f5f7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40f5f7
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40f5f7
push 1
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x412ced
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4cc79c
call fcn.0046fad0
sub esp, 0x68
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call esi
mov dword [esp], str.TIMProxy.dll
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0046f498
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, 0x20
jb 0x412d78
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x412d71
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x20]
push eax
call esi
mov dword [esp], str.TIMPlatform.exe
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
push str._RegServer
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
push 0x44
lea eax, [ebp - 0x74]
pop esi
mov byte [ebp - 4], 6
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
mov dword [ebp - 0x74], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x18]
mov eax, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x412e0a
push 0x1388
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret