joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53e9fb
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 4], eax
je 0x53ea92
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 4]
mov dword [edi + 0x5f8], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push 0xcc0020
push eax
push ecx
push dword [ebp - 8]
sub edx, eax
mov eax, dword [esi + 8]
push edx
sub eax, ecx
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [edi + 0x56c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp + 8]
call ebx
jmp 0x53eaec
mov eax, dword [edi + 0x5f8]
test eax, eax
je 0x53eaec
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0xcc0020
push 0
push 0
push dword [ebp - 4]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 0x5f8]
call ebx
and dword [edi + 0x5f8], 0
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
leave
ret 4

Function at 0x5413b9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x5413c4
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x541476
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d25c8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d25c8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d25c8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d25c8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d25c8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d25c8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d25c8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d25c8]
inc ecx
sub edi, 8
dec esi
jne 0x5413db
pop ebx
test edi, edi
je 0x54148f
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x5d25c8]
inc ecx
dec edi
jne 0x54147a
pop esi
not eax
pop edi
ret
Function at 0x541aef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x541b1f
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x541b1a
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x541b47
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x541b30
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.005965b0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x5426ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x542733
cmp dword [ebx + 4], 0xffffffff
jne 0x542733
lea esi, [ebx + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x5426df
mov edi, esi
mov esi, 0x5e23d8
movsd dword es:[edi], dword [esi]
xor esi, esi
push 0x1c
mov dword [ebp - 4], esi
call fcn.0058f82d
pop ecx
cmp eax, esi
je 0x54272c
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], esi
mov dword [eax + 0xc], esi
call fcn.00541d63
mov dword [ebx], eax
mov eax, dword [0x63bf20]
pop ecx
jmp 0x542738
mov eax, 0x300
jmp 0x542738
mov eax, 0x1000000
pop edi
pop esi
leave
ret 8
Function at 0x54433c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, eax
push esi
lea eax, [ebx - 1]
push edi
mov esi, ecx
cmp eax, 7
jbe 0x544355
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
mov dword [eax], edi
cmp dword [ecx], edi
jne 0x544375
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.00596530
mov eax, ebx
shl eax, 3
movzx ecx, word [eax + 0x5d0d62]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x5d0d60]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x5d0d64]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x5d0d66]
add esp, 0xc
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x5443d8
mov eax, dword [esp + 0x10]
or word [eax], 4
jmp 0x5443e5
cmp ebx, 8
jl 0x5443e5
mov eax, dword [esp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x54444d
cmp eax, 0xffffffff
je 0x54444d
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x544425
call fcn.005445e5
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
inc edi
mov dword [esi + 0x6af7c], eax
cmp edi, 2
jb 0x54442b
jmp 0x54445d
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x544701
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x5448fe
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x54477b
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x5447be
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x5447be
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x5447a3
mov dword [eax], ecx
push dword [ebp - 4]
mov ecx, esi
call fcn.00544461
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x5447be
mov ebx, eax
cmp ebx, 3
jb 0x54487e
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.00543d67
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x54484c
cmp eax, 3
jb 0x54484c
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x5447fa
jmp 0x54489e
add dword [esi + 0x6af84], ebx
mov eax, dword [esi + 0x6af84]
lea edx, [eax + esi]
movzx ecx, byte [edx + 0x1af70]
lea eax, [esi + 0x6af7c]
mov dword [eax], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [eax], edx
jmp 0x5448a4
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.00543d67
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x5448df
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x5448bd
lea edx, [ecx + esi + 0x1af70]
jmp 0x5448bf
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.00543b76
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x5448f0
call fcn.005445e5
cmp dword [esi + 0x6af90], 0
jne 0x54472b
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x544911
lea edx, [ecx + esi + 0x1af70]
jmp 0x544913
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.00543b76
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x5453e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x5453ef
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x5454a1
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d0db0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d0db0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d0db0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d0db0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d0db0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d0db0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d0db0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d0db0]
inc ecx
sub edi, 8
dec esi
jne 0x545406
pop ebx
test edi, edi
je 0x5454ba
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x5d0db0]
inc ecx
dec edi
jne 0x5454a5
pop esi
not eax
pop edi
ret
Function at 0x5458d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
cmp dword [esi + 0x18], edi
je 0x545989
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + eax]
mov eax, dword [esi + 0x20]
cmp ecx, eax
jb 0x54596f
add eax, eax
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x5458ff
mov dword [ebp - 4], ecx
push edi
push dword [ebp - 4]
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
jne 0x54591f
mov eax, 0x300
jmp 0x5459b2
push dword [ebp - 4]
push edi
push edi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x54593f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x545915
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.005965b0
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x18]
push ebx
push dword [ebp + 8]
push eax
call fcn.005965b0
add esp, 0xc
add dword [esi + 0x1c], ebx
mov eax, ebx
jmp 0x5459b2
mov eax, dword [esi]
cmp eax, edi
je 0x5459a9
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
jmp 0x5459b2
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop ebx
leave
ret 8

Function at 0x545bb8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x58]
push edi
test ecx, ecx
je 0x545bfd
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
cmp eax, edi
jae 0x545c25
sub edi, eax
cmp edi, dword [ebp + 8]
jbe 0x545bd7
mov edi, dword [ebp + 8]
push edi
add eax, ecx
push eax
push ebx
call fcn.005965b0
add esp, 0xc
add dword [esi + 0x60], edi
mov eax, dword [esi + 0x4c]
add dword [esi + 0x48], edi
mov edx, edi
mov ecx, ebx
call fcn.005453e4
mov dword [esi + 0x4c], eax
mov eax, edi
jmp 0x545c27
mov eax, dword [esi + 0x50]
test eax, eax
je 0x545c1e
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x545c25
mov edi, dword [ebp + 8]
jmp 0x545be7
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x54fa11
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c49d0
push 0x596410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x54fa97
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x54fa6f
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x54fa9d
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x54fa67
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x54fa67
mov al, 1
jmp 0x54fa69
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x54fafc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x636300]
test esi, esi
je 0x54fb20
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x54fb04
pop esi
pop ecx
ret

Function at 0x54fb23
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x63630c], eax
je 0x54fb39
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x63631c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x54fb86
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x54fb77
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x54fb77
push eax
call fcn.0054fbed
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.0058f3c4
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x54fb48
mov dword [0x63631c], ebx
call fcn.0054fbc6
mov esi, dword [0x636318]
cmp esi, ebx
je 0x54fbb3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0058f3c4
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x54fb9b
pop edi
mov dword [0x636318], ebx
mov dword [0x63630c], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x54fe70
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x636310]
push esi
test eax, eax
push edi
jne 0x54feda
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x54fed8
push 8
call fcn.0058f82d
mov esi, eax
pop ecx
test esi, esi
jne 0x54fe9c
push 8
pop edi
jmp 0x54feb7
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x54fec8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0058f3c4
pop ecx
and dword [0x636314], 0
mov dword [0x636310], edi
mov eax, edi
jmp 0x54feda
mov dword [esi + 4], edi
mov eax, dword [0x636318]
mov dword [esi], eax
mov dword [0x636318], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x550197
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x5501bb
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x5501be
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x5501d1
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x5501d8
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x636304]
mov ecx, dword [0x636300]
test eax, eax
jne 0x5501f2
test ecx, ecx
je 0x550207
mov eax, ecx
mov dword [0x636304], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x550207
cmp edx, dword [ebp + 8]
jb 0x550207
cmp edx, dword [ebp - 4]
jbe 0x550360
mov eax, ecx
test ecx, ecx
mov dword [0x636304], eax
je 0x550237
test eax, eax
je 0x55022b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x55022b
cmp ecx, dword [ebp + 8]
jb 0x55022b
cmp ecx, dword [ebp - 4]
jbe 0x550360
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x636304], eax
jne 0x550216
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x55029f
cmp edi, 0x70000000
jb 0x55025c
cmp edi, 0x80000000
ja 0x55025c
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x55029f
cmp dword [ebp - 0x10], ebx
jne 0x550277
cmp dword [ebp - 0x14], ebx
jae 0x550287
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x550247
jmp 0x55029f
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x636304], eax
jne 0x550316
cmp esi, dword [ebp - 4]
jae 0x550387
cmp esi, 0x70000000
jb 0x5502bd
cmp esi, 0x80000000
ja 0x5502bd
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x550387
cmp dword [ebp - 0x10], ebx
jne 0x55030b
cmp dword [ebp - 0x14], ebx
jb 0x55030b
mov ecx, esi
and ecx, 0xffff
je 0x5502f3
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x636304], eax
jne 0x550316
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x55029f
mov dword [eax], 0x52727464
mov eax, dword [0x636304]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x636304]
mov edx, dword [0x636300]
mov dword [eax + 4], edx
mov eax, dword [0x636304]
mov dword [0x636300], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x550348
mov eax, dword [0x636304]
mov dword [eax + 8], ecx
mov eax, dword [0x636304]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x550387
cmp esi, dword [ebp - 4]
ja 0x550387
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.00596530
add esp, 0xc
mov eax, esi
jmp 0x550389
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x55038e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c49e0
push 0x596410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x550403
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x5503ff
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x5503ff
cmp word [eax + 0x14], 0
jne 0x5503f4
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x550405
mov eax, ecx
jmp 0x5503ee
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5522f3
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x55231c
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x5c67c0]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x5522fc
pop esi
ret

Function at 0x5527c7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
push edi
test eax, eax
je 0x552808
cdq
push esi
mov esi, eax
add eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push edi
sub eax, 1
push esi
sbb ecx, 0
push ecx
push eax
call fcn.00596a50
push edi
push esi
push edx
push eax
call fcn.00596dd0
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
pop esi
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.00552668
pop ecx
pop ecx
test eax, eax
jne 0x552831
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x552838
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], 0x60a
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x552863
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x552893
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x552893
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x5528b3
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00596dd0
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x552b96
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebx
push ebp
push edi
push dword [esp + 0x14]
xor ebp, ebp
xor ebx, ebx
call fcn.00552b83
mov edi, eax
pop ecx
test edi, edi
jne 0x552bb5
push 7
pop eax
jmp 0x552c3e
push esi
call fcn.00552447
test eax, eax
je 0x552bf1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x552be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x552c23
inc ebp
cmp ebp, 5
jge 0x552c23
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x552bbf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x552c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x552c23
inc ebp
cmp ebp, 5
jge 0x552c23
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x552bf1
push edi
call fcn.0058fd4b
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x552c39
cmp ebx, 2
jne 0x552c39
xor eax, eax
jmp 0x552c3e
mov eax, 0xa0a
pop edi
pop ebp
pop ebx
ret