joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4c23d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [eax + 0x10c]
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x458d8f
push edi
push esi
push ebx
jmp 0x458be8
mov ebp, dword [esp + 0x38]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x458d7d
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
call fcn.004b2d7a
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov cl, byte [esp + 0x38]
mov byte [esp + 0x18], cl
mov edi, ebx
mov byte [ebx + eax], 0
xor eax, eax
or ecx, 0xffffffff
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], eax
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00458ed0
test al, al
je 0x458c6e
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00458eb0
mov eax, dword [0x4ffbf8]
xor ebp, ebp
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x30], ebp
je 0x458d1e
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
cmp edi, ebp
jne 0x458d1e
push 0xb8
call fcn.004b2d7a
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x30], 1
je 0x458cba
mov ecx, eax
call fcn.00457230
mov edi, eax
jmp 0x458cbc
xor edi, edi
mov eax, dword [0x4ffbf8]
push edi
push eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebp
jne 0x458ceb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x4e2f88
push ecx
mov dword [esp + 0x18], eax
call fcn.00499f84
push 8
call fcn.004b2d7a
add esp, 4
mov esi, eax
push 0x4ffc00
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4ffbfc]
push 0x4ffc00
mov dword [esi + 4], edx
mov dword [0x4ffbfc], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edx, dword [edi + 0x90]
lea ecx, [edi + 0x88]
lea eax, [esp + 0x18]
push eax
push 1
push edx
call fcn.004591d0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
cmp eax, ebp
je 0x458d64
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x458d5b
cmp al, 0xff
je 0x458d5b
dec al
mov byte [ecx], al
jmp 0x458d64
push ecx
call fcn.004b2da3
add esp, 4
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004b2da3
mov ebp, dword [esp + 0x3c]
add esp, 4
mov ebp, dword [ebp]
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x458be4
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x464bc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x464bf0
push esi
call fcn.0046e560
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x464be9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x464c73
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x464c5f
mov eax, dword [esi + 8]
test eax, eax
je 0x464c14
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x464c5b
cmp eax, 2
je 0x464c5f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x464c07
cmp eax, 3
je 0x464c3a
cmp eax, 1
jne 0x464c07
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x464c07
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x464c07
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00464ca0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x464c93
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00464ca0
add esp, 4
pop esi
ret

Function at 0x48b6bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x48b703
cmp edx, 0x10
jl 0x48b6ef
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x48b6dc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x48b703
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x48b6fb
and edx, 3
cmp edx, 3
jne 0x48b717
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x48b71c
cmp edx, 2
jne 0x48b728
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x48b72d
cmp edx, 1
jne 0x48b733
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4a4e24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4f7078
cmp edx, dword [eax]
je 0x4a4e46
add eax, 8
inc ecx
cmp eax, 0x4f7108
jl 0x4a4e37
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4f7078]
jne 0x4a4f74
mov eax, dword [0x50e454]
cmp eax, 1
je 0x4a4f4e
test eax, eax
jne 0x4a4e77
cmp dword [0x4f5dc4], 1
je 0x4a4f4e
cmp edx, 0xfc
je 0x4a4f74
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4a4eae
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004a2460
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a17f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4a4ef1
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a17f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4da2a0
push edi
call fcn.00499800
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004a2460
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004a2470
lea eax, [ebp - 0xa0]
push 0x4da280
push eax
call fcn.004a2470
push dword [esi + 0x4f707c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004a2470
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004a841f
add esp, 0x2c
pop edi
jmp 0x4a4f74
lea eax, [ebp + 8]
lea esi, [esi + 0x4f707c]
push 0
push eax
push dword [esi]
call fcn.004a17f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x4ac2e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0049a7a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4ac3ab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4ac3ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4ac35e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4ac369
or bh, 8
and edi, 0x8000000
je 0x4ac384
mov eax, dword [0x510ffc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4ac3ab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ac7ab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
jne 0x4ac7cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4ac7ea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4afe25
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4afe5d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b2c52
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b2c2a
jmp 0x4afe69
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b15b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b15f3
call fcn.004b8884
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4b15f3
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4b15ea
xor eax, eax
jmp 0x4b15fb
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b1601
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b2f66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4b2f88
cmp dword [edi + 0x3c], 0
jne 0x4b2f88
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004b8884
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004b2fb5
pop edi
pop esi
pop ebx
ret 8
Function at 0x407b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4174a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 1
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea eax, [esp + 4]
mov ecx, esi
push eax
mov byte [esp + 0x40], 2
call fcn.00407cf0
lea ecx, [esp + 8]
push str._Y_M_D.csv
push ecx
mov byte [esp + 0x44], 3
call fcn.00405050
add esp, 8
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 4]
push 0
push 0x3002
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CStdioFile::Open
mov eax, dword [esp + 0x20]
push 2
push 0
lea ecx, [esp + 0x28]
call dword [eax + 0x30]
lea ecx, [esp + 0x1c]
push str._H:_m:_S
push ecx
call fcn.00405050
add esp, 8
push 0x41cb50
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x44]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_operator_2
push 0x41cb50
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x44], 7
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x48]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_operator_2
push 0x41cb4c
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x44], 9
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x40], 0xa
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 1
call fcn.004168f8
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret 8

Function at 0x408480
Capabilities:
Read file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4084b1
push eax
call fcn.004081e0
add esp, 4
mov eax, dword [esp]
pop ecx
ret 8
Function at 0x4084c0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4084f1
push eax
call fcn.004081e0
add esp, 4
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x408610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4175b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea ecx, [esp]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [esp + 0x24]
push 0
push 0x1002
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CStdioFile::Open
mov edx, dword [esp]
push 0
push 0
lea ecx, [esp + 8]
call dword [edx + 0x30]
push 0
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFile::SetLength
lea ecx, [esp]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp]
mov byte [esp + 0x1c], 0
call fcn.004168f8
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4086b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4175ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push esi
mov ecx, dword [esp + 0x438]
lea eax, [esp + 0x43c]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x438], 0
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x24]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x41cc04
push 0x41cc00
lea ecx, [esp + 0xc]
mov byte [esp + 0x434], 1
call sub.MFC42.DLL_CString::Replace
push 0x41cbfc
push 0x41cbf8
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 8]
push str._Y__M__D__H:_m:_S:_s:
push ecx
call fcn.00405050
add esp, 8
lea edx, [esp + 4]
mov byte [esp + 0x42c], 2
push edx
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x430], 3
call fcn.00416694
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x42c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov ecx, dword [esp + 0x434]
push 0
push 0x3002
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x438], 4
call sub.MFC42.DLL_CStdioFile::Open
mov edx, dword [esp + 0x10]
push 2
push 0
lea ecx, [esp + 0x18]
call dword [edx + 0x30]
lea eax, [esp + 4]
push 0x41cbf8
lea ecx, [esp + 0xc]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x430], 5
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 8]
mov byte [esp + 0x42c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], 1
call fcn.004168f8
lea ecx, [esp + 4]
mov byte [esp + 0x42c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x434]
mov dword [esp + 0x42c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x424]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x42c
ret
Function at 0x40975f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
xor ebx, ebx
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040982b
add esp, 0xc
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x45
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 9], 0x78
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 8], 0x41
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], bl
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xb], 0x6e
mov dword [ebp - 0xa8], 0x94
call fcn.0040985a
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xa8]
push ecx
call eax
test eax, eax
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
jne 0x4097eb
call fcn.0040982b
add esp, 0xc
xor eax, eax
jmp 0x409828
call fcn.0040982b
mov eax, dword [ebp - 0x98]
add esp, 0xc
sub eax, ebx
je 0x409825
dec eax
je 0x409805
dec eax
je 0x409817
jmp 0x4097e7
cmp dword [ebp - 0xa0], ebx
jne 0x409811
push 4
jmp 0x409827
jbe 0x409817
push 5
jmp 0x409827
cmp dword [ebp - 0xa4], 5
sbb eax, eax
add eax, 7
jmp 0x409828
push 3
pop eax
pop ebx
leave
ret

Function at 0x40985a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0040982b
mov eax, dword [0x41cc54]
and byte [ebp - 8], 0
add esp, 0xc
cmp eax, 1
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
jne 0x4098bd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x41cc54], eax
leave
ret

Function at 0x4098bf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push esi
push 0x4000000
push 1
push esi
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov byte [ebp - 0x1c], 0x5c
mov byte [ebp - 0x1b], 0x5c
mov byte [ebp - 0x1a], 0x2e
mov byte [ebp - 0x19], 0x5c
mov byte [ebp - 0x18], 0x48
mov byte [ebp - 0x17], 0x4f
mov byte [ebp - 0x16], 0x53
mov byte [ebp - 0x15], 0x54
mov byte [ebp - 0x14], 0x39
mov byte [ebp - 0x13], 0x35
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0x10], 0x58
mov byte [ebp - 0xf], 0x44
call fcn.0040996b
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x409930
mov eax, 0xc357
jmp 0x409967
push ebx
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push 8
push eax
push esi
push esi
push 2
push edi
call fcn.004099f6
push edi
mov ebx, eax
call fcn.00409a94
add esp, 0x24
cmp ebx, esi
pop ebx
je 0x409962
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 8]
mov byte [eax], cl
xor eax, eax
jmp 0x409967
mov eax, 0xc358
pop edi
pop esi
leave
ret