joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x416dbc
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x41e280]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e280]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x30], ebx
test byte [0x4208ec], al
jne 0x406770
or dword [0x4208ec], eax
xor eax, eax
push 0x417300
mov dword [0x4208e8], 7
mov dword [0x4208e4], ebx
mov word [0x4208d4], ax
call fcn.00409d87
add esp, 4
cmp dword [0x4208e4], ebx
je 0x406790
xor ecx, ecx
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], cx
push ebx
jmp 0x406928
push ebx
push 0x1a
lea edx, [esp + 0x58]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4067a6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x54]
mov esi, 0x4208d0
call fcn.00403660
mov edi, esi
lea eax, [esp + 0x14]
call fcn.00406680
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x270], ebx
call fcn.00402040
mov edi, 8
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x406804
mov eax, dword [esp + 0x18]
push eax
call fcn.00409650
add esp, 4
mov ebx, 0x41a3f0
mov ecx, 0x4208d0
lea esi, [esp + 0x14]
call fcn.00402640
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4208d0
mov dword [esp + 0x270], 1
call fcn.00402040
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x40684f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00409650
add esp, 4
mov ebx, str.jiuzhou
mov ecx, 0x4208d0
lea esi, [esp + 0x14]
call fcn.00402640
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4208d0
mov dword [esp + 0x270], 2
call fcn.00402040
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x40689a
mov edx, dword [esp + 0x18]
push edx
call fcn.00409650
add esp, 4
mov ebx, 0x41a3ec
mov ecx, 0x4208d0
lea esi, [esp + 0x34]
call fcn.00402640
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4208d0
mov dword [esp + 0x270], 3
call fcn.00402040
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x4c], edi
jb 0x4068e5
mov eax, dword [esp + 0x38]
push eax
call fcn.00409650
add esp, 4
xor ecx, ecx
cmp dword [0x4208e8], edi
mov edi, dword [0x4208d4]
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
jae 0x406910
mov edi, 0x4208d4
call fcn.00406960
xor edx, edx
push 0xffffffffffffffff
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], 0
mov word [ebp + 4], dx
push edx
push 0x4208d0
mov ecx, ebp
call fcn.00402040
mov eax, ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0040965b
add esp, 0x254
ret
Function at 0x406960
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x416ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41e280]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov eax, dword [0x41e280]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
cmp edi, ebx
je 0x406a1d
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
xor eax, eax
mov word [esp + 0x30], ax
mov eax, edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4069c0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x30]
call fcn.00403660
mov dword [esp + 0x54], ebx
push 0x41a3ec
mov ebx, 1
xor eax, eax
mov edx, esi
call fcn.00403580
mov esi, eax
cmp esi, 0xffffffff
jne 0x406a24
push edi
call ebp
test eax, eax
jne 0x406ab0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406ab0
lea ecx, [esp + 0x2c]
call fcn.00401dd0
xor al, al
jmp 0x406add
lea ecx, [esp + 0x2c]
lea ebp, [esi + 1]
push ecx
mov ecx, ebp
xor edx, edx
lea esi, [esp + 0x14]
call fcn.00406b40
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x406a4c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406a76
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x406a65
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406afb
push 0x41a3ec
mov ebx, 1
mov eax, ebp
lea edx, [esp + 0x30]
call fcn.00403580
cmp dword [esp + 0x28], 8
mov esi, eax
jb 0x406aa1
mov edx, dword [esp + 0x14]
push edx
call fcn.00409650
add esp, 4
cmp esi, 0xffffffff
jne 0x406a24
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
test eax, eax
jne 0x406ac7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406a14
cmp dword [esp + 0x44], 8
jb 0x406adb
mov eax, dword [esp + 0x30]
push eax
call fcn.00409650
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040965b
add esp, 0x48
ret
cmp dword [esp + 0x28], esi
jb 0x406b0e
mov eax, dword [esp + 0x14]
push eax
call fcn.00409650
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
cmp dword [esp + 0x44], esi
jb 0x406b38
mov edx, dword [esp + 0x30]
push edx
call fcn.00409650
add esp, 4
xor al, al
jmp 0x406add
Function at 0x407210
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x70], 0
jne 0x407225
xor al, al
pop esi
add esp, 0x20
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi + 0x70]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
push 0x41
add eax, dword [esp + 0x24]
push 0
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x70]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x70]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
pop esi
add esp, 0x20
ret 4

Function at 0x407a00
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x407a3e
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x407a50
push 0
push 0
mov byte [esi + 0x84], 0
call fcn.00409776
add esp, 0x18
mov dword [esi + 0x80], eax
test eax, eax
je 0x407a3e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret 4
Function at 0x408140
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
jmp 0x408160
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x58]
test edi, edi
je 0x40816e
cmp edi, eax
je 0x408173
call fcn.00409c50
cmp dword [esp + 0xc], esi
je 0x40829f
test edi, edi
jne 0x408294
call fcn.00409c50
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x40819a
call fcn.00409c50
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x4081b6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
lea esi, [edi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x4081f7
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4081e6
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x40820c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x40824a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408239
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x408258
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00408410
push edi
call fcn.00409650
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x40829b
call fcn.00409c50
xor eax, eax
mov esi, dword [esp + 0xc]
cmp esi, dword [eax + 0x14]
jne 0x408285
call fcn.00409c50
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], edx
jmp 0x408160
mov eax, dword [edi]
jmp 0x40818c
mov eax, dword [eax]
jmp 0x408277
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ecx + 4], ecx
xor ecx, ecx
mov dword [ebx + 0x70], ecx
cmp eax, dword [ebx + 0x6c]
je 0x4082d5
mov esi, dword [eax]
push eax
call fcn.00409650
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x6c]
jne 0x4082b6
mov dword [ebx + 0x50], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408410
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x416f9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x41e280]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CThreadHolder.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x408481
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408470
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
cmp dword [esi + 0x14], 0
jne 0x408492
push esi
call fcn.00408560
call fcn.004085e0
mov eax, dword [esi + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x41f39c
je 0x4084bd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4084bd
mov eax, dword [esi + 0x18]
sub eax, 0xc
push eax
call fcn.0040966a
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4090f0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40915c
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x40965b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e280]
jne 0x409665
repz ret
jmp fcn.0040bc98

Function at 0x41191e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040be10
and dword [ebp - 4], 0
cmp dword [0x420468], 0
mov ebx, eax
jne 0x4119cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411a80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x411a80
push eax
call fcn.0040bd9e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420468], eax
call esi
push eax
call fcn.0040bd9e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42046c], eax
call esi
push eax
call fcn.0040bd9e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x420470], eax
call esi
push eax
call fcn.0040bd9e
pop ecx
mov dword [0x420478], eax
test eax, eax
je 0x4119cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040bd9e
pop ecx
mov dword [0x420474], eax
mov eax, dword [0x420474]
cmp eax, ebx
je 0x411a27
cmp dword [0x420478], ebx
je 0x411a27
push eax
call fcn.0040be19
push dword [0x420478]
mov esi, eax
call fcn.0040be19
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411a27
test edi, edi
je 0x411a27
call esi
test eax, eax
je 0x411a1e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411a1e
test byte [ebp - 0xc], 1
jne 0x411a27
or dword [ebp + 0x10], 0x200000
jmp 0x411a60
mov eax, dword [0x42046c]
cmp eax, ebx
je 0x411a60
push eax
call fcn.0040be19
pop ecx
test eax, eax
je 0x411a60
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411a60
mov eax, dword [0x420470]
cmp eax, ebx
je 0x411a60
push eax
call fcn.0040be19
pop ecx
test eax, eax
je 0x411a60
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420468]
call fcn.0040be19
pop ecx
test eax, eax
je 0x411a80
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411a82
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
and eax, 0xffff
push str.FILE_DATA
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401024
pop edi
pop esi
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401040
pop edi
pop esi
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x401051
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esp + 0x14]
push 0x407030
push ecx
call fcn.00401576
mov esi, eax
add esp, 8
test esi, esi
je 0x40107c
push esi
push ebx
push 1
push edi
call fcn.0040144c
push esi
call fcn.004013f6
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x402d99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4071e8
cmp edx, dword [eax]
je 0x402dbb
add eax, 8
inc ecx
cmp eax, 0x407278
jl 0x402dac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4071e8]
jne 0x402ee9
mov eax, dword [0x4099a0]
cmp eax, 1
je 0x402ec3
test eax, eax
jne 0x402dec
cmp dword [0x407138], 1
je 0x402ec3
cmp edx, 0xfc
je 0x402ee9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402e23
lea eax, [ebp - 0x1a4]
push 0x4063fc
push eax
call fcn.00404930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404a20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402e66
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404a20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4063f8
push edi
call fcn.00404f10
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4063dc
push eax
call fcn.00404930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404940
lea eax, [ebp - 0xa0]
push 0x4063d8
push eax
call fcn.00404940
push dword [esi + 0x4071ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404940
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4063b0
push eax
call fcn.00404e7f
add esp, 0x2c
pop edi
jmp 0x402ee9
lea eax, [ebp + 8]
lea esi, [esi + 0x4071ec]
push 0
push eax
push dword [esi]
call fcn.00404a20
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 0x412020
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
mov edi, dword [ecx + 0xc]
push 0x10
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x412067
push 0xd
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x412067
push 0x20
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x412067
push 0x11
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
je 0x41206a
push 1
pop edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x4138ff
Capabilities:
Delete file

Disassembly:
mov eax, 0x45f058
call fcn.0045e9d0
mov eax, 0x1214
call fcn.0045e9a0
and byte [ebp - 0x1220], 0
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x121f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x220], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x21f]
push 0xfff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1220]
mov esi, 0x103
push eax
lea eax, [ebp - 0x220]
push esi
push eax
push dword [ebp + 0xc]
and dword [ebp - 0x14], 0
push 0
push dword [ebp + 8]
call fcn.0043ab43
add esp, 0x1c
test al, al
je 0x413a69
push ebx
mov ebx, 0x40a168
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x1220]
push ecx
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x413a38
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x1220]
mov dword [ebp - 0x18], eax
mov eax, dword [0x40a0f8]
mov dword [ebp - 0x10], eax
and byte [ebp - 0x11c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40a190
lea eax, [ebp - 0x11c]
push esi
push eax
push dword [0x536190]
call fcn.00426857
add esp, 0x10
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x10]
push eax
call fcn.00414a38
xor eax, eax
cmp dword [ebp - 0x18], eax
je 0x413a17
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.00414a85
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00412266
inc dword [ebp - 0x14]
lea eax, [ebp - 0x1220]
push 0xfff
push eax
lea eax, [ebp - 0x220]
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0043ab43
add esp, 0x1c
test al, al
jne 0x413980
pop ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043b0f3
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
movzx eax, al
mov dword fs:[0], ecx
leave
ret
Function at 0x413a87
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x45f06c
call fcn.0045e9d0
sub esp, 0x904
push ebx
push esi
mov esi, 0x460a68
mov eax, esi
test eax, eax
je 0x413aab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x4613a0
push esi
push eax
mov ecx, ebx
call fcn.00414983
cmp dword [ebp + 8], 0
je 0x413ca1
cmp dword [ebp + 0xc], 0
je 0x413ca1
and byte [ebp - 0x910], 0
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x90f]
push 0x7ff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x910]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ac17
mov esi, 0x40a168
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x910]
push ecx
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x20
test eax, eax
jne 0x413c37
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x40a0f8]
not ecx
dec ecx
mov dword [ebp + 0xc], eax
lea esi, [ebp + ecx - 0x910]
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40a190
lea eax, [ebp - 0x110]
push 0x103
push eax
push dword [0x536190]
call fcn.00426857
add esp, 0x10
lea eax, [ebp - 0x110]
lea ecx, [ebp + 0xc]
push eax
call fcn.00414a38
test esi, esi
jne 0x413b96
xor eax, eax
jmp 0x413b9d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00414a85
push 0
push dword [ebp + 0xc]
call fcn.0042692e
pop ecx
test eax, eax
pop ecx
je 0x413c29
push 0x40a240
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
mov dword [ebp + 8], edi
je 0x413c29
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp + 8]
mov esi, eax
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fread]
and byte [esi + edi], 0
add esp, 0x30
mov ecx, ebx
push esi
call fcn.00414a38
push esi
call dword [sym.imp.MSVCRT.dll_free]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00412266
jmp 0x413c45
lea eax, [ebp - 0x910]
mov ecx, ebx
push eax
call fcn.00414a38
mov eax, dword [0x4613a0]
mov eax, dword [eax - 8]
lea edi, [eax + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
test esi, esi
pop edi
je 0x413ca1
push dword [0x4613a0]
push esi
call fcn.00434310
push 1
push 9
push 0x40a19c
push eax
push esi
push esi
call fcn.0045d4c0
add esp, 0x20
mov ecx, ebx
push esi
call fcn.00414a38
push esi
call fcn.0045e98b
pop ecx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413cb2
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x414249
push dword [esp + 0xc]
push 0x12d
push dword [0x536190]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret