joyce8/EMBER2024-capa huggingface dataset:
Function at 0x115a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], 0
push str.KeServiceDescriptorTable
mov eax, dword [ebp + 8]
push eax
call fcn.000117b0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x115ce
mov eax, 0xc0000001
jmp 0x11675
mov ecx, dword [ebp + 8]
push ecx
call fcn.00011920
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x115ea
mov eax, 0xc0000001
jmp 0x11675
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00011950
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str.KiServAddr_0x_0x_ImageBase_0x_0x
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x1161f
mov eax, 0xc0000001
jmp 0x11675
mov eax, dword [0x13128]
shl eax, 2
push eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [ebp - 0xc], 0
jmp 0x11650
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [0x13128]
jae 0x11672
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
sub ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [eax + edx*4], ecx
jmp 0x11647
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 8

Function at 0x11680
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x116af
cmp dword [ebp - 0x10], 0xc0000004
je 0x116af
mov eax, dword [ebp - 0x10]
jmp 0x11757
push 0x44646b20
mov ecx, dword [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x116d3
mov eax, 0xc0000001
jmp 0x11757
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x116fe
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x10]
jmp 0x11757
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x11721
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jae 0x11737
mov ecx, dword [ebp - 8]
add ecx, 0x11c
mov dword [ebp - 8], ecx
jmp 0x11718
mov edx, dword [ebp - 8]
add edx, 0x1c
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntoskrnl.exe_strcat
add esp, 8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x15000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0x14000
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
call section..text
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1502e
mov eax, dword [ebp - 0x14]
jmp 0x15174
push 0x6e616d65
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x18], eax
push 0x61646472
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x1c], eax
push 0x6f726967
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], 0
jne 0x1507a
mov eax, 0xc0000001
jmp 0x15174
cmp dword [ebp - 0x1c], 0
jne 0x15096
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000001
jmp 0x15174
cmp dword [ebp - 8], 0
jne 0x150be
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000001
jmp 0x15174
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00011080
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x15126
mov dword [ebp - 4], 0
jmp 0x150ea
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 2
cmp dword [ebp - 4], ecx
jae 0x15126
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0x32
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
push str._3d_t_t_s_t_t_t0x_08x_t0x_08x_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
jmp 0x150e1
cmp dword [ebp - 0x18], 0
je 0x1513f
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x1c], 0
je 0x15158
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 8], 0
je 0x15171
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8
Function at 0x42d4e0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x71c
lea eax, [esp + 0x208]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x520]
push 0
lea edx, [esp + 0x628]
push ecx
lea eax, [esp + 0x424]
push edx
lea ecx, [esp + 0x220]
push eax
push ecx
call fcn.0040205d
add esp, 0x14
lea edx, [esp + 0xc]
push 0
push 0x10
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x41c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x318]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x318]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x624]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0xb]
cmp al, 0x2f
je 0x401104
cmp al, 0x5c
je 0x401104
mov edi, 0x40a12c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x520]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..lnk
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x318]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x218]
push ecx
push edx
call fcn.00401e14
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
add esp, 0x71c
ret
Function at 0x401760
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
push edi
mov dword [esp + 9], eax
push str.._version.ini
lea ecx, [esp + 0xc]
push 0xc
mov dword [esp + 0x15], eax
push ecx
push 0x40ce3c
mov word [esp + 0x21], ax
push str.Version
push str.Version
mov byte [esp + 0x20], 0
mov byte [esp + 0x2b], al
call esi
push 0
push 0
push str.version.ini
push str.http:__61.147.126.76:9000_3366cc_update_version.txt
push 0
call sub.urlmon.dll_URLDownloadToFileA
push str.._version.ini
push 0xc
push 0x40ce30
push 0x40ce3c
push str.Version
push str.Version
call esi
lea edx, [esp + 8]
push 0x40ce30
push edx
call fcn.00408060
add esp, 8
test eax, eax
je 0x40186c
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x40a304
push 0x40a2b0
push 0
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.taskkill__F__IM_dekaron.exe__IM_xsg.exe__IM_launcher.exe
call fcn.00402231
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 4
lea eax, [esp + 8]
push str.._version.ini
push eax
push str.Version
push str.Version
call esi
call fcn.00401c80
cmp eax, 1
je 0x401856
push 0
push 0x40a15c
push 0x40a268
push 0
call edi
pop edi
pop esi
add esp, 0xc
ret
push str.._version.ini
push 0x40ce30
push str.Version
push str.Version
call esi
pop edi
pop esi
add esp, 0xc
ret

Function at 0x401880
Capabilities:
Create process on windows
Download url
Receive data
Schedule task via at

Disassembly:
push 0
push str.bin_mss.dll
call fcn.004022c7
add esp, 8
cmp eax, 0xffffffff
jne 0x4018a9
push 0
push 0x40a404
push 0x40a3b4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
ret
call fcn.00401000
call fcn.004011a0
push 0
push 0
push str.update.ini
push str.http:__61.147.126.76:9000_3366cc_3366cc.txt
push 0
call sub.urlmon.dll_URLDownloadToFileA
call fcn.00401760
push 1
push str.launcher.exe_sel0
call dword [sym.imp.KERNEL32.dll_WinExec]
ret
Function at 0x401990
Capabilities:
Print debug messages
Read .ini file

Disassembly:
sub esp, 0x88
push esi
push edi
push str.BuildDownloadUrlFromConfigAndGlobal_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
push str.._version.ini
lea ecx, [esp + 0xc]
push 8
mov dword [esp + 0x11], eax
push ecx
push 0x40ce3c
mov word [esp + 0x1d], ax
push str.Protocol
push str.Version
mov byte [esp + 0x20], 0
mov byte [esp + 0x27], al
call esi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
push str.._version.ini
lea edx, [esp + 0x54]
push 0x40
push edx
stosw word es:[edi], ax
push 0x40ce3c
push 0x40a488
push str.Version
stosb byte es:[edi], al
call esi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.._version.ini
lea eax, [esp + 0x14]
push 0x40
push eax
push 0x40ce3c
push str.Path
push str.Version
call esi
lea ecx, [esp + 0x10]
push 0x40ce30
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push edx
push eax
push str._s:___s__s__s.rar
push ecx
call fcn.004021df
add esp, 0x18
pop edi
pop esi
add esp, 0x88
ret

Function at 0x401ad0
Capabilities:
Create thread
Delete file
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push esi
mov dword [0x40ce48], esi
call edi
push 0x3e8
push esi
mov dword [0x40ce44], eax
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x640000
push 0
push 0x401
push eax
mov dword [0x40ce40], eax
call esi
mov eax, dword [0x40ce40]
push 0
push 1
push 0x404
push eax
call esi
mov ecx, dword [0x40ce40]
push 0xff
push 0
push 0x409
push ecx
call esi
mov edx, dword [0x40ce40]
push 0xffffff
push 0
push 0x2001
push edx
call esi
push 1
lea eax, [esp + 0x10]
push 0x20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x40a4c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 0
push 0x401a70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x401c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push str.IDR_RAR
push 0x68
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401c78
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jbe 0x401c78
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c78
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401c78
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push ebx
push eax
push str.._bin_rar.exe
call fcn.00401d20
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x401c80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
call fcn.00401c10
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0x401bd0
push 0
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
mov esi, eax
call ebx
push str.taskkill__F__IM_TXPlatform.exe
call fcn.00402231
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 4
stosb byte es:[edi], al
push str.update.rar
lea eax, [esp + 0x10]
push str.._bin_rar.exe_x__ibck__o__s
push eax
call fcn.004021df
add esp, 0xc
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x1388
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x401d20
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x401de9
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x401de9
mov edi, dword [esp + 0x18]
test edi, edi
je 0x401de9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x401de9
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401d83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
xor al, al
ret
push 0
push 0
push 0
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x10]
push 0
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401dd0
cmp edi, dword [esp + 0x10]
jne 0x401dd0
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x1c]
push esi
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
ret
mov edx, dword [esp + 0x1c]
pop edi
pop esi
xor al, al
mov dword [edx], 0
pop ebx
ret
Function at 0x401e14
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
call sub.KERNEL32.dll_GetProcessHeap
mov dword [ebp - 0x14], eax
push 0x208
push 0
push dword [ebp - 0x14]
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x40a530
push 1
push 0
push 0x40a520
call sub.ole32.dll_CoCreateInstance
mov dword [ebp - 0x10], eax
test eax, eax
js 0x401eea
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
push eax
push 0x40a540
push dword [ebp - 8]
call dword [edx]
mov dword [ebp - 0x10], eax
test eax, eax
js 0x401edc
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [edx + 0x24]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [edx + 0x50]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [edx + 0x44]
mov dword [ebp - 0x10], eax
push 0x104
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
push dword [ebp - 0xc]
call dword [edx + 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp - 8]
call dword [edx + 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0x14]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x4022c7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4022e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004038a3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x402308
test byte [esp + 8], 2
je 0x402308
mov dword [0x40ce5c], 0xd
mov dword [0x40ce60], 5
jmp 0x4022e3
xor eax, eax
ret
Function at 0x40ecf0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4712ab
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.00465696
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ed72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00463370
mov eax, dword [eax]
push 0x493200
push eax
call fcn.004556a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00465921
test bl, bl
je 0x40ed72
push 0x493200
lea ecx, [esp + 0xc]
call fcn.00465cb1
push 0x496d88
lea ecx, [esp + 0xc]
call fcn.00465cb1
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 0x40edae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00465921
jmp 0x40ee79
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 0x40ee32
lea edx, [esp + 0x7c]
push 0x496d84
push edx
call fcn.004556a4
add esp, 8
test eax, eax
je 0x40ee32
lea eax, [esp + 0x7c]
push 0x496d80
push eax
call fcn.004556a4
add esp, 8
test eax, eax
je 0x40ee32
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 0x40edc2
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.00465921
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 0x40f670
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 0x40f6d2
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 0x40f6e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47132b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49de98]
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 0x40f818
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40f746
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465921
xor eax, eax
jmp 0x40f88f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00465a5e
push esi
lea ecx, [esp + 0xc]
call fcn.00465ced
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x496dc0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40f86d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040f670
test eax, eax
jne 0x40f86d
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 closesocket
mov ecx, edi
call fcn.0040f670
test eax, eax
jne 0x40f86d
lea eax, [esp + 0x14]
push 0x496d9c
push eax
call fcn.004566e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f84c
lea ecx, [esp + 0x14]
push 0x496d98
push ecx
call fcn.00456660
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f84c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40f84f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00465a0e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f75e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465921
xor eax, eax
jmp 0x40f88f
mov byte [esi], 0
push 0x496d94
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.00465921
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