joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cda1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43cdcf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43cded
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043cd0b
jmp 0x43cded
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43cded
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043cd0b
test edi, edi
mov eax, edi
jne 0x43cdd7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x566af4]
test ecx, ecx
je 0x43cea0
jmp 0x43cda0
ret 8

Function at 0x818058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81806a
add dl, dl
jne 0x818089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8180dc
xor eax, eax
add dl, dl
jne 0x818096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81817d
add dl, dl
jne 0x8180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x818075
mov eax, 1
add dl, dl
jne 0x8180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8180e1
sub eax, ebx
mov ebx, 1
jne 0x818128
mov ecx, 1
add dl, dl
jne 0x81810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x818119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818136
cmp eax, 0x7d00
jae 0x81816d
cmp eax, 0x500
jb 0x818168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
cmp eax, 0x7f
ja 0x818170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x818075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x1e6c4561
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x4b871076
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40114a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464008]
jne 0x401154
repz ret
jmp fcn.00402059

Function at 0x412a93
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.0040a6f2
and dword [ebp - 4], 0
cmp dword [0x466d78], 0
mov ebx, eax
jne 0x412b44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412bf5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x412bf5
push eax
call fcn.0040a680
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x466d78], eax
call esi
push eax
call fcn.0040a680
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x466d7c], eax
call esi
push eax
call fcn.0040a680
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x466d80], eax
call esi
push eax
call fcn.0040a680
pop ecx
mov dword [0x466d88], eax
test eax, eax
je 0x412b44
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a680
pop ecx
mov dword [0x466d84], eax
mov eax, dword [0x466d84]
cmp eax, ebx
je 0x412b9c
cmp dword [0x466d88], ebx
je 0x412b9c
push eax
call fcn.0040a6fb
push dword [0x466d88]
mov esi, eax
call fcn.0040a6fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412b9c
test edi, edi
je 0x412b9c
call esi
test eax, eax
je 0x412b93
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412b93
test byte [ebp - 0xc], 1
jne 0x412b9c
or dword [ebp + 0x10], 0x200000
jmp 0x412bd5
mov eax, dword [0x466d7c]
cmp eax, ebx
je 0x412bd5
push eax
call fcn.0040a6fb
pop ecx
test eax, eax
je 0x412bd5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412bd5
mov eax, dword [0x466d80]
cmp eax, ebx
je 0x412bd5
push eax
call fcn.0040a6fb
pop ecx
test eax, eax
je 0x412bd5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x466d78]
call fcn.0040a6fb
pop ecx
test eax, eax
je 0x412bf5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412bf7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x456be0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov dword [esp], 0x20
add dword [esp], 0x20
mov al, 0x65
mov byte [0x466e69], al
mov byte [0x466e6c], al
mov al, 0x6c
push 0x466e68
mov byte [0x466e68], 0x6b
mov byte [0x466e6a], 0x72
mov byte [0x466e6b], 0x6e
mov byte [0x466e6d], al
mov byte [0x466e6e], 0x33
mov byte [0x466e6f], 0x32
mov byte [0x466e70], 0x2e
mov byte [0x466e71], 0x64
mov byte [0x466e72], al
mov byte [0x466e73], al
mov byte [0x466e74], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x468650]
mov edx, dword [0x467368]
lea eax, [esp + 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
ret
Function at 0x456e80
Capabilities:
Clear file content
Create pipe

Disassembly:
mov eax, dword [0x468650]
sub esp, 0xc
push ebx
mov ebx, dword [0x467368]
push edi
mov edi, eax
cmp eax, 0x5dd
jne 0x456ea1
push 0
call dword [sym.imp.KERNEL32.dll_LocalHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00456d70
add esp, 4
cmp dword [0x468650], 0x2f
jne 0x456f18
xor eax, eax
xor edx, edx
mov word [esp + 0x12], ax
xor ecx, ecx
mov word [esp + 0xa], dx
lea eax, [esp + 8]
push eax
mov word [esp + 0xc], cx
mov ecx, dword [esp + 0xc]
push ecx
mov word [esp + 0x18], dx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.xamasu
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call fcn.00456de0
cmp dword [0x468650], 0x568
pop edi
pop ebx
jne 0x456f33
push 0
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
add esp, 0xc
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x5c5094b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5c50e0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push esi
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x5c5094eb
mov eax, 0x8876035c
jmp 0x5c5095b1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp - 8]
mov edi, eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x5c5095a4
test eax, eax
je 0x5c5095a4
push 0x1c
pop edx
lea ecx, [ebp - 8]
call fcn.5c507487
mov edi, dword [ebp - 8]
test edi, edi
je 0x5c50954a
mov eax, dword [ebp - 0x10]
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], 0x5c501208
mov dword [edi + 0x18], ebx
jmp 0x5c50954c
xor edi, edi
test edi, edi
jne 0x5c509559
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x5c509599
push 0x1c
pop edx
lea ecx, [ebp - 0xc]
call fcn.5c507487
mov eax, dword [ebp - 0xc]
xor edx, edx
inc edx
test eax, eax
je 0x5c50957d
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], edi
mov dword [eax + 4], edx
jmp 0x5c50957f
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
test eax, eax
jne 0x5c5095a0
mov eax, dword [edi]
push edx
mov esi, dword [eax]
mov ecx, esi
call dword [0x5c512118]
mov ecx, edi
call esi
mov eax, 0x88760356
jmp 0x5c5095b0
xor eax, eax
jmp 0x5c5095b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 0x8876035c
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50cb00
mov esp, ebp
pop ebp
ret
Function at 0x5c5095c1
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5c50e0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], 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 0x5c5095fe
mov eax, 0x88760359
jmp 0x5c5096fb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x5c50961f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760361
jmp 0x5c5096fb
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x5c50960e
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x5c50964e
mov edi, 0x88760361
jmp 0x5c50969b
push 0x24
pop edx
lea ecx, [ebp - 0x10]
call fcn.5c507487
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x5c509689
mov eax, dword [ebp - 8]
and dword [edi + 0x14], 0
mov dword [edi + 8], eax
add eax, ebx
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi], 0x5c5011e4
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ebx
jmp 0x5c50968b
xor edi, edi
test edi, edi
jne 0x5c5096af
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, 0x88760356
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x5c5096fa
push 0x1c
pop edx
lea ecx, [ebp - 8]
call fcn.5c507487
mov eax, dword [ebp - 8]
test eax, eax
je 0x5c5096d4
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], edi
mov dword [eax + 4], 1
jmp 0x5c5096d6
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
test eax, eax
jne 0x5c5096f8
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x5c512118]
mov ecx, edi
call esi
mov eax, 0x88760356
jmp 0x5c5096fa
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50cb00
mov esp, ebp
pop ebp
ret
Function at 0x5c509e29
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push 0x5c5024ec
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x5c509e50
mov eax, 0x8876036c
jmp 0x5c509f71
push edi
push 0x5c5024f8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x5c509e6d
mov eax, 0x8876036c
jmp 0x5c509f70
push ebx
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 0x5c509e8a
mov eax, 0x88760356
jmp 0x5c509f6f
push esi
push 0x1c
pop edx
lea ecx, [ebp - 4]
call fcn.5c507487
mov esi, dword [ebp - 4]
test esi, esi
je 0x5c509ec1
push dword [ebp - 8]
lea ecx, [esi + 4]
mov dword [esi], edi
call fcn.5c509178
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 0x5c509ec5
xor ecx, ecx
mov esi, ecx
test esi, esi
jne 0x5c509ecf
push ebx
jmp 0x5c509f5f
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push 0x5c509da0
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x5c509eef
mov edi, 0x88760356
jmp 0x5c509f16
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 0x5c509f21
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x8876035b
mov ecx, esi
call fcn.5c5054b6
mov eax, edi
jmp 0x5c509f6e
push 0x14
pop edx
lea ecx, [ebp - 8]
call fcn.5c507487
mov eax, dword [ebp - 8]
test eax, eax
je 0x5c509f4b
mov dword [eax], 0x5c5011c0
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 0x5c509f4d
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov ecx, esi
mov dword [ebx], eax
call fcn.5c5054b6
cmp dword [ebx], 0
jne 0x5c509f6c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760356
jmp 0x5c509f6e
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5c50a335
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.5c50ac69
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x5c50a364
mov ecx, dword [edi + 0xc]
call fcn.5c5074e0
mov ecx, edi
call fcn.5c5074e0
mov edi, dword [esi + 0x14]
test edi, edi
je 0x5c50a37a
mov ecx, dword [edi + 0xc]
call fcn.5c5074e0
mov ecx, edi
call fcn.5c5074e0
mov edi, dword [esi + 0x18]
xor ebx, ebx
test edi, edi
je 0x5c50a3be
cmp dword [edi], ebx
jbe 0x5c50a3ab
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.5c5074e0
mov edi, dword [esi + 0x18]
inc ebx
cmp ebx, dword [edi]
jb 0x5c50a387
xor ebx, ebx
test edi, edi
je 0x5c50a3be
mov ecx, dword [edi + 0xc]
call fcn.5c5074e0
mov ecx, edi
call fcn.5c5074e0
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x5c50a3d4
mov ecx, dword [edi + 0xc]
call fcn.5c5074e0
mov ecx, edi
call fcn.5c5074e0
cmp dword [esi + 0xc], 1
jne 0x5c50a3e1
mov ecx, dword [esi]
call fcn.5c50c20c
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x5c50a41f
mov edi, 0x5c502508
mov edx, ebx
movzx eax, byte [ecx + edx]
cmp al, byte [edi + edx]
jne 0x5c50a400
inc edx
cmp edx, 2
jne 0x5c50a3ef
jmp 0x5c50a405
sbb ebx, ebx
or ebx, 1
test ebx, ebx
je 0x5c50a417
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 0x5c50a42d
call fcn.5c5074e0
mov esp, ebp
pop ebp
ret

Function at 0x5c50a431
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 0x5c50a44f
mov eax, 0x88760353
jmp 0x5c50a4e1
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 0x5c50a4d1
push 0x28
pop edx
lea ecx, [ebp - 8]
call fcn.5c507487
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5c50a49c
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.5c50a2c0
mov esi, eax
jmp 0x5c50a49f
mov edi, dword [ebp - 4]
test esi, esi
jne 0x5c50a4b1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760356
jmp 0x5c50a4df
mov ecx, esi
call fcn.5c50a5ea
test eax, eax
je 0x5c50a4d8
mov ecx, esi
call fcn.5c50a335
mov ecx, esi
call fcn.5c5074e0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x88760361
jmp 0x5c50a4df
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5c50ab39
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 [0x5c50e0e4]
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 0x5c50ab83
mov eax, 0x88760357
jmp 0x5c50ac33
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 0x5c50abb1
mov eax, 0x88760361
jmp 0x5c50ac32
cmp dword [ebx + 0x18], edi
jne 0x5c50abe8
push 0x10
pop edx
lea ecx, [ebp - 0x10c]
call fcn.5c507487
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x5c50abdf
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], 0xa
mov dword [eax + 0xc], edi
jmp 0x5c50abe1
mov eax, edi
mov dword [ebx + 0x18], eax
test eax, eax
je 0x5c50ac19
lea ecx, [ebp - 0x108]
call fcn.5c509199
mov edi, eax
mov dword [ebp - 0x10c], edi
test edi, edi
je 0x5c50ac19
mov ecx, dword [ebx + 0x18]
lea eax, [ebp - 0x10c]
push eax
call fcn.5c506839
test eax, eax
jns 0x5c50ac45
mov ecx, edi
call fcn.5c5074e0
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.5c50cb00
mov esp, ebp
pop ebp
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 0x5c50ac32
Function at 0x5c50ac69
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5c50e0e4]
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 0x5c50ae32
xor ebx, ebx
cmp dword [eax], ebx
je 0x5c50ae32
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5c50ae32
cmp dword [eax], ebx
je 0x5c50ae32
mov eax, dword [esi + 8]
sub eax, ebx
je 0x5c50acce
sub eax, 1
jne 0x5c50acd5
push dword [esi + 0x20]
call fcn.5c50a4e6
push 0x5c5025b8
push esi
call fcn.5c50b1d9
pop ecx
pop ecx
jmp 0x5c50acd5
push 0x37
call fcn.5c50b278
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
jne 0x5c50acf9
mov eax, 0x88760361
jmp 0x5c50ae34
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x98], ebx
cmp dword [eax], ebx
jbe 0x5c50ae32
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 0x5c50acef
push edi
mov ecx, esi
call fcn.5c50b2c7
push 0
mov ecx, esi
call fcn.5c50b2c7
push 0
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5c50acef
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 0x5c50acef
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 0x5c50ae08
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
cmp dword [ebp - 0x88], 0
je 0x5c50adf6
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
push dword [ebp - 0x88]
call fcn.5c50b254
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 0x5c50adb3
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 0x5c50ad0a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50cb00
mov esp, ebp
pop ebp
ret
Function at 0x5c50b1d9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5c50e0e4]
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 0x5c50b20d
xor eax, eax
jmp 0x5c50b245
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.5c50cb00
mov esp, ebp
pop ebp
ret

Function at 0x5c50b278
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
mov esp, ebp
pop ebp
ret 4