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

Disassembly:
push 8
push 0x4074d0
call fcn.0040155c
push 8
call fcn.00402535
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x409b5c], esi
jne 0x4031b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x409b58], esi
mov al, byte [ebp + 0x10]
mov byte [0x409b54], al
cmp dword [ebp + 0xc], edi
jne 0x403200
cmp dword [0x40a188], edi
je 0x4031f0
mov eax, dword [0x40a184]
sub eax, 4
mov dword [0x40a184], eax
cmp eax, dword [0x40a188]
jb 0x4031f0
mov eax, dword [eax]
cmp eax, edi
je 0x4031d1
call eax
jmp 0x4031d1
push 0x409024
mov eax, 0x409020
call fcn.00403100
pop ecx
push 0x40902c
mov eax, 0x409028
call fcn.00403100
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x403231
cmp dword [ebp + 0x10], edi
jne 0x40323f
mov dword [0x409b5c], esi
push dword [ebp + 8]
call fcn.004030be
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40323e
push 8
call fcn.00402480
pop ecx
ret
call fcn.00401597
ret

Function at 0x40348e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x409040]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x409190]
je 0x4034c3
inc eax
cmp eax, 0x13
jb 0x4034b4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409190]
jne 0x4035e9
mov eax, dword [0x409974]
cmp eax, 1
je 0x4035c1
cmp eax, edx
jne 0x4034f3
cmp dword [0x409034], 1
je 0x4035c1
cmp ecx, 0xfc
je 0x4035e9
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403529
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00404860
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404a90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40355d
mov eax, edi
push eax
call fcn.00404a90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4078e8
push edi
call fcn.00404960
add esp, 0x10
push edi
call fcn.00404a90
push dword [esi + 0x409194]
mov ebx, eax
call fcn.00404a90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404150
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404860
push edi
push ebx
call fcn.00404870
push 0x4078c8
push ebx
call fcn.00404870
push dword [esi + 0x409194]
push ebx
call fcn.00404870
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404759
add esp, 0x2c
jmp 0x4035e9
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x409194]
push dword [esi]
call fcn.00404a90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00401e3e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404759
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409c94], ebx
push esi
push edi
jne 0x4047d9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404814
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x409c94], eax
je 0x404814
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x409c98], eax
call esi
cmp dword [0x409b1c], 2
mov dword [0x409c9c], eax
jne 0x4047d9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409ca4], eax
je 0x4047d9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409ca0], eax
mov eax, dword [0x409ca0]
test eax, eax
je 0x40481e
call eax
test eax, eax
je 0x404805
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409ca4]
test eax, eax
je 0x404805
test byte [ebp - 8], 1
jne 0x40481e
cmp dword [0x409b28], 4
jb 0x404818
or byte [ebp + 0x12], 0x20
jmp 0x40483d
xor eax, eax
jmp 0x40484d
or byte [ebp + 0x12], 4
jmp 0x40483d
mov eax, dword [0x409c98]
test eax, eax
je 0x40483d
call eax
mov ebx, eax
test ebx, ebx
je 0x40483d
mov eax, dword [0x409c9c]
test eax, eax
je 0x40483d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409c94]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4060dc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404150
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406177
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x409b1c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406177
cmp eax, 1
je 0x406198
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406177
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406144
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406173
xor eax, eax
inc eax
jmp 0x4061b7
cmp edi, eax
jae 0x40617b
xor eax, eax
jmp 0x4061b7
cmp eax, esi
jae 0x406182
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x409b1c]
jmp 0x40619b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c5091f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x5c509219
mov eax, 0x8876035a
jmp 0x5c5092ed
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5c5092e7
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x5c5092e0
test eax, eax
je 0x5c5092e0
push 0x1c
pop edx
lea ecx, [ebp - 8]
call fcn.5c507396
mov edi, dword [ebp - 8]
test edi, edi
je 0x5c5092d2
mov eax, dword [ebp - 4]
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
test edi, edi
je 0x5c5092d2
push 0x1c
pop edx
lea ecx, [ebp - 0xc]
call fcn.5c507396
mov eax, dword [ebp - 0xc]
xor edx, edx
inc edx
test eax, eax
je 0x5c5092b9
mov ecx, dword [ebp + 0xc]
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], edi
mov dword [eax + 4], edx
mov dword [ecx], eax
test eax, eax
je 0x5c5092bf
xor eax, eax
jmp 0x5c5092ec
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [edi]
push edx
mov esi, dword [eax]
mov ecx, esi
call dword [0x5c511118]
mov ecx, edi
call esi
jmp 0x5c5092d9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 0x88760356
jmp 0x5c5092ec
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 0x8876035c
pop ebx
pop edi
pop esi
leave
ret
Function at 0x5c5092f7
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 - 4], 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 0x5c50932b
mov eax, 0x88760359
jmp 0x5c509429
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x5c50941d
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x5c50941d
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x5c509374
mov edi, 0x88760361
jmp 0x5c509409
push 0x24
pop edx
lea ecx, [ebp - 0xc]
call fcn.5c507396
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x5c5093fd
mov eax, dword [ebp - 0x10]
and dword [edi + 0x14], 0
mov dword [edi + 8], eax
add eax, ebx
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 8]
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
test edi, edi
je 0x5c5093fd
push 0x1c
pop edx
lea ecx, [ebp - 0x10]
call fcn.5c507396
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x5c5093e1
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], edi
mov dword [eax + 4], 1
mov dword [ecx], eax
test eax, eax
je 0x5c5093e4
xor eax, eax
jmp 0x5c509429
and dword [ecx], 0
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 0x5c509429
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, 0x88760356
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x5c509429
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760361
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c50a910
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 ebx, ebx
lea eax, [ebp - 0x108]
mov edi, ecx
push eax
push ebx
push 0x5c502578
push 0x5c50257c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5c50a95a
mov eax, 0x88760357
jmp 0x5c50a9ff
push esi
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5c50a985
mov eax, 0x88760361
jmp 0x5c50a9fe
cmp dword [edi + 0x18], ebx
jne 0x5c50a9b4
push 0x10
pop edx
lea ecx, [ebp - 0x10c]
call fcn.5c507396
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x5c50aa0f
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], 0xa
mov dword [eax + 0xc], ebx
mov dword [edi + 0x18], eax
lea ecx, [ebp - 0x108]
call fcn.5c508efb
mov ebx, eax
mov dword [ebp - 0x10c], ebx
test ebx, ebx
je 0x5c50a9e5
mov ecx, dword [edi + 0x18]
lea eax, [ebp - 0x10c]
push eax
call fcn.5c5067bf
test eax, eax
jns 0x5c50aa14
mov ecx, ebx
call fcn.5c5073fb
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.5c50c960
leave
ret 8
mov dword [edi + 0x18], ebx
jmp 0x5c50a9e5
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 0x5c50a9fe

Function at 0x5c50afda
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 0x5c50b00e
xor eax, eax
jmp 0x5c50b046
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.5c50c960
leave
ret

Function at 0x5c50b081
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 0x5c50bed4
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 0x5c50c035
cmp dword [ebp - 0x18], 0x10
je 0x5c50bf30
push 0xe
pop eax
jmp 0x5c50c03a
mov ax, word [0x5c5025e0]
mov word [ebp - 0xb], ax
mov al, byte [0x5c5025e2]
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 0x5c50c035
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 0x5c50c035
push 0
lea eax, [ebp - 0x18]
push eax
push 0x8000
push dword [ebp - 0x2c]
jmp 0x5c50c026
cmp dword [ebp - 0x18], 0
je 0x5c50c052
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.5c5029b0
add esp, 0x24
test eax, eax
jne 0x5c50c04b
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 0x5c50c035
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 0x5c50c035
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 0x5c50c035
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jne 0x5c50c04b
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 0x5c50bf8b
mov eax, 0x88760361
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50c960
leave
ret 8
mov eax, 0x88760356
jmp 0x5c50c03a
xor eax, eax
jmp 0x5c50c03a
Function at 0x5c50c05c
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 0x5c5025e4
push 0x5c50257c
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5c50c09d
mov eax, 0x88760357
jmp 0x5c50c1a1
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 0x5c50c0cb
mov eax, 0x88760361
jmp 0x5c50c1a0
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 0x5c50c0f2
mov esi, 0x88760361
jmp 0x5c50c166
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.5c50be11
test eax, eax
jne 0x5c50c140
mov esi, 0x88760356
jmp 0x5c50c14f
push edi
push esi
lea ecx, [ebp - 0x130]
call fcn.5c50bed4
mov esi, eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x130]
call fcn.5c50bd9a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x5c50c180
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x5c50c19e
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 0x5c50c19e
mov esi, 0x88760361
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50c960
leave
ret

Function at 0x5c50cbb0
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 0x5c50cbee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x5c50cbe6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x5c50cbf0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x5c50cbd6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5c50ccd0
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 0x5c50cd01
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5c50cd01
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x5c50cd01
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5c51447b
Capabilities:
Encode data using xor

Disassembly:
call 0x5c5143f4
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x5c514424
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x5c514440
xor edx, 0
jmp 0x5c51444b
xor edx, edx
jmp 0x5c514462
jmp 0x5c51446e
xor eax, eax
push 0x8427d7c0
call 0x5c51447b
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x5c5144b7
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x5c514490
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x5c5144ce
add eax, 0
jno 0x5c5144d3
add esi, 0
ret 0x10

Function at 0x5c51523c
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x5c51525e
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x5c515400
cmp edi, dword [ebp + 0x10]
jb 0x5c515400
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.5c514d28
inc edi
jmp 0x5c5152e7
jmp 0x5c5152f4
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.5c514d28
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.5c514d28
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x5c515348
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x5c51532c
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.5c515376
add dword [eax], 0x39
jle 0x5c515352
sub al, 0xf5
mov ch, al
call fcn.5c51538b
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10