joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100030b4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0x50]
mov dword [ebp - 0xc], ecx
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10001284
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x14], entry0
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xe9
jne 0x1000116d
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 1]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 5]
mov dword [ebp - 0x14], edx
jmp 0x1000118d
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xeb
jne 0x1000118d
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx + 1]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x40
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
mov dword [edx], 0x1b8
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0xcc200
push 0x40
push 0x1000
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
push 0x80
mov ecx, dword [ebp - 0x10]
push ecx
call section..text
add esp, 8
test eax, eax
je 0x10001284
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea edx, [0x1000120d]
mov dword [ebp - 0x1c], edx
lea eax, [0x10001250]
sub eax, edx
mov dword [ebp - 0x20], eax
jmp 0x10001250
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [ebp - 0x10]
push 0x8000
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100015ad
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 1
jne 0x10001678
mov eax, dword [ebp + 8]
mov dword [0x100030b4], eax
push 0
push 0x2b
push 0x100030b8
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x100
push 0x100031b8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x100031b8
call fcn.10001552
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
push 0x100031b8
push 0x100032b8
call sub.MSVCRT.dll_strcpy
add esp, 8
push str.dllcache_rasadhlp.dll
push 0x100032b8
call sub.MSVCRT.dll_strcat
add esp, 8
push str.dllcache_sensapi.dll
push 0x100031b8
call sub.MSVCRT.dll_strcat
add esp, 8
call fcn.1000153b
push str.soul.exe
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000166d
call fcn.100010f0
push 0x100031b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x100032b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.HOOK
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1d6eed0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1d6eeda
pushal
call 0x1d6eee0
pop ebp
sub ebp, 0x10
sub ebp, 0x196eed0
jmp 0x1d6eef6
mov eax, 0x196eed0
add eax, ebp
add eax, 0x4c
mov ecx, 0x58e
mov edx, 0x8f061417
xor byte [eax], dl
inc eax
dec ecx
jne 0x1d6ef0d
jmp 0x1d6ef20
cmp dword [ecx], esi
and byte [edx + ebx*8 + 0x172b9e9c], bl
pop ss
pop ss
pushfd
ficomp dword [esi + ebx*4 + 0x1717172b]
xchg esi, eax
salc
out dx, eax
pop ss
pop ss
pop ss
adc al, 0xda
scasd eax, dword es:[edi]
adc dword [edi], edx
pop ss
pop ss
lodsd eax, dword [esi]
aas
pop ss
pop ss
pop ss
loopne 0x1d6ef31
adc al, 0xdf
pushfd
xchg esi, eax
sbb edx, dword [edi]
pop ss
pop ss
adc al, 0xd2
inc edi
inc edi
jg 0x1d6ef1d
invalid

Function at 0x406bb7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x406bb7
lcall 0x5de5, 0x8b10c483
jmp fcn.007ba3c4
Function at 0x401270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4042c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401490
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x404354
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
push 0x405608
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call dword [0x40511c]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x130], 0
call fcn.004020b0
push str.Version.ini
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x13c], 1
call fcn.00401270
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x104
lea edx, [esp + 0x20]
push edx
push str.http:__www.ecplive.cn_update_setup.exe
push str.UpdateURL
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push 0x405770
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov esi, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x401a60
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push esi
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401ad7
mov edi, dword [esp + 0x138]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0xc]
call dword [0x40511c]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CompareNoCase]
test eax, eax
je 0x401ae5
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401a91
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x12c
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
mov eax, esi
pop esi
add esp, 0x12c
ret 4

Function at 0x401b10
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push ebp
mov ebp, dword [esp + 0x134]
push esi
push edi
mov ecx, ebp
mov dword [esp + 0x10], 0x128
mov dword [esp + 0xc], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [eax + 1]
jmp 0x401b40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b40
push 0
sub eax, edx
push 2
mov esi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401b6e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401bc4
push ebx
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ebx, dword [sym.imp.MSVCR71.dll__strnicmp]
jmp 0x401ba2
lea edx, [esp + 0x14]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401bb4
push esi
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x401b85
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
pop ebx
jne 0x401bd1
mov ecx, dword [0x408404]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
add esp, 0x12c
ret 4

Function at 0x401e20
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x404539
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push str.ECP.exe
lea ecx, [esp + 8]
call dword [0x40511c]
lea eax, [esp + 4]
push eax
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.00401a60
lea ecx, [esp + 4]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, 0xffffffff
je 0x401e88
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x401e88
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x404539
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4021b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
call sub.MFC71.DLL_AfxGetModuleState
mov esi, dword [eax + 4]
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x3c]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [esp + 0x14], eax
jmp 0x4021e3
mov esi, dword [esp + 0x10]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
je 0x40222b
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
jne 0x402218
lea ecx, [esp + 0x18]
push ecx
call ebp
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x4021f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
mov esi, eax
jne 0x40223b
push 1
jmp 0x402240
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
sub esi, ecx
cmp esi, eax
jb 0x4021df
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x402650
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x404524
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
push 0x405608
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call dword [0x40511c]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x130], 0
call fcn.004020b0
push str.Version.ini
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x13c], 1
call fcn.00401270
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x104
lea edx, [esp + 0x20]
push edx
push 0x405608
push str.Version
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push 0x405770
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov esi, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402760
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x404524
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
push 0x405608
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call dword [0x40511c]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x130], 0
call fcn.004020b0
push str.Version.ini
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x13c], 1
call fcn.00401270
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x104
lea edx, [esp + 0x20]
push edx
push str.http:__www.ecplive.cn_update_update.html
push str.UpdateConfigURL
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push 0x405770
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov esi, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402870
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x404524
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
push 0x405608
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call dword [0x40511c]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x130], 0
call fcn.004020b0
push str.Version.ini
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x13c], 1
call fcn.00401270
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x104
lea edx, [esp + 0x20]
push edx
push str.http:__www.ecplive.cn_update_setup.exe
push str.UpdateURL
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push 0x405770
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov esi, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402a30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x404562
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0x405c60
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push 7
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esp + 0xc]
push eax
call fcn.004020b0
push str.ECP.exe
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], 0
call fcn.00401270
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test esi, esi
jne 0x402aa5
xor edi, edi
jmp 0x402aa8
mov edi, dword [esi + 0x20]
push 1
push 0
push 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x158]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x403d9d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x406310
call fcn.00403f9c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403ddd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403ddd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403df5
cmp eax, 0x20b
je 0x403de2
mov dword [ebp - 0x1c], ebx
jmp 0x403e09
cmp dword [ecx + 0x84], 0xe
jbe 0x403ddd
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x403e03
cmp dword [ecx + 0x74], 0xe
jbe 0x403ddd
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x408468], 0xffffffff
or dword [0x40846c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x408420]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40841c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x408464], eax
call fcn.00404062
call fcn.00404102
cmp dword [0x408044], ebx
jne 0x403e69
push fcn.00404102
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004040f0
push 0x408024
push 0x408020
call sub.MSVCR71.dll__initterm
push 0x4040a6
call fcn.00403cb0
mov eax, dword [0x408418]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x408414]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x403ebd
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40801c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x403f3b
cmp al, bl
je 0x403ee7
cmp dword [ebp - 0x20], ebx
jne 0x403f3b
mov al, byte [esi]
cmp al, bl
je 0x403ef7
cmp al, 0x20
ja 0x403ef7
inc esi
mov dword [ebp - 0x24], esi
jmp 0x403ee7
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x403f13
movzx eax, word [ebp - 0x54]
jmp 0x403f16
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00404288
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x403f33
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x403f90
cmp al, 0x22
jne 0x403f4a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x403f5d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x403ed5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403fd7
ret
Function at 0x4030d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403168
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403148
xor eax, eax
push ebp
push 0x403141
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403184
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403148
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403dbc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c044], 0
je 0x403e1d
cmp word [0x41c218], 0xd7b2
jne 0x403de5
cmp dword [0x41c220], 0
jbe 0x403de5
mov eax, 0x41c214
call dword [0x41c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41b06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41b030], 0
jne 0x403e39
push 0
push 0x41b064
push 0x41b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret