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

Disassembly:
mov eax, dword [0x6788a0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x56419b
mov eax, dword [esp + 0x18]
push 0x62cce0
mov ecx, eax
shl ecx, 6
add ecx, eax
lea esi, [ecx*4 + 0x37f2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x18]
test edi, edi
jge 0x5641a7
xor edi, edi
jmp 0x5641b1
cmp edi, 2
jle 0x5641b1
mov edi, 2
xor ebp, ebp
xor eax, eax
test ebp, ebp
jl 0x564269
mov ecx, dword [ebp*8 + 0x626bf8]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x564204
mov edx, edi
mov eax, dword [ebp*8 + 0x626bfc]
shl edx, 6
add edx, edi
push 0x103
push eax
lea esi, [ebx + edx*4]
lea ecx, [esi + 0x37f2]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [esi + 0x38f5], 0
mov eax, 1
test ecx, ecx
jne 0x56420d
or ebp, 0xffffffff
jmp 0x56420e
inc ebp
test eax, eax
je 0x5641b5
mov eax, dword [ebx + 0xb28]
test eax, eax
je 0x564256
lea esi, [ebx + 0x3afe]
push 0x602c4c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0xb2c]
mov ecx, edi
shl ecx, 6
add ecx, edi
push eax
mov eax, dword [esp + 0x18]
push esi
lea edx, [ebx + ecx*4 + 0x37f2]
push edx
push 0
push eax
push 0
push 0xd
call dword [ebx + 0xb28]
mov ecx, edi
shl ecx, 6
add ecx, edi
pop edi
pop esi
pop ebp
lea eax, [ebx + ecx*4 + 0x37f2]
pop ebx
ret
test eax, eax
jne 0x564212
mov edx, edi
push 0x62cce0
shl edx, 6
add edx, edi
lea esi, [ebx + edx*4 + 0x37f2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x564680
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
test eax, eax
push esi
push edi
je 0x564715
add al, 0x40
push 0x605d9c
mov byte [esp + 0xc], al
lea eax, [esp + 0xd]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 0x12c]
lea ecx, [esp + 0x18]
push 0x104
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea esi, [edi + 0x3d32]
push ecx
push 0x104
lea edx, [esp + 0x20]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x564715
push edi
push 0
push 0
push 0
call fcn.00564f50
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x138]
add esp, 0x10
mov dword [ecx], eax
mov eax, esi
pop edi
mov dword [edx], 8
pop esi
add esp, 0x114
ret
pop edi
xor eax, eax
pop esi
add esp, 0x114
ret
Function at 0x565180
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x24
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push eax
push esi
call fcn.00556a50
mov ebp, dword [esp + 0x44]
add esp, 8
test eax, eax
jne 0x5651c1
cmp word [esp + 0x18], 1
jg 0x5651d1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5651c1
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x56525e
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push ebp
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x565200
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x24
ret
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebp
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x565230
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x40]
push ecx
push 0xffffffffffffffff
push esi
push edi
call fcn.00565380
add esp, 0x10
mov ebx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
test eax, eax
jne 0x565268
test ebx, ebx
jne 0x565268
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x56527e
cmp ebx, 0xa
mov eax, ebx
jne 0x565260
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x24
ret

Function at 0x565380
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x2000
call fcn.005738e8
mov esi, eax
add esp, 4
test esi, esi
jne 0x5653a7
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
cmp edi, 0xffffffff
je 0x5653c9
cmp ebx, edi
jae 0x565445
mov eax, edi
sub eax, ebx
cmp eax, 0x2000
jb 0x5653ce
mov eax, 0x2000
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56542f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x565445
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x56546e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x56546e
mov eax, dword [esp + 0x28]
push eax
call fcn.0055c4c0
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [ecx + 0x8e]
test eax, eax
jne 0x565458
add ebx, dword [esp + 0x14]
jmp 0x5653b1
push esi
call fcn.005737ff
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005737ff
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005737ff
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005737ff
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x565490
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x514
lea ecx, [esp + 0x30c]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
push ecx
call edi
lea edx, [esp + 0x31c]
push edx
call fcn.0055ed20
push 0
lea eax, [esp + 0x220]
push 0
lea ecx, [esp + 0x42c]
push eax
lea edx, [esp + 0x32c]
push ecx
push edx
call fcn.005643e0
push 0
lea eax, [esp + 0x234]
push 0
lea ecx, [esp + 0x440]
push eax
lea edx, [esp + 0x138]
push ecx
push edx
call fcn.00564590
add esp, 0x2c
lea eax, [esp + 0x114]
lea ecx, [esp + 0x218]
push eax
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x114]
push 0x5c
push edx
call fcn.00564320
test eax, eax
je 0x56554d
mov byte [eax], 0
lea eax, [esp + 0x114]
push eax
call esi
cmp eax, 0xffffffff
je 0x565519
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
jmp 0x56555a
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push 0x600360
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x218]
lea ecx, [esp + 0x114]
push eax
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x10]
push edx
call ebx
mov esi, eax
lea eax, [esp + 0x114]
push eax
call ebx
cmp esi, eax
jge 0x56562d
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
lea edi, [esp + eax + 0x10]
push edx
call ebx
lea esi, [esp + eax + 0x114]
mov al, byte [esp + eax + 0x114]
test al, al
je 0x5655ee
cmp al, 0x5c
je 0x5655ee
mov byte [edi], al
mov al, byte [esi]
push eax
inc edi
call ebp
test eax, eax
je 0x5655df
mov cl, byte [esi + 1]
mov byte [edi], cl
inc edi
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x5655c9
lea edx, [esp + 0x10]
push 0
push edx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x56563a
lea eax, [esp + 0x10]
push 0x600360
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x114]
mov esi, eax
push edx
call ebx
cmp esi, eax
jl 0x5655a5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x514
ret
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x514
ret
Function at 0x567310
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
cmp dword [esi + 0x96], 0xffffffff
jne 0x56739b
mov edi, dword [esp + 0x24]
push 0x10
push edi
push 0
call fcn.00563770
add esp, 0x10
test eax, eax
je 0x56734d
mov eax, dword [esi + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
add eax, 0x13
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0xc], 0x8074b50
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push ecx
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x567390
cmp dword [esp + 0x24], 0x10
je 0x567401
mov eax, 0xa
pop edi
pop esi
add esp, 0x10
ret
call fcn.00563f00
add esp, 4
cmp eax, 0x10
jge 0x5673ba
mov ecx, dword [esp + 0x20]
push esi
push ecx
call fcn.00563f40
add esp, 8
test eax, eax
jne 0x567395
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0xc], 0x8074b50
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x96]
push eax
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x567390
cmp dword [esp + 0x24], 0x10
jne 0x567390
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x567410
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esp + 8], 0x8074b50
mov eax, dword [esi + 0x96]
push esi
cmp eax, 0xffffffff
jne 0x56747e
mov edi, dword [esp + 0x14]
push 4
push edi
push 0
call fcn.00563770
add esp, 0x10
test eax, eax
je 0x567453
mov eax, dword [esi + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
add eax, 0x13
pop ecx
ret
mov edx, dword [edi]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x10]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x567475
cmp dword [esp + 0x14], 4
je 0x5674c3
mov eax, 0xa
pop edi
pop esi
pop ecx
ret
call fcn.00563f00
add esp, 4
cmp eax, 4
jge 0x56749d
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.00563f40
add esp, 8
test eax, eax
jne 0x56747a
mov eax, dword [esi + 0x96]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x567475
cmp dword [esp + 0x14], 4
jne 0x567475
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x5678d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x96]
push ebp
lea esi, [edi + 0x16]
cmp eax, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x5679e3
mov eax, dword [esp + 0x30]
push esi
push eax
push 0
call fcn.00563770
add esp, 0x10
test eax, eax
je 0x56791d
mov eax, dword [ebp + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
pop ecx
ret
lea ecx, [esi + 1]
push ecx
call fcn.005738e8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x567acc
mov eax, dword [esp + 0x18]
mov dword [ebx], 0x6054b50
test byte [ebp + 0xdf1], 0x80
je 0x567969
mov dx, word [ebp + 0xdf2]
mov word [ebx + 4], dx
mov cx, word [ebp + 0xdf4]
mov word [ebx + 6], cx
mov dx, word [ebp + 0xdfa]
mov word [ebx + 8], dx
jmp 0x567976
lea ecx, [ebx + 4]
mov dword [ecx], 0
mov word [ebx + 8], ax
mov edx, dword [esp + 0x1c]
mov word [ebx + 0xa], ax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
test edi, edi
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], di
je 0x5679ab
mov esi, dword [esp + 0x28]
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 0x16]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push 0
push eax
mov edx, dword [ecx]
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5679cf
cmp dword [esp + 0x24], esi
je 0x567abb
push ebx
call fcn.005737ff
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.00563f00
add esp, 4
cmp eax, esi
jge 0x567a05
mov eax, dword [esp + 0x2c]
push ebp
push eax
call fcn.00563f40
add esp, 8
test eax, eax
jne 0x567ad1
lea ecx, [esi + 1]
push ecx
call fcn.005738e8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x567acc
mov eax, dword [esp + 0x18]
mov dword [ebx], 0x6054b50
test byte [ebp + 0xdf1], 0x80
je 0x567a51
mov dx, word [ebp + 0xdf2]
mov word [ebx + 4], dx
mov cx, word [ebp + 0xdf4]
mov word [ebx + 6], cx
mov dx, word [ebp + 0xdfa]
mov word [ebx + 8], dx
jmp 0x567a5e
lea ecx, [ebx + 4]
mov dword [ecx], 0
mov word [ebx + 8], ax
mov edx, dword [esp + 0x1c]
mov word [ebx + 0xa], ax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
test edi, edi
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], di
je 0x567a93
mov esi, dword [esp + 0x28]
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 0x16]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x96]
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5679cf
cmp dword [esp + 0x24], esi
jne 0x5679cf
push ebx
call fcn.005737ff
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x567b00
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x10], 0
mov esi, dword [edi + 0xdbc]
test esi, esi
je 0x567cbc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp word [esi + 0x4a], 0
jne 0x567b41
cmp word [esi + 0x4c], 0
je 0x567bbb
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x46]
mov word [esi + 0x4a], 1
cmp byte [eax + ecx - 1], 0x2f
je 0x567bb7
mov edx, dword [esi + 0x36]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
call fcn.0055ed20
add esp, 4
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [edi + 0xd9c]
test eax, eax
jne 0x567bbb
mov eax, dword [esi + 0x36]
push eax
call fcn.00567ae0
mov ecx, dword [esi + 0x46]
push ecx
call fcn.00567ae0
mov eax, dword [esi + 0x46]
add esp, 8
cmp byte [eax], 0
je 0x567ba6
push 0x601cd0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esi + 0x46]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [esi + 0x18], eax
jbe 0x567bbb
inc dword [esp + 0x10]
mov esi, dword [esi + 0x4e]
test esi, esi
jne 0x567b33
mov eax, dword [esp + 0x10]
test eax, eax
je 0x567cbc
shl eax, 2
push eax
call fcn.005738e8
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x567bf8
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x108
ret
mov esi, dword [edi + 0xdbc]
xor ebx, ebx
test esi, esi
je 0x567c41
mov edi, ebp
cmp word [esi + 0x4a], 0
je 0x567c3a
mov ecx, dword [esi + 0x18]
test ecx, ecx
jbe 0x567c3a
mov eax, dword [esi + 0x46]
cmp byte [ecx + eax - 1], 0x2f
jne 0x567c3a
test ebx, ebx
je 0x567c34
mov ecx, dword [edi - 4]
mov edx, dword [ecx + 0x46]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x567c3a
mov dword [edi], esi
inc ebx
add edi, 4
mov esi, dword [esi + 0x4e]
test esi, esi
jne 0x567c06
push 0x565780
push 4
push ebx
push ebp
call fcn.005765bf
add esp, 0x10
xor ebp, ebp
test ebx, ebx
jbe 0x567caf
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 0x36]
cmp byte [esi], 0
je 0x567ca7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x2f
jne 0x567c80
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi - 1], 0
test ebp, ebp
je 0x567c9b
mov ecx, dword [edi - 4]
mov eax, dword [edi]
mov edx, dword [ecx + 0x46]
mov ecx, dword [eax + 0x46]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x567ca7
mov edx, dword [edi]
mov eax, dword [edx + 0x36]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
inc ebp
add edi, 4
cmp ebp, ebx
jb 0x567c5c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005737ff
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
Function at 0x567cf0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov edx, dword [ecx + 0x3e]
mov eax, edx
xor eax, esi
and eax, 0xff
shr edx, 8
mov eax, dword [eax*4 + 0x6266c0]
xor eax, edx
mov edx, dword [ecx + 0x42]
mov dword [ecx + 0x3e], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 0x46]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 0x42], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x6266c0]
xor eax, edx
mov dword [ecx + 0x46], eax
ret
Function at 0x568860
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp eax, 1
push edi
mov ebx, eax
jge 0x568874
mov ebx, 1
cmp eax, 9
jle 0x56887e
mov ebx, 9
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esi + 0x56]
mov dword [esi + 0x5e], ebp
cmp eax, ebp
jne 0x56889c
mov dword [esi + 0x5e], 1
mov dword [esi + 0x56], 0x10000
cmp dword [esi + 0x4a], ebp
jne 0x5688d1
push 2
push 0x8000
call fcn.00577f75
add esp, 8
cmp eax, ebp
mov dword [esi + 0x4a], eax
jne 0x5688d1
push esi
push ebp
push 0x17c
call fcn.00564160
add esp, 8
push eax
push 4
call fcn.0055f810
add esp, 0xc
cmp dword [esi + 0x4e], ebp
jne 0x56891c
push 2
push 0x8000
call fcn.00577f75
push 2
push 0x4000
mov dword [esi + 0x4e], eax
call fcn.00577f75
mov ecx, dword [esi + 0x4e]
add esp, 0x10
cmp ecx, ebp
mov dword [esi + 0x52], eax
je 0x568902
cmp eax, ebp
jne 0x56891c
push esi
push ebp
push 0x186
call fcn.00564160
add esp, 8
push eax
push 4
call fcn.0055f810
add esp, 0xc
mov eax, dword [esi + 0x52]
mov ecx, 0x1fff
xor edx, edx
mov word [eax + 0x7ffe], bp
mov edi, dword [esi + 0x52]
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
stosw word es:[edi], ax
mov cx, word [ebx*8 + 0x62641a]
xor eax, eax
mov dword [esi + 0x7e], ecx
mov dx, word [ebx*8 + 0x626418]
mov dword [esi + 0x82], edx
mov ax, word [ebx*8 + 0x62641c]
xor ecx, ecx
mov dword [esi + 0x86], eax
mov cx, word [ebx*8 + 0x62641e]
cmp ebx, 1
mov dword [esi + 0x7a], ecx
jne 0x56897c
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x568988
cmp ebx, 9
jne 0x568988
mov eax, dword [esp + 0x18]
or byte [eax], 2
mov edx, dword [esi + 0x4a]
push esi
push 0x8000
push edx
mov dword [esi + 0x6a], ebp
mov dword [esi + 0x5a], ebp
call dword [esi + 0x3f3a]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x76], eax
jne 0x5689b7
mov dword [esi + 0x72], 1
mov dword [esi + 0x76], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, 0x106
mov dword [esi + 0x72], ebp
cmp eax, edi
jae 0x5689d8
cmp dword [esi + 0x72], ebp
jne 0x5689d8
push esi
call fcn.00568bb0
mov eax, dword [esi + 0x76]
add esp, 4
cmp eax, edi
jb 0x5689c3
mov ecx, dword [esi + 0x4a]
mov dword [esi + 0x62], ebp
xor eax, eax
mov edi, dword [esi + 0x62]
xor edx, edx
mov dl, byte [ecx + eax]
and edi, 0x1ff
and edx, 0x3fff
shl edi, 5
xor edx, edi
inc eax
cmp eax, 2
mov dword [esi + 0x62], edx
jb 0x5689e0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x573a22
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x573a42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005787f7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x573a65
test byte [esp + 8], 2
je 0x573a65
call fcn.0057886a
mov dword [eax], 0xd
call fcn.00578873
mov dword [eax], 5
jmp 0x573a3e
xor eax, eax
ret

Function at 0x582830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x62bef8
cmp edx, dword [eax]
je 0x582852
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x582843
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x62bef8]
jne 0x582980
mov eax, dword [0x666a8c]
cmp eax, 1
je 0x58295a
test eax, eax
jne 0x582883
cmp dword [0x628f64], 1
je 0x58295a
cmp edx, 0xfc
je 0x582980
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5828ba
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005772e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00576df0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5828fd
lea eax, [ebp - 0x1a4]
push eax
call fcn.00576df0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6137b4
push edi
call fcn.00575d80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005772e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005772f0
lea eax, [ebp - 0xa0]
push 0x5df920
push eax
call fcn.005772f0
push dword [esi + 0x62befc]
lea eax, [ebp - 0xa0]
push eax
call fcn.005772f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00586750
add esp, 0x2c
pop edi
jmp 0x582980
lea eax, [ebp + 8]
lea esi, [esi + 0x62befc]
push 0
push eax
push dword [esi]
call fcn.00576df0
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]
pop esi
leave
ret
Function at 0x58b3f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.005747d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x58b4bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x58b4bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x58b46e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x58b479
or bh, 8
and edi, 0x8000000
je 0x58b494
mov eax, dword [0x679c9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x58b4bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret