joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414d40
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
sub esp, 0x828
cmp dword [0x46b19c], 0x60b
mov eax, dword [esp + 0x82c]
mov ecx, dword [eax]
mov edx, dword [0x436f9c]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [str._Q2r]
mov dword [esp + 0x2c], eax
mov eax, dword [0x436fa0]
mov dword [esp + 0x24], edx
mov edx, dword [0x436fa4]
mov ebx, 0xc6ef3720
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
jne 0x414db2
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0x20
jmp 0x414dc4
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
cmp dword [0x46b19c], 5
mov dword [esp + 0xc], eax
jne 0x414dee
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x20]
lea esi, [ebx + ecx]
shr ecx, 5
cmp dword [0x46b19c], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jne 0x414e2e
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0x403ef0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x28]
xor eax, esi
xor ecx, eax
cmp dword [0x46b19c], 0x5ba
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [0x468200], 0
jne 0x414e6b
push 0x403f18
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [esp + 0x10]
sub edi, ecx
mov edx, edi
shl edx, 4
cmp dword [0x46b19c], 0x78c
mov dword [esp + 0xc], edx
jne 0x414e98
push 0
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [esp + 0x2c]
add dword [esp + 0xc], eax
mov edx, edi
shr edx, 5
mov dword [0x468208], 0xff6b3619
mov dword [0x46820c], 0xffffffff
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
lea eax, [ebx + edi]
xor dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
xor dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
sub dword [esp + 0x14], eax
cmp dword [0x46b19c], 0x93
jne 0x414efa
push 0x403fd0
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x414f07
lea eax, [esp + 0x1c]
call fcn.00414cd0
mov ebx, dword [esp + 0x1c]
dec dword [esp + 0x18]
jne 0x414dc0
mov eax, dword [esp + 0x838]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], edx
pop ebx
add esp, 0x828
ret 4
Function at 0x401005
Capabilities:
Delete file
Read .ini file

Disassembly:
jmp 0x40aa80
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4537d8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x16bbc]
test eax, eax
je 0x40abdf
push 0x60e
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
test bl, bl
je 0x40abdf
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
and ebx, 0xff
lea ecx, [esp + 0x14]
push ebx
push str.PC_d
push ecx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov ebx, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x14]
add esi, 0x16bc0
push edx
push esi
lea eax, [esp + 0x14]
push str._s_s_LOG.ini
push eax
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [0x46b73c]
push edx
push 4
push str.LoggingPortNUM
push str.LogFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, eax
mov esi, ebx
cmp ebp, ebx
jb 0x40abb2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
lea eax, [esp + 0x18]
push str.PORT_d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 0xc
push ecx
push 0x46b324
push edx
push str.RESULT
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push 0x46b324
push ecx
push str.PortMapping
call edi
inc esi
cmp esi, ebp
jbe 0x40ab6d
pop edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebp
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x40102d
Capabilities:
Read .ini file

Disassembly:
jmp 0x406d80
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, ecx
push eax
call dword [0x46be04]
add esp, 4
mov esi, eax
mov ecx, edi
push esi
call fcn.0040178a
mov ecx, dword [0x46b73c]
push ecx
push 0
push str.RemoteLogging
push str.LogFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x406dc5
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x406df8
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je 0x406df3
push eax
call dword [0x46bf40]
add esp, 4
inc edi
cmp edi, ebx
jb 0x406ddd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 4
Function at 0x40105a
Capabilities:
Create process on windows

Disassembly:
jmp 0x404d60
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push 0x8000000
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x404db5
add esp, 0x54
ret 8
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x404dca
mov ecx, dword [esp]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x54
ret 8
Function at 0x401069
Capabilities:
Read .ini file

Disassembly:
jmp 0x406a90
push 0xffffffffffffffff
push 0x4534a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov ecx, dword [0x46be00]
push ebp
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x46b860
lea ecx, [esp + 0x10]
push 0x46b864
push ecx
call sub.MFC42.DLL_operator_1
mov ecx, dword [0x46be00]
mov eax, dword [eax]
push eax
mov dword [esp + 0x224], 0
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x46b73c]
lea ecx, [esp + 0x10]
push eax
push 0x104
lea edx, [esp + 0x11c]
push ecx
push edx
push str.IgnoreVIDPID
push str.IGNORE
mov dword [esp + 0x238], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [sym.imp.MSVCRT.dll_strtok]
lea eax, [esp + 0x10]
push 0x4659e4
push eax
call ebp
mov esi, eax
mov eax, dword [0x46b9a0]
add esp, 8
test eax, eax
je 0x406bda
mov ecx, dword [0x46be00]
lea eax, [esp + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x406bda
push edi
push 0x4659e4
push 0
call ebp
add esp, 8
mov edi, eax
lea ecx, [esp + 0xc]
push edi
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0xc]
mov esi, 0x46b324
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406bb3
test cl, cl
je 0x406baf
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406bb3
add eax, 2
add esi, 2
test cl, cl
jne 0x406b8f
xor eax, eax
jmp 0x406bb8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406bd9
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [0x46be00]
mov edx, dword [esp + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
test edi, edi
jne 0x406b6e
pop edi
xor esi, esi
mov eax, dword [0x46bb7c]
test eax, eax
je 0x406c06
mov ecx, dword [0x46bb80]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x406c06
mov ecx, dword [0x46be00]
mov eax, dword [eax + esi*4]
push eax
mov edx, dword [ecx]
call dword [edx + 8]
inc esi
jmp 0x406bdc
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x218]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x401096
Capabilities:
Read .ini file

Disassembly:
jmp 0x40dce0
sub esp, 0x410
lea eax, [esp + 0x208]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
mov ebx, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [0x46b73c]
mov ebp, dword [sym.imp.MSVCRT.dll_strrchr]
push 0x5c
push ecx
call ebp
mov edi, eax
or ecx, 0xffffffff
inc edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.Import.ini
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x10
test eax, eax
jne 0x40ddd8
mov edx, dword [0x46b73c]
mov ecx, dword [0x46b4a8]
push edx
lea eax, [esp + 0x118]
push 0x104
push eax
push 0x46b324
push str.TargetIniName
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x466588
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x424]
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x220]
push 0x5c
push edx
call ebp
add esp, 8
inc eax
push eax
lea eax, [esp + 0x328]
push str._s___s___s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea ecx, [esp + 0x31c]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetWindowTextA
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret 4
Function at 0x4010cd
Capabilities:
Get hostname
Get session user name

Disassembly:
jmp 0x412290
sub esp, 0x210
push esi
push edi
mov ecx, 0x40
xor eax, eax
mov edi, 0x46b610
mov esi, 0x46b710
rep stosd dword es:[edi], eax
mov eax, dword [0x46b748]
mov edi, 0x46b620
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov byte [0x46b612], cl
mov ecx, eax
shr edx, 0x10
mov byte [0x46b615], al
mov eax, dword [0x46b754]
mov byte [0x46b613], dl
xor edx, edx
shr ecx, 8
mov byte [0x46b617], al
mov al, byte [0x46b750]
mov byte [0x46b614], cl
mov dl, ah
mov ecx, 8
mov byte [0x46b610], 0xaa
mov byte [0x46b611], 1
mov byte [0x46b616], dl
mov byte [0x46b618], al
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x412347
mov ecx, 8
lea esi, [esp + 0x10]
mov edi, 0x46b650
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x114]
mov dword [esp + 8], 0x20
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x412389
mov ecx, 8
lea esi, [esp + 0x114]
mov edi, 0x46b670
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x210
ret

Function at 0x4010d7
Capabilities:
Read .ini file

Disassembly:
jmp 0x4165f0
mov eax, dword [0x46b73c]
push esi
mov esi, ecx
push eax
mov ecx, 0x46b818
call fcn.004018b6
test eax, eax
jne 0x41660b
pop esi
ret 4
mov ecx, dword [0x46b73c]
push ecx
call dword [0x46bf44]
mov edx, dword [0x46b73c]
add esp, 4
push edx
push 0
push str.SSDSorting
push 0x467008
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [esi + 0x16ee4], al
mov eax, dword [esi + 0xc0]
cmp eax, 0x66
je 0x416662
mov dword [esi + 0x16b84], 1
mov dword [0x466cb8], 0x10
mov eax, 1
pop esi
ret 4
mov eax, dword [0x46bb44]
mov ecx, dword [esi + 0x16b84]
mov edx, dword [0x466cb8]
test eax, eax
jne 0x416683
mov dword [0x466cb8], 0x20
jmp 0x4166d6
cmp eax, 1
jne 0x416694
mov dword [0x466cb8], 0x18
jmp 0x4166d6
cmp eax, 2
jne 0x4166a5
mov dword [0x466cb8], 0x10
jmp 0x4166d6
cmp eax, 3
jne 0x4166b6
mov dword [0x466cb8], 0x28
jmp 0x4166d6
cmp eax, 4
jne 0x4166c7
mov dword [0x466cb8], 0x30
jmp 0x4166d6
cmp eax, 5
jne 0x4166d6
mov dword [0x466cb8], 0x40
push ebx
mov ebx, dword [0x46bb48]
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [esi + 0x16b84], eax
pop ebx
je 0x4166f9
mov dword [0x466cb8], 0x10
cmp ecx, dword [esi + 0x16b84]
jne 0x416709
cmp edx, dword [0x466cb8]
je 0x416713
mov dword [esi + 0xfbe8], 1
mov eax, 1
pop esi
ret 4
Function at 0x401154
Capabilities:
Read .ini file

Disassembly:
jmp 0x42f360
push 0xffffffffffffffff
push 0x4575b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x46b738]
mov edx, dword [esp + 0x120]
push eax
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0x46b324
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_4
push 0x5c
lea ecx, [esp + 4]
mov dword [esp + 0x118], 1
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x42f410
push 0x469cb4
push 0x469cb0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::Replace
push 0x469cac
push 0x469ca8
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::Replace
push 0x4660e0
push 0x469ca4
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::Replace
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x401230
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x40ae30
push 0xffffffffffffffff
push 0x453850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x16bbc]
mov dword [esp + 0x18], 0
test eax, eax
jne 0x40ae82
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test al, al
jne 0x40aeca
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
push ecx
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 4]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0xc]
add esi, 0x16bc0
push edx
push esi
lea eax, [esp + 0x10]
push str._s_s_LOG.ini
push eax
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
inc ecx
push ecx
push str.PORT_d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
add esp, 0x1c
push eax
push ecx
push edx
push str.RESULT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 4]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x401235
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
jmp 0x426d90
mov eax, dword fs:[0]
mov ecx, dword [0x46b75c]
push 0xffffffffffffffff
push 0x456b70
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
mov dl, byte [ecx]
sub esp, 0x1c
push eax
push edx
call fcn.00401582
add esp, 8
test eax, eax
jne 0x426dd1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebp
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
push str._04X.TXT
push ecx
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
push str.LLF_
call sub.MFC42.DLL_CString::CString_4
mov esi, eax
push str.DBG_INFO_
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_4
push eax
lea edx, [esp + 0x1c]
push 0x46b740
push edx
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_operator_1
push 0x46b734
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x38], 4
push eax
call sub.MFC42.DLL_operator_1
push esi
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0xc]
mov byte [esp + 0x30], 6
push edx
push eax
lea eax, [esp + 0x40]
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x34], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x3c]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push eax
dec ecx
push 0x80
push 4
mov edi, ecx
mov ecx, dword [esp + 0x4c]
push eax
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
mov esi, eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40124e
Capabilities:
Terminate process

Disassembly:
jmp 0x4280c0
mov eax, dword [esp + 4]
sub esp, 8
cmp eax, 0xffffffff
jne 0x4280fb
mov eax, dword [0x46bf1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [0x466cb8]
push 0xffffffffffffffff
push 1
push 0x46be1c
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x42814f
cmp eax, 0x102
je 0x428149
jmp 0x42812c
mov edx, dword [0x46bf1c]
mov eax, dword [eax*4 + 0x46be1c]
push 0xffffffffffffffff
lea ecx, [esp + 4]
push 1
push ecx
push 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x42814f
cmp eax, 0x102
je 0x428149
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Wait_error:__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
add esp, 8
ret
mov eax, 1
add esp, 8
ret

Function at 0x40126c
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x4074c0
push 0xffffffffffffffff
push 0x45356f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push esi
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_4
mov ebx, 1
push 0x465b68
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
lea ecx, [esp + 8]
push esi
push 0
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
push 0x23
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea edx, [esp + 8]
dec esi
inc eax
push esi
push eax
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8