joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435fb0
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 0x435fe3
cmp dword [ebx + 0x68], edi
je 0x435fe8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, edi
je 0x435fe0
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 0x435fe3
mov dword [ebx + 0x68], edi
cmp dword [ebx + 0x68], edi
jne 0x436023
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 0x436019
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x436019
cmp esi, eax
je 0x436065
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 0x436046
mov ecx, ebx
call fcn.00436080
test eax, eax
jne 0x436046
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edi, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
mov esi, dword [esp + 0x18]
mov ecx, ebp
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x70], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x436890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4480a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CTime::CTime
lea ecx, [esp + 0x38]
push 0x461f6c
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea edx, [esp + 0x20]
push 3
push edx
mov ecx, eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
push 0x45d0e8
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x24]
push 0x461f68
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CTime::Format
lea edx, [esp + 0x18]
push 3
push edx
mov ecx, eax
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x461f64
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x10]
push str._H:_M:_S
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 8
call sub.MFC42.DLL_CTime::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._s___s__s__s__s_GMT
push ecx
mov byte [esp + 0x4c], 9
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
push str.If_Modified_Since:__s
push eax
mov byte [esp + 0x3c], 0xa
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [eax - 8]
push 0x20000000
push ecx
mov ecx, dword [esi + 0x80]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
pop esi
jne 0x4369f3
push eax
push eax
call sub.MFC42.DLL_AfxThrowInternetException
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x436f20
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0xb8]
push eax
push ecx
mov ecx, esi
call fcn.00437450
mov ecx, esi
call fcn.00435d60
test eax, eax
jne 0x436f56
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.WININET.dll_InternetReadFileExA]
lea ebx, [esi + 0x88]
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0xc8]
mov dword [ebx], 0x28
mov dword [esi + 0x9c], edx
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + 0x60]
push esi
push 1
push ebx
push edx
mov dword [esi + 0xa0], ecx
call ebp
test eax, eax
jne 0x436fe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x436fb5
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.00438d10
test eax, eax
jne 0x437036
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x118]
cmp ecx, eax
jne 0x437043
mov eax, dword [esi + 0x114]
test eax, eax
je 0x436ff4
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
jmp 0x436ff4
mov ecx, esi
call fcn.00438d70
test eax, eax
jne 0x437036
mov edi, dword [esi + 0xa0]
test edi, edi
je 0x43705c
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc4]
sub edx, edi
add eax, edi
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x9c]
push edi
push edx
mov ecx, esi
mov dword [esi + 0xc4], eax
call fcn.00435fb0
test eax, eax
je 0x437093
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x18]
jmp 0x436f86
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret
push 0x463460
mov ecx, esi
call fcn.00436e30
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.00436080
test eax, eax
je 0x437093
mov eax, dword [esi + 0xc8]
cmp eax, 0xffffffff
je 0x43707e
cmp eax, dword [esi + 0xc4]
je 0x43707e
push 3
jmp 0x437095
push 0
push 2
mov ecx, esi
call fcn.004366e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 4
push 3
mov ecx, esi
call fcn.004366e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x437c00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x448298
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [eax]
push edi
mov eax, dword [ecx - 8]
test eax, eax
je 0x437d54
mov edi, dword [esp + 0x28]
mov edx, dword [edi]
mov eax, dword [edx - 8]
test eax, eax
je 0x437d54
push ebx
push edi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_3
push 0x5c
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x2c]
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Mid
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x292c]
mov eax, dword [edx]
lea edx, [esp + 0x10]
push eax
push ecx
mov ebx, 1
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream_r_nContent_Transfer_Encoding:_binary_r_n_r_n
push edx
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esp + 0xc]
lea ecx, [esi + 0x2928]
push eax
call sub.MFC42.DLL_CString::operator_1
push edi
lea ecx, [esi + 0x2930]
call fcn.004407be
push 0
mov ecx, esi
call fcn.00437720
lea ecx, [esp + 0x24]
mov dword [esi + 0xe4], ebx
push ecx
mov ecx, esi
mov dword [esi + 0xe0], 0
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x2944], 0
call fcn.004386d0
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
push eax
mov byte [esp + 0x20], 2
mov ecx, dword [edx]
push ecx
mov ecx, esi
call fcn.00435350
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebx
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x10]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x437ed0
Capabilities:
Get file size

Disassembly:
push esi
push 0
mov esi, ecx
push 0x80
push 3
push 0
mov eax, dword [esi + 0x2930]
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x2934], eax
cmp eax, 0xffffffff
pop esi
jne 0x437f01
xor eax, eax
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, 1
ret
Function at 0x437f10
Capabilities:
Get file size

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x2934]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x437f38
pop esi
mov eax, 3
pop ebx
add esp, 0x28
ret
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x2928]
mov dword [esp + 0xc], 0x28
mov edi, dword [ecx - 8]
mov ecx, esi
call fcn.00438610
add eax, edi
push 0
add eax, ebx
push 9
mov dword [esp + 0x30], eax
mov dword [esi + 0x293c], eax
mov eax, dword [esi + 0x80]
lea edx, [esp + 0x14]
push 0
push edx
push eax
mov dword [esi + 0x2940], 0
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
pop edi
jne 0x437f9f
mov ecx, esi
call fcn.00438330
cmp eax, 2
jne 0x437fa4
mov eax, 2
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x437fb0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4482d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
lea eax, [esi + 0x2928]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x14], ebp
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
lea edi, [esi + 0x128]
push ecx
push edx
push edi
mov ecx, esi
mov dword [esp + 0x2c], ebp
call fcn.00438410
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push edi
call fcn.004382e0
mov ebx, eax
cmp ebx, 2
jne 0x438050
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x18]
cmp dword [esp + 0x10], 0x2800
jne 0x438076
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push edi
mov ecx, esi
call fcn.00438410
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push edi
call fcn.004382e0
mov ebx, eax
cmp ebx, 2
je 0x438014
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov edx, dword [esi + 0x2934]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
push 0x2800
push edi
push edx
call ebp
test eax, eax
je 0x4380d9
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push edi
call fcn.004382e0
mov ebx, eax
cmp ebx, 2
jne 0x438050
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x18]
cmp dword [esp + 0x10], 0x2800
jne 0x43811d
mov edx, dword [esi + 0x2934]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x2800
push edi
push edx
call ebp
test eax, eax
jne 0x438095
mov eax, dword [esi + 0x2934]
test eax, eax
je 0x4380ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esi + 0x2934], 0
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esi + 0x2934]
test eax, eax
je 0x43812e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esi + 0x2934], 0
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4382e0
Capabilities:
Send data

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
mov esi, ecx
je 0x43831b
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, dword [esi + 0x80]
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x43831b
mov ecx, esi
call fcn.00438330
cmp eax, 2
jne 0x438320
mov eax, 2
pop esi
ret 8
Function at 0x438770
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4483eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jbe 0x43883b
push str.c:_temp_
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 4]
mov dword [esp + 0x114], esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4387d9
and eax, 0x10
test al, al
jne 0x438812
mov edx, dword [esp + 4]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x438812
mov esi, dword [esp + 0x11c]
push 0x461e78
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x43884e
mov esi, dword [esp + 0x11c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 4]
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x43884e
mov esi, dword [esp + 0x11c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 4

Function at 0x438a80
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x438a92
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call edi
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
push 0
push esi
push 0x438900
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jg 0x438ad0
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], eax
test ecx, ecx
je 0x438ae3
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x10]
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
mov ebx, eax
push ecx
call edi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
sete al
pop esi
pop ecx
ret

Function at 0x438b10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x438b58
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x438b43
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 4], 0
pop esi
ret
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret
Function at 0x43f5d0
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 0x4402a9
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.WS2_32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WS2_32.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 0x4402e2
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WS2_32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x4402df
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 0x4402f9
push edi
call sub.WS2_32.dll_htonl
mov esi, dword [ebp + 0x10]
push ebx
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44034c
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.WS2_32.dll_ntohl
push dword [esi + 4]
mov ebx, eax
call sub.WS2_32.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 0x440385
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WS2_32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x440382
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 0x44039f
push ebx
call sub.WS2_32.dll_htonl
mov esi, dword [ebp + 0x10]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4074f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4850ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00477987
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407572
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004750dd
mov eax, dword [eax]
push 0x4a3200
push eax
call fcn.00467444
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00477c12
test bl, bl
je 0x407572
push 0x4a3200
lea ecx, [esp + 0xc]
call fcn.00477fee
push 0x4a6d6c
lea ecx, [esp + 0xc]
call fcn.00477fee
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4075ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00477c12
jmp 0x407679
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407632
lea edx, [esp + 0x7c]
push 0x4a6d68
push edx
call fcn.00467444
add esp, 8
test eax, eax
je 0x407632
lea eax, [esp + 0x7c]
push 0x4a6d64
push eax
call fcn.00467444
add esp, 8
test eax, eax
je 0x407632
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4075c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00477c12
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x407e70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407ed2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x407ee0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48512b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b3e28]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x408018
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407f46
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00477c12
xor eax, eax
jmp 0x40808f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00477d9b
push esi
lea ecx, [esp + 0xc]
call fcn.0047802a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40806d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00407e70
test eax, eax
jne 0x40806d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.00407e70
test eax, eax
jne 0x40806d
lea eax, [esp + 0x14]
push 0x4a6d80
push eax
call fcn.00468520
mov esi, eax
add esp, 8
test esi, esi
jne 0x40804c
lea ecx, [esp + 0x14]
push 0x4a6d7c
push ecx
call fcn.004684a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40804c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40804f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00477d4b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407f5e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00477c12
xor eax, eax
jmp 0x40808f
mov byte [esi], 0
push 0x4a6d78
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00477c12
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4