joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40a820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
lea eax, [edi + 0x14]
push eax
push 0x411630
push ecx
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call fcn.0040a228
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x401d7c
lea eax, [esp + 0xc]
push eax
call fcn.00404890
add esp, 4
mov eax, dword [eax]
lea esi, [edi + 0x18]
push eax
push str.PROGRESS
mov ecx, esi
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.0040a24c
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x48], 3
call fcn.0040a24c
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.00401f10
mov eax, dword [esi]
push 0
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x401db1
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 8]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x38
ret
mov esi, dword [esi]
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 8]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x38
ret
Function at 0x401f10
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40a878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push str.qw8912gda.L_34e
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x28], 2
call fcn.0040a24c
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 3
push ecx
lea ecx, [esp + 0x14]
call fcn.0040a24c
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
call fcn.00402080
push eax
lea ecx, [esp + 0x14]
call fcn.00402090
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0040a24c
call fcn.00401e00
add esp, 0x14
cmp eax, 1
jne 0x402002
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0040a24c
call fcn.00401100
mov ecx, dword [esp + 0x14]
push 0x410058
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x402002
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, dword [esp + 4]
test eax, eax
je 0x402013
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 8
Function at 0x4032c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40aaf8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
call fcn.00403330
mov eax, dword [esi + 0x30]
mov dword [esp + 0xc], 0xffffffff
cmp eax, 1
lea ecx, [esp + 0x14]
je 0x403315
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x403830
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
mov dword [esp + 0x10], 0
push str.ComputerManagerTP
push 0
call edi
test eax, eax
je 0x4038d6
push 0
push 0xf060
push 0x112
push eax
call ebp
push 0x12c
call ebx
push str.ComputerManagerTP
push 0
call edi
test eax, eax
je 0x4038d6
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x14]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4038bd
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x12c
call ebx
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jl 0x403851
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x403a80
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov ax, word [0x410208]
mov cl, byte [0x41020a]
push esi
push edi
mov word [esp + 0xc], ax
mov byte [esp + 0xe], cl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xf]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x104
push edx
push str.ProgramFiles
mov dword [esp + 0x14], 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x403b0d
mov edi, 0x410048
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
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
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x114]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
add esp, 0x108
ret 4
Function at 0x403b30
Capabilities:
Copy file
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40ac40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
lea eax, [esp + 0xc]
mov dword [esp + 0x34], 0
push eax
call fcn.00403a80
push 0x410454
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 8]
push str.ddedit.exe
lea eax, [esp + 4]
push edx
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call fcn.0040a228
mov ecx, dword [esp]
push 0
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x403c63
push ecx
lea edx, [esp + 4]
mov ecx, esp
mov dword [esp + 8], esp
push edx
call fcn.0040a24c
call fcn.00401100
add esp, 4
lea eax, [esp + 0x3c]
lea ecx, [esp + 4]
push str.dataddedit_s2.exe
push eax
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp]
mov eax, dword [esp + 4]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov byte [esp + 0x34], 5
lea ecx, [esp + 4]
jne 0x403c5e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp]
push 1
push 0
push 0x410430
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x404890
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x130
mov ax, word [0x410208]
mov cl, byte [0x41020a]
push esi
push edi
mov word [esp + 0xc], ax
mov byte [esp + 0xe], cl
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0xf]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x12c
push edx
push str.ProgramFiles
mov dword [esp + 0x14], 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x40491d
mov edi, 0x410048
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
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
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x13c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
add esp, 0x130
ret
Function at 0x4063e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40b478
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea ecx, [esp + 4]
push ecx
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi], eax
jne 0x406474
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 4]
push eax
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi], eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
jne 0x406474
mov esi, dword [esp + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4065f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40b4da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
push ecx
lea eax, [esp + 0x134]
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x12c], 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0xff
mov edi, ebx
call fcn.0040a24c
mov ecx, esi
call fcn.004063e0
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x40667d
cmp eax, 2
je 0x40667d
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call fcn.0040a24c
mov dword [esp + 0xc], ebx
jmp 0x40671f
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi], eax
je 0x4066b5
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call fcn.0040a24c
jmp 0x40671b
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x134]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esi], eax
je 0x4066e1
xor edi, edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x406708
mov esi, dword [esp + 0x12c]
lea edx, [esp + 0x134]
push edx
mov ecx, esi
call fcn.0040a24c
jmp 0x40671b
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x130]
mov byte [esp + 0x124], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x134]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x11c
ret 0xc
Function at 0x406770
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40b500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
push edi
mov ebp, ecx
mov dword [esp + 0x118], 0
mov edi, dword [esp + 0x124]
mov ebx, 1
cmp dword [edi - 8], 0xfe
jg 0x4067f1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
mov edx, dword [ebp + 4]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop esi
je 0x406820
lea ecx, [esp + 0x120]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x124]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40689a
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x124]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x406850
xor ebx, ebx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x406862
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x120]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x124]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x110
ret 8
Function at 0x408840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ba1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [esp + 0x1c], esi
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x34]
mov bl, 3
mov byte [esp + 0x28], bl
cmp dword [eax - 8], esi
jle 0x40894c
mov al, byte [esi + eax]
cmp al, 0x30
mov byte [esp + 0x10], al
jb 0x4088a1
cmp al, 0x39
jbe 0x40890e
cmp al, 0x61
jb 0x4088a9
cmp al, 0x7a
jbe 0x40890e
cmp al, 0x41
jb 0x4088b1
cmp al, 0x5a
jbe 0x40890e
cmp al, 0x40
je 0x40890e
cmp al, 0x23
je 0x40890e
cmp al, 0x24
je 0x40890e
cmp al, 0x2b
je 0x40890e
cmp al, 0x3d
je 0x40890e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
and eax, 0xff
push eax
push str.___02X
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x14]
jmp 0x408939
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x34]
inc esi
cmp esi, dword [eax - 8]
jl 0x408892
mov esi, dword [esp + 0x30]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0040a24c
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x408e40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40bab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea eax, [esp + 0x18]
push str.data_setupflag.txt
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_operator
mov edx, dword [esp + 4]
push 0x410058
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x408ea8
mov eax, dword [esp + 4]
push esi
mov ecx, dword [eax - 8]
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408ee0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40bad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 4], esp
push eax
mov dword [esp + 0x14], 0
call fcn.0040a24c
call fcn.00408e40
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp]
push str.data_ttboxtimer.exe
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [esp]
push 5
push 0x4114c4
push str._ServerRun
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x409b00
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40bc80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
lea ecx, [esp + 8]
mov dword [esp + 0x3c], 1
xor ebx, ebx
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x44]
push ebx
push ebx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x409b59
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.0040a270
jmp 0x409c17
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::GetLength
mov edi, eax
lea ecx, [edi + 1]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x10]
push edi
push ebp
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x20]
call fcn.0040a228
mov edx, dword [esp + 0x50]
push 0
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x409bb9
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x409bec
mov ecx, dword [esp + 0x50]
push 0x410058
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x409bec
push esi
push edi
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov ebx, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 1
call fcn.0040a270
pop edi
pop esi
test ebp, ebp
je 0x409c17
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
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]
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x409c50
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40bca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 3
push 0x5c
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x409cca
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc esi
lea eax, [esp + 8]
push esi
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 8]
push 0
push ecx
mov byte [esp + 0x1c], 1
call edi
push esi
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Find_2
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x409c8a
pop edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10001491
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10001544
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]