joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c508f99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push esi
push eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x5c508fc6
mov eax, 0x8876035c
jmp 0x5c50908c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp - 4]
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x5c50907f
test eax, eax
je 0x5c50907f
push 0x1c
pop edx
lea ecx, [ebp - 4]
call fcn.5c5071c0
mov edi, dword [ebp - 4]
test edi, edi
je 0x5c509025
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
and dword [edi + 0x14], 0
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
add eax, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
mov dword [edi], 0x5c501200
mov dword [edi + 0x18], ebx
jmp 0x5c509027
xor edi, edi
test edi, edi
jne 0x5c509034
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x5c509074
push 0x1c
pop edx
lea ecx, [ebp - 0xc]
call fcn.5c5071c0
mov eax, dword [ebp - 0xc]
xor edx, edx
inc edx
test eax, eax
je 0x5c509058
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], edi
mov dword [eax + 4], edx
jmp 0x5c50905a
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x5c50907b
mov eax, dword [edi]
push edx
mov esi, dword [eax]
mov ecx, esi
call dword [0x5c511118]
mov ecx, edi
call esi
mov eax, 0x88760356
jmp 0x5c50908b
xor eax, eax
jmp 0x5c50908b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 0x8876035c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c509090
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], edx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5c5090c4
mov eax, 0x88760359
jmp 0x5c5091c4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x5c5091b8
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x5c5091b8
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x5c50910a
mov edi, 0x88760361
jmp 0x5c509157
push 0x24
pop edx
lea ecx, [ebp - 8]
call fcn.5c5071c0
mov edi, dword [ebp - 8]
test edi, edi
je 0x5c509145
mov eax, dword [ebp - 0xc]
and dword [edi + 0x14], 0
mov dword [edi + 8], eax
add eax, ebx
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi], 0x5c5011dc
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ebx
jmp 0x5c509147
xor edi, edi
test edi, edi
jne 0x5c50916b
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, 0x88760356
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x5c5091c4
push 0x1c
pop edx
lea ecx, [ebp - 0xc]
call fcn.5c5071c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5c509190
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], edi
mov dword [eax + 4], 1
jmp 0x5c509192
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x5c5091b4
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x5c511118]
mov ecx, edi
call esi
mov eax, 0x88760356
jmp 0x5c5091c4
xor eax, eax
jmp 0x5c5091c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760361
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c509872
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x5c5024ec
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x5c5099a8
push 0x5c5024f8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x5c5099a8
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
test ebx, ebx
jne 0x5c5098c8
mov eax, 0x88760356
jmp 0x5c5099ad
push 0x1c
pop edx
lea ecx, [ebp - 4]
call fcn.5c5071c0
mov esi, dword [ebp - 4]
test esi, esi
je 0x5c5098fe
push dword [ebp - 8]
lea ecx, [esi + 4]
mov dword [esi], edi
call fcn.5c508cca
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 1
jmp 0x5c509902
xor ecx, ecx
mov esi, ecx
test esi, esi
jne 0x5c50990f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5c5098be
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push 0x5c509800
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x5c50992f
mov edi, 0x88760356
jmp 0x5c509956
push 0xffffffffffffffff
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], edi
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x5c509961
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x8876035b
mov ecx, esi
call fcn.5c5053ff
mov eax, edi
jmp 0x5c5099ad
push 0x14
pop edx
lea ecx, [ebp - 8]
call fcn.5c5071c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x5c50998b
mov dword [eax], 0x5c5011b8
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
lock inc dword [esi + 0x18]
jmp 0x5c50998d
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov ecx, esi
mov dword [ebx], eax
call fcn.5c5053ff
cmp dword [ebx], 0
jne 0x5c5099a4
push edi
jmp 0x5c509907
xor eax, eax
jmp 0x5c5099ad
mov eax, 0x8876036c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c509d25
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.5c50a651
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x5c509d54
mov ecx, dword [edi + 0xc]
call fcn.5c507219
mov ecx, edi
call fcn.5c507219
mov edi, dword [esi + 0x14]
test edi, edi
je 0x5c509d6a
mov ecx, dword [edi + 0xc]
call fcn.5c507219
mov ecx, edi
call fcn.5c507219
mov edi, dword [esi + 0x18]
xor ebx, ebx
test edi, edi
je 0x5c509dae
cmp dword [edi], ebx
jbe 0x5c509d9b
mov eax, dword [edi + 0xc]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + ebx*4]
call fcn.5c507219
mov edi, dword [esi + 0x18]
inc ebx
cmp ebx, dword [edi]
jb 0x5c509d77
xor ebx, ebx
test edi, edi
je 0x5c509dae
mov ecx, dword [edi + 0xc]
call fcn.5c507219
mov ecx, edi
call fcn.5c507219
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x5c509dc4
mov ecx, dword [edi + 0xc]
call fcn.5c507219
mov ecx, edi
call fcn.5c507219
cmp dword [esi + 0xc], 1
jne 0x5c509dd1
mov ecx, dword [esi]
call fcn.5c50bba1
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x5c509e0f
mov edi, 0x5c502508
mov edx, ebx
movzx eax, byte [ecx + edx]
cmp al, byte [edi + edx]
jne 0x5c509df0
inc edx
cmp edx, 2
jne 0x5c509ddf
jmp 0x5c509df5
sbb ebx, ebx
or ebx, 1
test ebx, ebx
je 0x5c509e07
push ecx
push 4
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [esi]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x5c509e1d
call fcn.5c507219
leave
ret

Function at 0x5c509e1f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, edx
mov eax, ecx
mov dword [ebp - 4], eax
cmp edi, 3
jbe 0x5c509e3d
mov eax, 0x88760353
jmp 0x5c509ecf
push ebx
push esi
xor esi, esi
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5c509ebf
push 0x28
pop edx
lea ecx, [ebp - 8]
call fcn.5c5071c0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5c509e8a
mov eax, edi
and edi, 1
shr eax, 1
and eax, 1
push eax
push edi
mov edi, dword [ebp - 4]
push ebx
push edi
call fcn.5c509cb0
mov esi, eax
jmp 0x5c509e8d
mov edi, dword [ebp - 4]
test esi, esi
jne 0x5c509e9f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760356
jmp 0x5c509ecd
mov ecx, esi
call fcn.5c509fd8
test eax, eax
je 0x5c509ec6
mov ecx, esi
call fcn.5c509d25
mov ecx, esi
call fcn.5c507219
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x88760361
jmp 0x5c509ecd
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x5c50a523
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5c50d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x110], eax
xor edi, edi
lea eax, [ebp - 0x108]
mov ebx, ecx
push eax
push edi
push 0x5c5025b0
push 0x5c5025b4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5c50a56d
mov eax, 0x88760357
jmp 0x5c50a61d
push esi
push edi
push 0x8000080
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5c50a59b
mov eax, 0x88760361
jmp 0x5c50a61c
cmp dword [ebx + 0x18], edi
jne 0x5c50a5d2
push 0x10
pop edx
lea ecx, [ebp - 0x10c]
call fcn.5c5071c0
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x5c50a5c9
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], 0xa
mov dword [eax + 0xc], edi
jmp 0x5c50a5cb
mov eax, edi
mov dword [ebx + 0x18], eax
test eax, eax
je 0x5c50a603
lea ecx, [ebp - 0x108]
call fcn.5c508ceb
mov edi, eax
mov dword [ebp - 0x10c], edi
test edi, edi
je 0x5c50a603
mov ecx, dword [ebx + 0x18]
lea eax, [ebp - 0x10c]
push eax
call fcn.5c506619
test eax, eax
jns 0x5c50a62d
mov ecx, edi
call fcn.5c507219
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x88760356
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.5c50c450
leave
ret 8
push 0
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x110]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x5c50a61c
Function at 0x5c50a651
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5c50d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5c50a81c
xor ebx, ebx
cmp dword [eax], ebx
je 0x5c50a81c
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5c50a81c
cmp dword [eax], ebx
je 0x5c50a81c
mov eax, dword [esi + 8]
sub eax, ebx
je 0x5c50a6b6
sub eax, 1
jne 0x5c50a6bd
push dword [esi + 0x20]
call fcn.5c509ed2
push 0x5c5025b8
push esi
call fcn.5c50abc3
pop ecx
pop ecx
jmp 0x5c50a6bd
push 0x37
call fcn.5c50ac5e
push 1
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
mov dword [ebp - 0x94], edi
cmp edi, 0xffffffff
je 0x5c50a82d
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x98], ebx
cmp dword [ecx], ebx
jbe 0x5c50a81c
mov eax, dword [esi + 0x1c]
mov ecx, ebx
push 0
push 0
mov eax, dword [eax + 0xc]
push dword [eax + ecx*4]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5c50a82d
push edi
mov ecx, esi
call fcn.5c50acab
push 0
mov ecx, esi
call fcn.5c50acab
push 0
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5c50a82d
mov eax, dword [esi + 0x18]
mov ecx, ebx
shl ecx, 2
mov eax, dword [eax + 0xc]
add eax, ecx
xor ecx, ecx
push ecx
push 0x8000080
push 3
push ecx
push ecx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x90], eax
cmp eax, 0xffffffff
je 0x5c50a82d
and dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x88]
push 0
push ecx
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c50a7f2
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
cmp dword [ebp - 0x88], 0
je 0x5c50a7e0
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
push dword [ebp - 0x88]
call fcn.5c50ac3c
add edi, dword [ebp - 0x88]
lea eax, [ebp - 0x88]
push 0
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5c50a79d
mov ebx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0x94]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, dword [ebp - 0x8c]
inc ebx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
cmp ebx, dword [eax]
jb 0x5c50a6ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50c450
leave
ret
mov eax, 0x88760361
jmp 0x5c50a81e
Function at 0x5c50abc3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5c50d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__vscprintf]
inc eax
pop ecx
pop ecx
cmp eax, 0x400
jle 0x5c50abf7
xor eax, eax
jmp 0x5c50ac2f
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll_vsprintf_s]
add esp, 0x10
lea ecx, [ebp - 0x408]
push 0
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.5c50c450
leave
ret

Function at 0x5c50ac5e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx eax, bl
mov esi, ecx
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
sar ebx, 8
push eax
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
pop eax
pop esi
pop ebx
leave
ret 4
Function at 0x5c50ba1f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5c50d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push ebx
mov byte [ebp - 0x24], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c50bb80
cmp dword [ebp - 0x18], 0x10
je 0x5c50ba7b
push 0xe
pop eax
jmp 0x5c50bb85
mov ax, word [0x5c502618]
mov word [ebp - 0xb], ax
mov al, byte [0x5c50261a]
push 0
mov byte [ebp - 9], al
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50bb80
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50bb80
push 0
lea eax, [ebp - 0x18]
push eax
push 0x8000
push dword [ebp - 0x2c]
jmp 0x5c50bb71
cmp dword [ebp - 0x18], 0
je 0x5c50bb9d
mov edx, dword [esi + 0xc]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push ecx
push dword [esi + 0x10]
mov ecx, dword [esi]
push dword [ebp - 0x18]
call fcn.5c502942
add esp, 0x24
test eax, eax
jne 0x5c50bb96
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50bb80
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50bb80
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50bb80
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jne 0x5c50bb96
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov edx, 0x8000
mov byte [ebp - 0x24], 1
push ecx
add eax, edx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5c50bad6
mov eax, 0x88760361
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50c450
leave
ret 8
mov eax, 0x88760356
jmp 0x5c50bb85
xor eax, eax
jmp 0x5c50bb85
Function at 0x5c50bba1
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5c50d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
xor esi, esi
push eax
push esi
push 0x5c50261c
push 0x5c5025b4
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5c50bbe2
mov eax, 0x88760357
jmp 0x5c50bce6
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5c50bc10
mov eax, 0x88760361
jmp 0x5c50bce5
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x10c], esi
cmp esi, 0xffffffff
jne 0x5c50bc37
mov esi, 0x88760361
jmp 0x5c50bcab
xor eax, eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
call fcn.5c50b94f
test eax, eax
jne 0x5c50bc85
mov esi, 0x88760356
jmp 0x5c50bc94
push edi
push esi
lea ecx, [ebp - 0x130]
call fcn.5c50ba1f
mov esi, eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x130]
call fcn.5c50b8de
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x5c50bcc5
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x5c50bce3
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x5c50bce3
mov esi, 0x88760361
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50c450
leave
ret

Function at 0x5c50c670
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x5c50c6ae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x5c50c6a6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x5c50c6b0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x5c50c696
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5c50c780
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x5c50c7b1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5c50c7b1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x5c50c7b1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a0b0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x40a0d1
jl 0x40a0c7
test esi, esi
jne 0x40a0d1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x40a184
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.00405c40
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x40a141
jg 0x40a109
test esi, esi
je 0x40a141
cmp ebp, eax
jg 0x40a119
jl 0x40a113
cmp edi, esi
jae 0x40a119
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0040f6a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x40a160
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40a170
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x40a0f0
jl 0x40a170
test edi, edi
jne 0x40a0f0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x40a1c9
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x40a1d0
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0040f6a0
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x40a1d0
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x40a239
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40a1fa
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x40a224
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.00414bbb
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40a239
cmp edi, eax
ja 0x40a202
test edi, edi
je 0x40a239
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.00414bbb
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x40ee1d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ee5c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ee5c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ee5c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ee5c
cmp dword [ecx + 0x74], 0xe
jbe 0x40ee5c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41cdfd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43068c
push 0x430684
push str.FlsAlloc
push 0x1e
call fcn.0041cc2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ce31
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c180]
call esi
jmp 0x41ce37
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ce7b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43069c
push 0x430694
push str.FlsGetValue
push 0x20
call fcn.0041cc2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ceb2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]