joyce8/EMBER2024-capa huggingface dataset:
Function at 0x562bc0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x765db0]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x765db0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x563bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x563bff
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x563bf5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x563c59
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x563c1f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00668860
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x565730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jne 0x56574a
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0xffffffff
je 0x565754
mov eax, 0x1000000
jmp 0x565840
mov edx, dword [ebp - 0x1c]
add edx, 0x140
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp - 0x1c]
add eax, 0x140
push eax
call fcn.00666cf0
add esp, 4
sub eax, 1
mov dword [ebp - 4], eax
jne 0x56578c
mov eax, 0x2000000
jmp 0x565840
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x140]
mov byte [ebp - 9], dl
movsx eax, byte [ebp - 9]
cmp eax, 0x5c
je 0x5657c4
movsx ecx, byte [ebp - 9]
cmp ecx, 0x2f
je 0x5657c4
push 0x766248
mov edx, dword [ebp - 0x1c]
add edx, 0x140
push edx
call fcn.00666bb0
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x5657f8
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
xor ecx, ecx
cmp dword [ebp - 0x14], 0xffffffff
setne cl
mov byte [ebp - 0x15], cl
movzx edx, byte [ebp - 0x15]
test edx, edx
jne 0x5657f8
mov eax, 0x2000000
jmp 0x565840
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00563890
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x56581e
mov eax, dword [ebp - 0x10]
jmp 0x565840
mov ecx, dword [ebp - 8]
push ecx
call fcn.00564040
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jne 0x56583e
mov eax, 0x200
jmp 0x565840
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5662c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x5662f4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5662f4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x566303
jmp 0x566404
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
movsx ecx, byte [eax]
test ecx, ecx
je 0x566355
mov edx, dword [ebp - 0x118]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x56633b
mov ecx, dword [ebp - 0x118]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x566344
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
jmp 0x566312
mov edx, dword [ebp - 4]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x5663b0
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.00668860
add esp, 0xc
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
mov byte [ebp + ecx - 0x220], 0
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005662c0
add esp, 8
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x110], 0
cmp dword [ebp + 8], 0
je 0x5663d0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00666ba0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00666bb0
add esp, 8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x566404
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret
Function at 0x5698c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 1
jl 0x5698d8
cmp dword [ebp + 0xc], 8
jg 0x5698d8
mov byte [ebp - 5], 1
jmp 0x5698dc
mov byte [ebp - 5], 0
push str.bad_pack_level
movzx eax, byte [ebp - 5]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00567450
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x569925
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af78], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af70], 0x10000
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af6c], 0
push 0x1fffc
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x4af70
push ecx
call fcn.006665c0
add esp, 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x766732]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af98], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x766730]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af9c], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x766734]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6afa0], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x766736]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af94], eax
cmp dword [ebp + 0xc], 2
jg 0x5699b2
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x5699c7
cmp dword [ebp + 0xc], 8
jl 0x5699c7
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 2
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af74], 0
mov dword [ebp - 4], 0x8000
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1af70
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0
je 0x569a2d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x569a49
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], 0
jmp 0x569ac1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0x106
jae 0x569a71
mov edx, dword [ebp + 8]
push edx
call fcn.00569e50
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], 0
mov dword [ebp - 4], 0
jmp 0x569a90
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 2
jae 0x569ac1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x1af70]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x569a87
mov esp, ebp
pop ebp
ret
Function at 0x56b840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x56b850
xor eax, eax
jmp 0x56b9ed
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x56b9ae
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x766a78]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x766a78]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x766a78]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x766a78]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x766a78]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x766a78]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x766a78]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x766a78]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x56b859
cmp dword [ebp + 0x10], 0
je 0x56b9e7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x766a78]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x56b9b4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x56b9f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x766a78]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x766a78]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x56c1f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x56c2d2
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x3c], 0
je 0x56c241
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp + 0xc]
jae 0x56c241
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00576bf1
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x3c], 0
jne 0x56c26d
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
call fcn.00576bfc
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.00668860
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x56c296
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x56c2c9
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x30
push edx
call fcn.0056baa0
add esp, 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 8]
mov byte [edx + ecx], al
jmp 0x56c28d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x20], 0
je 0x56c32d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x28]
jb 0x56c2fa
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x30000
xor eax, eax
jmp 0x56c362
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x24]
push eax
call fcn.00668860
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 0xc]
jmp 0x56c362
mov edx, dword [ebp - 0x18]
cmp dword [edx + 4], 0
je 0x56c356
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
jmp 0x56c362
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x56ca10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x84], 0
je 0x56cad2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x8c]
cmp eax, dword [edx + 0x88]
jb 0x56ca44
xor eax, eax
jmp 0x56cb42
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x88]
sub eax, dword [edx + 0x8c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jbe 0x56ca67
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x84]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x8c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00668860
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x8c]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x8c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x74]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
push edx
call fcn.0056b840
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 4]
jmp 0x56cb42
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x7c], 0
je 0x56cb36
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x56cb03
xor eax, eax
jmp 0x56cb42
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x74]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
push edx
call fcn.0056b840
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 0xc]
jmp 0x56cb42
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x56e750
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0049fae0
add esp, 4
test eax, eax
jne 0x56e78b
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0049fb10
add esp, 4
test eax, eax
jne 0x56e78b
or eax, 0xffffffff
jmp 0x56e870
mov byte [ebp - 0x540], 0
push 0x3ff
push 0
lea edx, [ebp - 0x53f]
push edx
call fcn.006665c0
add esp, 0xc
lea eax, [ebp - 0x540]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00566ed0
add esp, 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x138]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call fcn.00566f10
add esp, 0xc
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x544], 0
jmp 0x56e811
mov eax, dword [ebp - 0x544]
add eax, 1
mov dword [ebp - 0x544], eax
mov ecx, dword [ebp - 0x544]
cmp ecx, dword [ebp - 0x13c]
jge 0x56e855
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x544]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00566f10
add esp, 0xc
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x544]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00567090
add esp, 0xc
jmp 0x56e802
mov edx, dword [ebp - 4]
push edx
call fcn.00567130
add esp, 4
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret
Function at 0x56ff40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b130e
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x7e2670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
call fcn.0054ac10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.00455160
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.00401490
mov byte [ebp - 4], 3
push 0
push 0x768d80
lea ecx, [ebp + 8]
call fcn.00404540
cmp eax, 0xffffffff
je 0x56fff9
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004014b0
mov byte [ebp - 4], 4
push str.sys.ini
push 0x768d94
lea ecx, [ebp + 8]
call fcn.00410d30
push 0
push 0
lea ecx, [ebp + 8]
call fcn.004018a0
push eax
push 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.004014d0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.0040fe20
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.0054e2d0
mov ecx, dword [ebp - 0x14]
call fcn.00570e80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004014d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x571cc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], ecx
mov ecx, dword [ebp + 8]
call fcn.00570e80
push str.system.ini
push 0xa
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x414]
call fcn.004137c0
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x418]
push ecx
call fcn.00413840
add esp, 8
mov byte [ebp - 0x409], al
lea ecx, [ebp - 0x410]
call fcn.004014d0
movzx edx, byte [ebp - 0x409]
test edx, edx
je 0x571da2
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.006665c0
add esp, 0xc
mov ecx, dword [ebp - 0x414]
call fcn.00489570
push eax
push 0x3ff
lea ecx, [ebp - 0x408]
push ecx
push 0x768f1e
push 0x768fc8
push 0x768fd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x408]
push edx
call fcn.00666cf0
add esp, 4
cmp eax, 1
jb 0x571d95
movsx eax, byte [ebp - 0x408]
cmp eax, 0x31
je 0x571da2
mov ecx, dword [ebp + 8]
call fcn.00570e40
jmp 0x571e31
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x414]
call fcn.00572600
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x414]
call fcn.00572710
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x414]
call fcn.005720c0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x414]
call fcn.00572160
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x414]
call fcn.00572020
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x414]
call fcn.00572930
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x414]
call fcn.00572200
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x414]
call fcn.005724f0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x414]
call fcn.00572820
mov ecx, dword [ebp + 8]
call fcn.00570e40
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 4