joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a956
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 4
push esi
mov esi, eax
jne 0x40a97c
push 4
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040a4cd
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40ab98
cmp dword [esp + 8], 3
jne 0x40ab98
mov eax, dword [0x423ef4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x40a998
xor ebx, ebx
jmp 0x40a9a3
mov ebx, dword [0x423ef8]
sub ebx, eax
sar ebx, 2
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push esi
call edi
push dword [0x422e34]
mov dword [esp + 0x18], eax
push esi
push str.OnQuietDownloadInstallTimer_hDlg_x__nState_d_n
call fcn.00409014
mov ecx, dword [0x422e34]
add esp, 0xc
cmp ecx, ebp
jge 0x40aa24
push ebp
push 0x423ef0
mov dword [0x422e34], ebp
call fcn.00404d83
test eax, eax
jge 0x40a9f4
push ebp
push 0x6a
push ebp
call fcn.0040927f
jmp 0x40aa01
push 3
mov eax, esi
call fcn.0040a44e
test eax, eax
jg 0x40aa0d
call fcn.0040a4cd
push 0xffffffffffffffff
call fcn.0040e8de
push ebp
push 9
push 0x402
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ab95
jne 0x40aa7e
mov edi, 0x423ef0
push edi
call fcn.00403ab8
cmp eax, ebp
jl 0x40ab95
cmp eax, 0x64
jge 0x40aa5a
cmp eax, 0x5f
jle 0x40aa46
push 0x5f
pop eax
push ebp
lea eax, [eax + eax*4]
push 0x64
shl eax, 3
xor edx, edx
pop ecx
div ecx
add eax, 0xa
push eax
jmp 0x40aa10
push ebp
mov ecx, edi
call fcn.00404115
push 0x85
push 0xffffffffffffffff
push esi
mov dword [0x422e34], 1
call fcn.0040a30f
jmp 0x40ab95
cmp ecx, ebp
jle 0x40aaa5
cmp ecx, 3
jge 0x40aaa5
mov eax, ecx
inc ecx
xor edx, edx
mov dword [0x422e34], ecx
call fcn.004081aa
mov eax, dword [0x422e34]
lea eax, [eax + eax*4]
lea eax, [eax + eax + 0x31]
jmp 0x40ab05
push 3
pop eax
cmp ecx, eax
jle 0x40aace
cmp ecx, 5
jg 0x40aace
mov eax, ecx
inc ecx
xor edx, edx
mov dword [0x422e34], ecx
call fcn.004081aa
mov eax, dword [0x422e34]
lea eax, [eax + eax*4 + 0xf]
shl eax, 1
jmp 0x40ab05
cmp dword [0x42412c], ebx
jge 0x40ab1c
mov edx, dword [0x42412c]
inc dword [0x42412c]
call fcn.004081aa
mov eax, dword [0x42412c]
cmp eax, ebx
jl 0x40aafa
mov dword [0x422e34], 4
lea eax, [eax + eax*4]
shl eax, 1
cdq
idiv ebx
add eax, 0x46
push ebp
push eax
push 0x402
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x422e34]
cmp ecx, 5
jle 0x40ab95
push 3
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040a4cd
push 0x89
push 0xffffffffffffffff
push esi
call fcn.0040a30f
call fcn.00409200
push 0x64
pop ecx
xor edx, edx
div ecx
push dword [eax*4 + 0x422d10]
push 2
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebp
push 0x3ed
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push ebp
push 0x3e8
push esi
call edi
push eax
call ebx
push 1
push 0xfffffffffffffff4
push 2
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebp
push 0x3a98
push 4
push esi
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x40ae4b
Capabilities:
Create thread
Terminate process

Disassembly:
mov eax, 0x41970e
call fcn.0040fe54
cmp dword [ebp + 0xc], 5
jne 0x40afd1
mov eax, dword [0x424128]
push esi
xor esi, esi
cmp eax, esi
jne 0x40ae97
or dword [0x424128], 0xffffffff
push esi
push esi
push esi
push 0x40ad86
push esi
push esi
mov dword [0x423d88], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x424128], 0xfffffffe
jmp 0x40afd0
cmp eax, 0xffffffff
je 0x40afd0
cmp eax, 0xfffffffe
push edi
jne 0x40af5d
mov eax, dword [0x423d88]
cmp eax, esi
je 0x40afcf
cmp eax, 0x1000
push esi
jge 0x40aed5
or dword [0x424128], 0xffffffff
push 0x8a
push dword [ebp + 8]
call fcn.0040927f
jmp 0x40aeeb
lea eax, [ebp + 8]
push eax
call fcn.00404c1f
pop ecx
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], esi
jne 0x40aef2
push 1
call fcn.0040e8de
mov eax, dword [0x422e4c]
mov ecx, 0x422e4c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
mov eax, dword [0x423d88]
push eax
push eax
push dword [0x423d8c]
lea eax, [ebp + 0xc]
push str._s0_ld_ld1_r_n_r_n
push eax
call fcn.004023b3
mov esi, dword [ebp + 0xc]
add esp, 0x14
push dword [ebp + 8]
mov edi, 0x423ef0
push esi
push edi
call fcn.00403713
call fcn.004036e8
lea eax, [esi - 0x10]
mov dword [0x424128], 1
call fcn.0040252e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040252e
jmp 0x40afcf
push ebx
mov edi, 0x423ef0
push edi
call fcn.00403ab8
mov ebx, eax
cmp ebx, esi
jl 0x40afce
cmp ebx, 0x64
jge 0x40afac
cmp ebx, 0x5f
jle 0x40af7c
push 0x5f
pop ebx
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov ecx, eax
push 0x64
pop esi
lea eax, [ebx + ebx*4]
shl eax, 3
xor edx, edx
div esi
add eax, 0xa
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40afce
push esi
mov ecx, edi
call fcn.00404115
mov esi, dword [ebp + 8]
push 5
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040a4cd
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40b1dc
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1e4]
sub esp, 0x264
mov eax, dword [0x4220b8]
push esi
push edi
push dword [ebp + 0x1ec]
mov dword [ebp + 0x1e0], eax
xor eax, eax
mov dword [ebp - 0x28], 0x22
mov ecx, 0x81
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x26]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.___s
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040cae0
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.0040cae0
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x1f0]
lea eax, [ebp - 0x28]
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40b2d4
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
push esi
jne 0x40b2b5
push str.RunSfxSetup_CreateProcess_FormatMessage_Error._n
call fcn.00409014
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x1e0]
pop edi
pop esi
call fcn.0040f65e
add ebp, 0x1e4
leave
ret 8
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
push str.RunSfxSetup_CreateProcess_Cmd_s__Error:__s_n
call fcn.00409014
add esp, 0x10
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40b29c
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
push dword [ebp - 0x54]
lea eax, [ebp - 0x28]
push eax
push str.RunSfxSetup_Cmd_s__return_d_n
call fcn.00409014
add esp, 0xc
cmp dword [ebp - 0x54], 1
ja 0x40b29c
push dword [ebp + 0x1ec]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x40b29e
Function at 0x40b32a
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x194
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 0x64
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x118]
push eax
push 0xffffffffffffffff
push 0x4239a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x118]
push eax
call fcn.004190e5
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
pop ecx
push 0x49
pop ecx
xor eax, eax
mov dword [ebp - 0xb4], esi
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
call ebx
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x11c], eax
je 0x40b45c
lea ecx, [ebp - 0xb4]
push ecx
push eax
mov dword [ebp - 0xb4], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40b45c
lea eax, [ebp - 0x90]
push eax
push str.KillLavaProcessA:_pe32.szExeFile_S_n
call fcn.00409014
lea eax, [ebp - 0x90]
push eax
call fcn.004190e5
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0040d2d0
add esp, 0x14
test eax, eax
je 0x40b436
call ebx
cmp dword [ebp - 0xac], eax
je 0x40b436
push dword [ebp - 0xac]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0xac]
mov edi, eax
push edi
push str.KillLavaProcessA:_hLava0x_x__pe32.th32ProcessID0x_x_n
call fcn.00409014
add esp, 0xc
cmp edi, esi
je 0x40b42f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x11c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b3ba
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
call fcn.0040f65e
add ebp, 0x78
leave
ret

Function at 0x40b46c
Capabilities:
Copy file
Delete file

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x4238d8
mov edi, 0x4239a0
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b4f4
xor esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b4da
cmp esi, 1
jne 0x40b4bf
push ebx
call fcn.004022d0
cmp eax, esi
jne 0x40b4f0
push str.DianjiRingExit
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push ebx
push ebx
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40b4c9
cmp esi, 0x3c
jne 0x40b4c9
call fcn.0040b32a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x3c
jl 0x40b489
inc esi
cmp esi, 0x5a
jl 0x40b4f4
push ebx
push 0x82
push ebx
call fcn.0040927f
push 0xfffffffffffffffd
pop eax
jmp 0x40b4f6
push 0xfffffffffffffffe
jmp 0x40b4ed
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40b94a
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
mov dword [ebp + 0x188], eax
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax]
lea eax, [ebp + ecx - 0x80]
mov dx, word [eax - 2]
cmp dx, 0x5c
je 0x40b99f
cmp dx, 0x2f
je 0x40b99f
mov word [eax], 0x5c
lea eax, [ebp + ecx - 0x7e]
mov esi, str.IdleTest.dll
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x80]
push eax
push str.DoIdleTest:_idletest_to_system_directory:__s_n
call fcn.00409014
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x80]
push eax
mov ebx, 0x41c9b4
push ebx
call edi
push 0
lea eax, [ebp - 0x80]
push eax
push esi
call edi
test eax, eax
je 0x40b9e7
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
pop ebx
call fcn.0040f65e
add ebp, 0x18c
leave
ret

Function at 0x40b9fd
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4220b8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebp
push esi
push edi
push 0x4239a0
mov esi, 0x4238d8
push esi
mov dword [esp + 0x220], eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
xor edi, edi
lea esi, [edi + 0x41c990]
push dword [esi]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..DEL
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
lea eax, [esp + 0x14]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
add edi, 4
cmp edi, 0x24
jb 0x40ba31
call fcn.0040b94a
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040f65e
add esp, 0x20c
ret

Function at 0x40dd2a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x40dd47
call fcn.00410bbf
mov dword [eax], 0x16
xor eax, eax
jmp 0x40ddb1
push esi
push 0x8c
push 1
call fcn.0040cb40
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40dd9c
push esi
call fcn.00410ead
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40dd7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40dc95
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40ddb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040cd88
test ebx, ebx
pop ecx
je 0x40ddae
push ebx
call fcn.00410bd1
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40e81b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41a570
call fcn.0040f66c
push 8
call fcn.00410000
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x422efc], esi
jne 0x40e84f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x422ef8], esi
mov al, byte [ebp + 0x10]
mov byte [0x422ef4], al
cmp dword [ebp + 0xc], edi
jne 0x40e899
cmp dword [0x4258f0], edi
je 0x40e889
mov eax, dword [0x4258ec]
sub eax, 4
mov dword [0x4258ec], eax
cmp eax, dword [0x4258f0]
jb 0x40e889
mov eax, dword [eax]
cmp eax, edi
je 0x40e86a
call eax
jmp 0x40e86a
push 0x422040
mov eax, 0x422038
call fcn.0040e799
pop ecx
push 0x42204c
mov eax, 0x422044
call fcn.0040e799
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40e8ca
cmp dword [ebp + 0x10], edi
jne 0x40e8d8
mov dword [0x422efc], esi
push dword [ebp + 8]
call fcn.0040e757
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40e8d7
push 8
call fcn.0040ff4b
pop ecx
ret
call fcn.0040f6a7
ret
Function at 0x40f459
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41a5f0
call fcn.0040f66c
mov edi, 0x94
mov eax, edi
call fcn.00415020
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x422ebc], ecx
mov eax, dword [esi + 4]
mov dword [0x422ec8], eax
mov edx, dword [esi + 8]
mov dword [0x422ecc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x422ec0], esi
cmp ecx, 2
je 0x40f4b9
or esi, 0x8000
mov dword [0x422ec0], esi
shl eax, 8
add eax, edx
mov dword [0x422ec4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f4f4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f4f4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f50c
cmp eax, 0x20b
je 0x40f4f9
mov dword [ebp - 0x1c], esi
jmp 0x40f520
cmp dword [ecx + 0x84], 0xe
jbe 0x40f4f4
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f51a
cmp dword [ecx + 0x74], 0xe
jbe 0x40f4f4
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041004b
pop ecx
test eax, eax
jne 0x40f534
push 0x1c
call fcn.0040f435
pop ecx
call fcn.004110a7
test eax, eax
jne 0x40f545
push 0x10
call fcn.0040f435
pop ecx
call fcn.0041342d
mov dword [ebp - 4], esi
call fcn.00414e18
test eax, eax
jge 0x40f55e
push 0x1b
call fcn.0040f410
pop ecx
call fcn.00414d79
mov dword [0x4258e4], eax
call fcn.00414c0f
mov dword [0x422f0c], eax
call fcn.00414b79
test eax, eax
jge 0x40f583
push 8
call fcn.0040f410
pop ecx
call fcn.00414946
test eax, eax
jge 0x40f594
push 9
call fcn.0040f410
pop ecx
push 1
call fcn.0040e7b1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40f5aa
push eax
call fcn.0040f410
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00414900
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40f5cb
movzx eax, word [ebp - 0x40]
jmp 0x40f5ce
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040749e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f5ec
push edi
call fcn.0040e8de
call fcn.0040e900
jmp 0x40f61e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f6a7
ret
Function at 0x41269d
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x41adb8
call fcn.0040f66c
mov eax, dword [0x4220b8]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x412741
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00415020
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x41272e
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x412741
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x41275c
cmp byte [edi + 1], 0x3a
jne 0x41275c
movzx eax, byte [edi]
push eax
call fcn.00416cfd
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x41276c
push edi
call fcn.0040cd88
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.0040f65e
call fcn.0040f6a7
ret
Function at 0x413cef
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4220b8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x413d20
xor eax, eax
jmp 0x413ea9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x424560]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x413d5c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00417bc6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x413e37
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x413e75
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x413dc0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x413db1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x413d91
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413e00
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x413e09
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x413d82
jmp 0x413e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x413ea4
cmp dword [ebp - 0x6c], edi
je 0x413e75
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x413e6a
call fcn.00410bbf
mov dword [eax], 9
call fcn.00410bc8
mov dword [eax], esi
jmp 0x413e9f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413e5f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x413e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x413e0b
push dword [ebp - 0x6c]
call fcn.00410bd1
pop ecx
jmp 0x413e9f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x413e8d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x413e8d
xor eax, eax
jmp 0x413ea7
call fcn.00410bbf
mov dword [eax], 0x1c
call fcn.00410bc8
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x413ea7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040f65e
add ebp, 0x3a0
leave
ret
Function at 0x414750
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4220b8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x422a28]
je 0x414785
inc eax
cmp eax, 0x13
jb 0x414776
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x422a28]
jne 0x4148ab
mov eax, dword [0x422f10]
cmp eax, 1
je 0x414883
cmp eax, edx
jne 0x4147b5
cmp dword [0x4220b4], 1
je 0x414883
cmp ecx, 0xfc
je 0x4148ab
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4147eb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040cc90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040cc00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41481f
mov eax, edi
push eax
call fcn.0040cc00
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b2c8
push edi
call fcn.0040ce00
add esp, 0x10
push edi
call fcn.0040cc00
push dword [esi + 0x422a2c]
mov ebx, eax
call fcn.0040cc00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00415020
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040cc90
push edi
push ebx
call fcn.0040cca0
push 0x41b2a8
push ebx
call fcn.0040cca0
push dword [esi + 0x422a2c]
push ebx
call fcn.0040cca0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00417cca
add esp, 0x2c
jmp 0x4148ab
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x422a2c]
push dword [esi]
call fcn.0040cc00
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040f65e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret