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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4e5fe8], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jne 0x4039d7
push 0x402de0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [str._qyp]
mov edi, dword [0x4336dc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], 0x9e3779b9
call fcn.00403996
mov eax, dword [0x4336e0]
add dword [ebp - 8], 0x23f
mov ebx, dword [0x4336e4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x4e5fe8], 0xc
mov dword [ebp - 4], ecx
jne 0x403a7b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc44]
push eax
push esi
push 0x402df4
push 0x402e0c
push 0x402e40
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add dword [ebp - 4], ecx
mov ecx, dword [0x4e5fe8]
cmp ecx, 0xfa9
jne 0x403a99
mov dword [0x4e5584], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403aa7
mov dword [0x4e4f34], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x4e5580], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4e5fe8], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403ae2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x64
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x10], 0x64
cmp dword [0x4e5fe8], 0xc
jne 0x403b1f
push esi
lea eax, [ebp - 0x444]
push eax
push 0x402e50
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402ea8
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x403a13
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403b6d
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4e5fe8]
mov ecx, dword [0x4e4f38]
sub esp, 0x834
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403c64
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4e5fe8], 0x959
jne 0x403c52
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402ef0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402f3c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402f54
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push 0x402f98
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
call fcn.0040399d
add ebx, 8
dec dword [ebp - 4]
jne 0x403b96
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f7e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push ebx
push esi
push edi
xor esi, esi
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0x403238
call dword [sym.imp.KERNEL32.dll__lopen]
cmp ebx, edi
jle 0x403fb6
cmp dword [esp + 0x10], 0x785074d5
jne 0x403fbf
inc ebx
cmp ebx, 0x1c1b
jl 0x403f96
mov ebx, 0x5d744c
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatW]
dec ebx
jne 0x403fc4
cmp dword [0x4e5fe8], 0x400
jne 0x404032
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push esi
push esi
call fcn.00405104
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403931
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403954
fstp st(0)
push esi
call fcn.00405703
pop ecx
push esi
call fcn.00405553
pop ecx
push esi
push esi
call fcn.00404ff8
pop ecx
pop ecx
mov eax, dword [0x435dd4]
mov dword [0x4e5fe8], eax
mov eax, dword [0x435da8]
mov dword [0x4e5fec], eax
call fcn.00403d38
xor ebx, ebx
push 0x403290
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x404066
cmp dword [esp + 0x10], 0x785074d5
jne 0x40406f
inc ebx
cmp ebx, 0x11915
jl 0x40404d
mov edi, SearchPathW
cmp dword [0x4e5fe8], 0x51f
jne 0x4040a0
push 0x403298
push esi
lea eax, [esp + 0x20]
push eax
push 0x4032e8
push 0x4032c4
push 0x4033c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
dec edi
jne 0x404074
mov eax, dword [0x4e4f38]
mov dword [0x4e557c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405e0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4327fc]
jne 0x405e15
repz ret
jmp fcn.0040b0ac
Function at 0x40f4e2
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.00408b9c
and dword [ebp - 4], 0
cmp dword [0x436b5c], 0
mov ebx, eax
jne 0x40f593
push 0x402d4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f644
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d40
push edi
call esi
test eax, eax
je 0x40f644
push eax
call fcn.00408b2a
mov dword [esp], 0x402d30
push edi
mov dword [0x436b5c], eax
call esi
push eax
call fcn.00408b2a
mov dword [esp], 0x402d1c
push edi
mov dword [0x436b60], eax
call esi
push eax
call fcn.00408b2a
mov dword [esp], 0x402d00
push edi
mov dword [0x436b64], eax
call esi
push eax
call fcn.00408b2a
pop ecx
mov dword [0x436b6c], eax
test eax, eax
je 0x40f593
push 0x402ce8
push edi
call esi
push eax
call fcn.00408b2a
pop ecx
mov dword [0x436b68], eax
mov eax, dword [0x436b68]
cmp eax, ebx
je 0x40f5eb
cmp dword [0x436b6c], ebx
je 0x40f5eb
push eax
call fcn.00408ba5
push dword [0x436b6c]
mov esi, eax
call fcn.00408ba5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f5eb
test edi, edi
je 0x40f5eb
call esi
test eax, eax
je 0x40f5e2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f5e2
test byte [ebp - 0xc], 1
jne 0x40f5eb
or dword [ebp + 0x10], 0x200000
jmp 0x40f624
mov eax, dword [0x436b60]
cmp eax, ebx
je 0x40f624
push eax
call fcn.00408ba5
pop ecx
test eax, eax
je 0x40f624
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f624
mov eax, dword [0x436b64]
cmp eax, ebx
je 0x40f624
push eax
call fcn.00408ba5
pop ecx
test eax, eax
je 0x40f624
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436b5c]
call fcn.00408ba5
pop ecx
test eax, eax
je 0x40f644
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f646
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001150
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
mov dword [esp + 0x18], 0x128
call dword [0x100030e0]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100011be
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x100011ba
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000118b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x10001390
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esp + 8]
push esi
sub eax, 0
je 0x100013d4
dec eax
jne 0x1000142e
mov eax, dword [0x1000317c]
test eax, eax
jne 0x1000142e
push 0x10003184
push 0
push 0
push 0x10001440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10003180], eax
mov eax, 1
pop esi
ret 0xc
mov eax, dword [0x1000317c]
test eax, eax
je 0x100013ec
push eax
mov eax, dword [0x10003178]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [0x10003188]
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test eax, eax
je 0x10001402
push eax
call esi
test eax, eax
je 0x1000142e
mov eax, dword [0x1000318c]
test eax, eax
je 0x10001412
push eax
call esi
test eax, eax
je 0x1000142e
mov ecx, dword [0x10003180]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x10003180]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 0xc
Function at 0x401279
Capabilities:
Capture microphone audio
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
je 0x4012c9
lea eax, [ebp - 4]
xor esi, esi
push eax
push 4
push edi
push 0x4013d6
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x20000
push esi
push dword [ebp - 4]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x46]
lea ebx, [edi + 0x18]
push eax
push 0xffff
push ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x4012cd
xor al, al
jmp 0x401341
lea esi, [edi + 0x30]
mov dword [ebp - 8], 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi]
and dword [eax + 0x10], 0
mov eax, dword [esi]
and dword [eax + 0x14], 0
push dword [esi]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add esi, 4
dec dword [ebp - 8]
jne 0x4012d7
mov eax, dword [edi + 0x1c]
push 0x20
push dword [edi + eax*4 + 0x30]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
push str.ResumeThread
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [edi + 0x2c]
call eax
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInStart]
mov byte [edi + 0x44], 1
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403589
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call fcn.0047ccf0
mov esi, eax
inc esi
push esi
call fcn.0047d400
push esi
mov edi, eax
push dword [ebp + 8]
push edi
call fcn.0047c5c0
add esp, 0x14
xor eax, eax
test esi, esi
jle 0x4035c6
mov cl, byte [eax + edi]
xor cl, 0x19
sub cl, 0x7a
mov byte [eax + edi], cl
inc eax
cmp eax, esi
jl 0x4035b5
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.004034bd
push edi
call fcn.0047d53a
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
leave
ret

Function at 0x404cb1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00404b95
xor edx, edx
test eax, eax
jle 0x404ce2
mov ecx, dword [ebp - 4]
add byte [ecx + edx], 0x7a
add ecx, edx
mov ecx, dword [ebp - 4]
xor byte [ecx + edx], 0x19
add ecx, edx
inc edx
cmp edx, eax
jl 0x404ccb
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x40d76c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x40d784
mov eax, 0x80
jmp 0x40d786
or al, 0x80
push 0x4010
lea ecx, [ebp - 0x160]
push 0x160
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
leave
ret
Function at 0x40f777
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x4af7c0
call fcn.0047cccc
sub esp, 0x354
push ebx
push edi
push 0x104
lea eax, [ebp - 0x25c]
push 0
mov dword [ebp - 0x18], ecx
push eax
call fcn.0047c560
mov ebx, dword [ebp + 8]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0x5c
mov dword [ebp + 8], 0x4d7ac8
jne 0x40f7c1
mov dword [ebp + 8], 0x4df600
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x25c]
push ebx
push str._s_s.
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x40f7ff
xor al, al
jmp 0x40f8a6
push esi
mov esi, str._s_s_s
cmp byte [ebp - 0x12c], 0x2e
je 0x40f882
test byte [ebp - 0x158], 0x10
je 0x40f840
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x360]
push dword [ebp + 8]
push ebx
push esi
push eax
call edi
mov ecx, dword [ebp - 0x18]
add esp, 0x14
lea eax, [ebp - 0x360]
push eax
call fcn.0040f777
jmp 0x40f882
mov eax, dword [0x4d95e4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x12c]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push ebx
push esi
push eax
call fcn.00490e97
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0xa4]
call fcn.00411cb4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00497eb4
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f805
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40fc1c
Capabilities:
Get file size

Disassembly:
mov eax, 0x4af850
call fcn.0047cccc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
jne 0x40fc3e
xor eax, eax
jmp 0x40fe30
lea eax, [esi + 0x244]
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.00497c29
push ebx
push ebx
push 0x1042
mov dword [ebp - 4], ebx
push dword [esi + 0x780]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
mov edi, 0x4d7ac8
je 0x40fcc8
lea ecx, [esi + 0x764]
push eax
call fcn.0049233a
cmp eax, 1
jne 0x40fcc8
push ebx
lea eax, [ebp - 0x1c]
push dword [ebp - 0x18]
lea ecx, [esi + 0x764]
push eax
call fcn.00492295
push edi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.00498149
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004982cc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00497eb4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00497eb4
mov ecx, dword [esi + 0x6c]
lea eax, [esi + 0x6c]
cmp dword [ecx - 8], ebx
je 0x40fcf6
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00498149
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004982cc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00497eb4
mov eax, dword [esi + 0xa8]
lea edi, [esi + 0x70]
add eax, 8
mov ecx, edi
push eax
call fcn.00497fed
push edi
lea ecx, [ebp - 0x10]
call fcn.00497c29
push dword [ebp - 0x14]
mov eax, dword [esi + 0x668]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
call fcn.00490802
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x64]
push eax
call fcn.00497fed
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebx
mov ecx, edi
call fcn.004982e4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fd62
xor esi, esi
jmp 0x40fe16
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x78], eax
push edi
mov dword [ebp - 0x24], eax
mov dword [esi + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
add eax, 0xa
push eax
push 0x40
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 0x18]
mov edi, eax
push ebx
push edi
call fcn.0047c560
lea eax, [ebp - 0x20]
push 4
push eax
lea eax, [edi + 1]
push eax
mov byte [edi], 4
call fcn.0047c5c0
lea eax, [ebp - 0x24]
push 4
push eax
lea eax, [edi + 5]
push eax
call fcn.0047c5c0
mov eax, dword [ebp - 0x10]
add esp, 0x24
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 8]
inc eax
push eax
push ebx
call fcn.004982e4
push eax
lea eax, [edi + 9]
push eax
call fcn.0047c5c0
add esp, 0xc
mov ecx, dword [esi + 0x658]
push dword [ebp - 0x18]
push edi
push dword [esi + 0x654]
call fcn.00416984
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0xa4]
push eax
call fcn.00411c40
lea ecx, [ebp - 0x1c]
call fcn.00497eb4
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00497eb4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00497eb4
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4102ff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
push 9
mov ecx, dword [esi + 0x654]
add ecx, 0x24
call fcn.00403451
mov ecx, dword [esi + 0x654]
push 1
add ecx, 0x24
mov dword [ebp - 0x18], eax
call fcn.00403451
mov edi, dword [eax + 4]
mov edx, dword [eax]
xor ecx, ecx
xor ebx, ebx
or ecx, edi
or edx, ebx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edx
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x654]
mov eax, dword [eax + 4]
add ecx, 0x24
mov dword [ebp - 8], eax
call fcn.00403300
push ebx
push 0x80
push 3
push ebx
push 2
mov edi, eax
push 0x40000000
lea ecx, [esi + 0x60]
push ebx
sub edi, 9
call fcn.004982e4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [ebp - 0x14]
push ebx
push ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
push ebx
push eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jg 0x4103b8
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xf
jl 0x410399
cmp dword [ebp - 4], 0xf
jne 0x4103ee
cmp eax, ebx
jg 0x4103ee
lea eax, [esi + 0x60]
push 0x4d7be8
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00498149
push 0x30
push 0x4d7b9c
push dword [eax]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x18]
call fcn.00497eb4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, esi
add dword [esi + 0x80], eax
adc dword [esi + 0x84], ebx
call fcn.0041061c
cmp byte [esi + 0x5c], bl
je 0x41041b
mov ecx, esi
call fcn.004105fb
jmp 0x41045d
mov eax, dword [ebp - 0x10]
push 4
add dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x23]
push eax
mov byte [ebp - 0x24], 7
call fcn.0047c5c0
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp - 0x1f]
push eax
call fcn.0047c5c0
mov ecx, dword [esi + 0x658]
add esp, 0x18
lea eax, [ebp - 0x24]
push 9
push eax
push dword [esi + 0x654]
call fcn.00416984
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4106f1
Capabilities:
Delete file

Disassembly:
mov eax, 0x4af8e4
call fcn.0047cccc
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi + 0x8fc], 1
mov eax, dword [0x4d95e4]
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1032
mov dword [ebp - 4], ebx
push dword [esi + 0x840]
call edi
cmp eax, 1
push ebx
push ebx
jbe 0x410754
push 0x1032
push dword [esi + 0x840]
call edi
push eax
lea eax, [ebp - 0x10]
push 0x4d7cac
push eax
call fcn.00490e97
add esp, 0xc
jmp 0x4107bc
push 0x1042
push dword [esi + 0x840]
call edi
push ebx
push eax
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x824]
push eax
call fcn.00492295
push ebx
push ebx
push 0x1042
mov byte [ebp - 4], 1
push dword [esi + 0x840]
call edi
push eax
lea ecx, [esi + 0x824]
call fcn.0049233a
push dword [ebp - 0x14]
cmp eax, 1
jne 0x4107a0
push 0x4d7c80
jmp 0x4107a5
push 0x4d7c68
lea eax, [ebp - 0x10]
push eax
call fcn.00490e97
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00497eb4
push 0x24
push 0x4d7c5c
push dword [ebp - 0x10]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x41088d
push ebx
mov ecx, esi
call fcn.0040f8b6
lea edi, [esi + 0x824]
mov ecx, edi
call fcn.0040c5bf
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x41086d
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040c5d3
push ebx
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00492295
push eax
lea eax, [esi + 0x668]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.004980e3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00497eb4
push dword [ebp - 0x20]
mov ecx, edi
call fcn.0049233a
test eax, eax
je 0x410854
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004982b7
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00410c74
jmp 0x41085d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00497eb4
cmp dword [ebp - 0x18], ebx
jne 0x4107f4
push 1
mov ecx, esi
call fcn.0040f8b6
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x4d7ac4
call fcn.00497f22
mov ecx, esi
call fcn.0040df98
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00497eb4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret