joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a471
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0
call fcn.00456130
mov dword [ebp - 4], 1
xor edi, edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4564dc
cmp eax, edi
jbe 0x456532
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov al, byte [edx + edi]
xor al, 0x6b
mov byte [ecx + edi], al
inc edi
mov eax, dword [ebp - 0x1c]
cmp eax, edi
ja 0x4564ba
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.00456130
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x30], 1
jb 0x456502
push dword [ebp - 0x2c]
call fcn.004e03e4
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
push str.invalid_string_position
call fcn.004df6ab
int3

Function at 0x4566c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x4567cd
cmp word [ebx], 0
je 0x4567cd
cmp word [ebx + 2], 0x3a
jne 0x4567cd
cmp word [ebx + 4], 0x5c
jne 0x4567cd
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4566f6
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004df6d9
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x456746
push 2
push 0x529aa8
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp - 4], 1
push 0x5c
push eax
call fcn.004e4d98
mov esi, eax
add esp, 8
test esi, esi
je 0x4567ba
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45677c
test al, 0x10
jne 0x456785
push 0
push edi
call ebx
test eax, eax
je 0x4567b3
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.004e4d98
mov esi, eax
add esp, 8
test esi, esi
jne 0x456767
push edi
call fcn.004e0c7a
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
call fcn.004e0c7a
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4567e0
Capabilities:
Check if file exists
Get file attributes
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f4
call fcn.004e5300
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp dword [esi + 0x14], 0x10
jb 0x456807
mov eax, dword [esi]
jmp 0x456809
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45698d
test al, 0x10
jne 0x45698d
cmp dword [esi + 0x14], 0x10
jb 0x456829
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x456975
push edi
push 0xfff
lea eax, [ebp - 0x1053]
mov dword [ebp - 0x10f4], 0x67452301
push 0
push eax
mov dword [ebp - 0x10f0], 0xefcdab89
mov dword [ebp - 0x10ec], 0x98badcfe
mov dword [ebp - 0x10e8], 0x10325476
mov dword [ebp - 0x10e4], 0
mov dword [ebp - 0x10e0], 0
mov dword [ebp - 0x10dc], 0
mov byte [ebp - 0x1054], 0
call fcn.004e4b60
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea eax, [ebp - 0x1058]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
push esi
call edi
test eax, eax
je 0x4568f8
mov eax, dword [ebp - 0x1058]
test eax, eax
je 0x4568f8
push eax
lea edx, [ebp - 0x1054]
lea ecx, [ebp - 0x10f4]
call fcn.0045b940
add esp, 4
cmp dword [ebp - 0x1058], 0
ja 0x4568b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x14]
movq qword [ebp - 0x13], xmm0
lea ecx, [ebp - 0x10f4]
mov dword [ebp - 0xb], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
call fcn.0045ba20
push 0x3f
lea eax, [ebp - 0x53]
mov byte [ebp - 0x54], 0
push 0
push eax
call fcn.004e4b60
add esp, 8
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x14]
call fcn.0045bad0
add esp, 4
cmp byte [ebp - 0x54], 0
pop edi
jne 0x456957
xor ecx, ecx
jmp 0x456969
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456960
sub ecx, edx
push ecx
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.00402090
xor eax, eax
cmp dword [ebx + 0x10], eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
Function at 0x4569a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x456aa4
test edx, edx
je 0x456aa4
push edx
mov edx, ecx
mov dword [ebp - 0xf0], 0x67452301
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xec], 0xefcdab89
mov dword [ebp - 0xe8], 0x98badcfe
mov dword [ebp - 0xe4], 0x10325476
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
call fcn.0045b940
xorps xmm0, xmm0
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x14]
movq qword [ebp - 0x13], xmm0
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xb], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
call fcn.0045ba20
push 0x3f
lea eax, [ebp - 0x53]
mov byte [ebp - 0x54], 0
push 0
push eax
call fcn.004e4b60
add esp, 0xc
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x14]
call fcn.0045bad0
add esp, 4
cmp byte [ebp - 0x54], 0
jne 0x456a72
xor ecx, ecx
jmp 0x456a81
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456a78
sub ecx, edx
push ecx
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.00402090
xor eax, eax
cmp dword [esi + 0x10], eax
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
Function at 0x45bb40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], edx
push esi
push 0x80
push 3
push esi
push 3
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45bbc8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ecx], ebx
cmp ebx, 0xffffffff
je 0x45bbc0
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004e0d3e
mov esi, eax
add esp, 4
test esi, esi
je 0x45bbc0
push 0
push dword [ebp - 4]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
mov eax, dword [ecx]
mov byte [esi + eax], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45bbd0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a738
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp word [esi], ax
jne 0x45bc30
xor ecx, ecx
jmp 0x45bc42
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bc33
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00407c40
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], eax
mov word [ebp - 0x60], ax
cmp word [esi], ax
jne 0x45bc96
xor ecx, ecx
jmp 0x45bcaf
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x45bca0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bca0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x60]
call fcn.00407c40
push ecx
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00456ac0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 8
jb 0x45bce1
push dword [ebp - 0x60]
call fcn.004e03e4
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], 7
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x50], 0
cmovae ecx, dword [ebp - 0x30]
mov word [ebp - 0x60], ax
call fcn.004566c0
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45bd5d
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ebx
push dword [ebp - 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45bd5d
cmp dword [ebp - 0x18], ebx
jne 0x45bd5d
mov esi, 1
jmp 0x45bd5f
xor esi, esi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1c], 8
jb 0x45bd74
push dword [ebp - 0x30]
call fcn.004e03e4
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
jb 0x45bda0
push dword [ebp - 0x48]
call fcn.004e03e4
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov eax, esi
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
Function at 0x45cd60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
xorps xmm0, xmm0
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], 0x67452301
mov dword [ebp - 0x9c], 0xefcdab89
movdqu xmmword [ebx], xmm0
mov dword [ebp - 0x98], 0x98badcfe
movdqu xmmword [edi], xmm0
mov dword [ebp - 0x94], 0x10325476
movdqu xmmword [edi + 0x10], xmm0
mov byte [edi + 0x20], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
jb 0x45cde6
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0xa0]
push eax
call fcn.0045b940
add esp, 4
lea ecx, [ebp - 0xa0]
mov edx, ebx
call fcn.0045ba20
xor esi, esi
movzx eax, byte [ebx + esi]
push eax
push str._02x
push 2
push 3
push edi
call fcn.004e0c7f
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x45ce06
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [eax + 0x20], 0
pop ebx
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
Function at 0x45dff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aac
call fcn.004e5300
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004e4b60
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.00409f40
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x45e06f
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x68746150
push ecx
push eax
mov dword [ebp - 0xc], 0x65707041
mov dword [ebp - 8], 0x57646e
call edi
mov dword [esi + 0x10], eax
push 0x52e56c
lea eax, [ebp - 0x218]
push eax
mov eax, dword [esi + 0x10]
call eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aac], eax
test eax, eax
jne 0x45e0aa
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push eax
call edi
test eax, eax
je 0x45e1a3
lea ecx, [ebp - 0x2a9c]
mov dword [ebp - 0x2a9c], 0x2880
push ecx
lea ecx, [ebp - 0x2a98]
push ecx
call eax
test eax, eax
jne 0x45e1a3
mov eax, ebx
mov dword [ebp - 0x2aa0], 3
lea ecx, [ebp - 0xc]
sub eax, ecx
lea edi, [ebp - 0x2a98]
mov dword [ebp - 0x2aa8], eax
lea esp, [esp]
lea ecx, [edi + 8]
call fcn.0045e1f0
mov dword [ebp - 0x2aa4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x2aa8]
nop
lea esi, [ebp - 0xc]
add esi, ecx
mov dl, byte [eax + esi]
cmp dl, byte [esi]
jne 0x45e13a
inc ecx
cmp ecx, 6
jb 0x45e120
mov ecx, dword [ebp - 0x2aa4]
jmp 0x45e158
mov eax, dword [edi + 0x1a0]
cmp eax, 6
je 0x45e14a
cmp eax, 0x17
jne 0x45e199
mov ecx, dword [ebp - 0x2aa4]
cmp dword [ebp - 0x2aa0], ecx
jle 0x45e199
movzx eax, byte [edi + 0x194]
mov byte [ebx], al
movzx eax, byte [edi + 0x195]
mov byte [ebx + 1], al
movzx eax, byte [edi + 0x196]
mov byte [ebx + 2], al
movzx eax, byte [edi + 0x197]
mov byte [ebx + 3], al
movzx eax, byte [edi + 0x198]
mov byte [ebx + 4], al
movzx eax, byte [edi + 0x199]
mov byte [ebx + 5], al
mov dword [ebp - 0x2aa0], ecx
mov edi, dword [edi]
test edi, edi
jne 0x45e100
push dword [ebp - 0x2aac]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
sub ebx, eax
nop
lea ecx, [ebp - 0xc]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x45e1d6
inc edx
cmp edx, 6
jb 0x45e1c0
mov cl, 1
jmp 0x45e1d8
xor cl, cl
xor eax, eax
test cl, cl
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
Function at 0x45fe80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x45feb4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45feb4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x45ff78
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x45fed1
cmp ax, 0x5c
jne 0x45fed3
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x45fec5
cmp esi, ebx
je 0x45ff1f
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.004e4510
add esp, 0xc
cmp esi, 0x208
jae 0x45ff88
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0045fe80
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x45ff42
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e3581
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e2e47
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45ff78
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e03e9
mov esp, ebp
pop ebp
ret
call fcn.004e34a5
int3

Function at 0x4607e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4608aa
cmp dword [esi + 4], 0xffffffff
jne 0x4608aa
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460811
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x460845
cmp eax, 0x2f
je 0x460845
push 0x529aa8
push 0x104
push edi
call fcn.004e2e47
add esp, 0xc
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x46086b
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46086b
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00463400
add esp, 0x10
test eax, eax
jne 0x46088b
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00463b30
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x460f30
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x50fe40]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
mov dword [edx + 8], eax
pop ebp
ret
Function at 0x463530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x46356e
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x463562
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x46357f
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004e4510
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x46360e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4636e3
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
dec edi
jne 0x463626
pop edi
test esi, esi
je 0x463702
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50fe40]
dec esi
jne 0x4636e7
not eax
pop esi
pop ebp
ret
Function at 0x464450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x18
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x464486
cmp byte [edi + 1], 0
je 0x46447e
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x46448c
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x4644b1
cmp byte [edi + 1], 0
je 0x4644aa
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x4644b4
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x4644c3
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
jae 0x4644c6
mov dword [ebp - 4], ebx
push esi
push 0x404
call fcn.004e0d3e
mov esi, eax
add esp, 4
test esi, esi
jne 0x4644e4
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
mov dword [ebp + 8], 0xffffffff
cmp ecx, eax
jbe 0x4645e8
jmp 0x464500
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x18], edx
sub ebx, ecx
mov dword [ebp - 0x14], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x46454a
cmp byte [edi + 1], 0
je 0x4645e8
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x46454d
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x464575
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x464570
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x10]
jmp 0x46459e
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x464588
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.004e4510
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4645e8
lea eax, [ebx - 3]
test eax, eax
js 0x4645d0
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x4645cc
cmp byte [eax + esi + 1], 0x4b
jne 0x4645cc
cmp byte [eax + esi + 2], 5
jne 0x4645cc
cmp byte [eax + esi + 3], 6
je 0x4645fb
test eax, eax
jns 0x4645b0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4645e8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jb 0x464500
push esi
call fcn.004e0a44
mov eax, dword [ebp + 8]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
jmp 0x4645d3