joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x428c56
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x428c45
jg 0x428bb0
test edx, edx
je 0x428c45
nop dword [eax]
call fcn.004209f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x428c04
jg 0x428bc7
test esi, esi
je 0x428c04
cmp ebx, eax
jg 0x428bd7
jl 0x428bd1
cmp edi, esi
jae 0x428bd7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004fd9e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x428c29
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x428c3f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x428bb0
jl 0x428c3f
test edi, edi
jne 0x428bb0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x428c78
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x428c7a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x428cf8
jg 0x428c8d
test esi, esi
je 0x428cf8
test eax, eax
jl 0x428cdc
jg 0x428c97
test ebx, ebx
je 0x428cdc
cmp edi, eax
jg 0x428ca7
jl 0x428ca1
cmp esi, ebx
jae 0x428ca7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004fd9e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x428cf8
jg 0x428cdf
test esi, esi
je 0x428cf8
jmp 0x428cdf
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x428cf8
push eax
push esi
push 1
push edx
call fcn.00505d91
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x428d42
jl 0x428d35
test ecx, ecx
jne 0x428d42
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x428e02
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00420a10
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x428dae
jg 0x428d6d
test esi, esi
je 0x428dae
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x428d85
mov eax, dword [esp + 0x10]
jl 0x428d7f
cmp eax, esi
jae 0x428d85
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004fd9e0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x428dcf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x428deb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x428d54
jl 0x428deb
test ecx, ecx
jne 0x428d54
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x428e41
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x428e41
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004fd9e0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x428eb0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x428e67
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x428e99
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0050248a
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x428ec4
cmp edi, eax
ja 0x428e75
test ecx, ecx
je 0x428eb0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0050248a
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x552064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x429250
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42928c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42928c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x429373
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4292b4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4292e7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00504eba
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x429373
cmp eax, 1
jle 0x429346
cmp eax, 3
jne 0x429373
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00504eba
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x429363
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00505d91
add esp, 0x10
cmp edi, eax
jne 0x429373
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x429277
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e66f2
mov esp, ebp
pop ebp
ret 4
Function at 0x429cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x552064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x429db2
cmp byte [esi + 0x3e], 0
je 0x429db2
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x429da0
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x429d68
sub eax, 1
je 0x429d6c
sub eax, 2
jne 0x429da0
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x429d89
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00505d91
add esp, 0x10
cmp edi, eax
jne 0x429da0
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004e66f2
mov esp, ebp
pop ebp
ret

Function at 0x429dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x552064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x429e8a
cmp byte [esi + 0x3d], 0
je 0x429e8a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x429e78
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x429e40
sub eax, 1
je 0x429e44
sub eax, 2
jne 0x429e78
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x429e61
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00505d91
add esp, 0x10
cmp edi, eax
jne 0x429e78
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
Function at 0x4374d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
mov edx, dword [ecx + 0xc]
push ebx
push esi
push edi
cmp edx, 1
jbe 0x4374ec
mov eax, dword [ecx + 0x10]
mov esi, dword [eax + 4]
jmp 0x4374f6
xor esi, esi
test edx, edx
je 0x4375af
mov eax, dword [ecx + 0x10]
cmp dword [eax], 0
je 0x437521
test esi, esi
je 0x4375af
mov eax, dword [0x5645d8]
mov edi, dword [0x5645d4]
sub eax, edi
sar eax, 2
cmp eax, esi
jbe 0x4375af
mov esi, dword [edi + esi*4]
test esi, esi
jle 0x4375af
cmp edx, 2
jbe 0x43753e
mov eax, dword [ecx + 0x10]
mov edi, dword [eax + 8]
cmp edx, 3
jbe 0x437540
mov eax, dword [eax + 0xc]
jmp 0x437542
xor edi, edi
xor eax, eax
test eax, eax
setne bh
test edi, edi
jne 0x4375b6
mov al, byte [0x56388c]
lea edx, [ebp - 4]
xor bl, bl
mov byte [ebp + 0xb], al
mov ecx, esi
mov dword [ebp - 4], edi
mov byte [0x56388c], bl
call fcn.0048faa0
mov edi, dword [ebp - 4]
test edi, edi
je 0x4375a3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x437588
test al, 0x10
jne 0x437588
mov ecx, edi
call fcn.0048f530
mov bl, 1
mov eax, dword [edi - 8]
add edi, 0xfffffff8
cmp eax, 0xffffffff
je 0x4375a3
dec eax
mov dword [edi], eax
test eax, eax
jg 0x4375a3
push edi
call fcn.00501c9e
add esp, 4
mov al, byte [ebp + 0xb]
mov byte [0x56388c], al
test bl, bl
jne 0x4375b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, bh
mov dword [0x5602ac], esi
call fcn.00468f90
int3
Function at 0x43f530
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
cmp eax, 1
jbe 0x43f548
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x43f559
xor edx, edx
test eax, eax
je 0x43f555
mov eax, dword [ecx + 0x10]
mov eax, dword [eax]
jmp 0x43f559
xor eax, eax
xor edx, edx
cmp dword [0x5606c4], eax
mov dword [0x5606c8], edx
setne cl
mov dword [0x5606c4], eax
pop ebp
jmp fcn.004840d0
Function at 0x440c20
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0xc], 0
jbe 0x440c39
mov eax, dword [edi + 0x10]
mov edx, dword [eax]
jmp 0x440c3b
xor edx, edx
cmp dword [0x5605e8], 0
mov dword [ebp - 8], edx
jne 0x440c4f
test edx, edx
je 0x440e63
mov eax, dword [0x5605e8]
xor ecx, ecx
add eax, 0xffffffff
cmovns ecx, eax
inc ecx
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
test eax, eax
jle 0x440e55
test ecx, ecx
je 0x440c7c
test edx, edx
jg 0x440e49
mov eax, edx
sub eax, 0
je 0x440ca1
mov edx, 1
mov ecx, edi
sub eax, 1
je 0x440c98
call fcn.004a24d0
mov ecx, eax
jmp 0x440cb6
call fcn.00456dc0
mov ecx, eax
jmp 0x440cb6
cmp ecx, dword [0x5605e8]
jb 0x440cad
xor esi, esi
jmp 0x440cbd
mov eax, dword [0x5605ec]
movzx ecx, word [eax + ecx*2]
call fcn.004800c0
mov esi, eax
mov edx, 2
mov ecx, edi
call fcn.00456dc0
mov edx, 3
mov ebx, eax
call fcn.00456dc0
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0045eda0
mov ecx, eax
mov eax, 0xae147ae1
imul ecx, dword [ebp - 0x14]
imul ecx
mov ecx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 4
add ebx, eax
call fcn.00456dc0
mov ecx, esi
mov edi, eax
call fcn.0045ee30
imul edi, eax
mov eax, 0xae147ae1
imul edi
mov edi, dword [ebp + 8]
mov ecx, edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 5
add ebx, eax
mov eax, 0
cmovns eax, ebx
mov dword [ebp - 4], eax
call fcn.00456dc0
test eax, eax
jle 0x440d78
imul edi, dword [0x563db0], 0x8088405
mov eax, dword [ebp - 0x14]
inc eax
cdq
mov ecx, eax
mov eax, edx
inc edi
mul edi
mov dword [0x563db0], edi
mov ebx, eax
mov eax, ecx
mul edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
add ebx, edx
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
add dword [ebp - 4], ebx
mov edx, 6
mov ecx, edi
call fcn.00456dc0
test eax, eax
je 0x440dcd
mov edx, 7
call fcn.00456dc0
mov edi, eax
test edi, edi
jle 0x440dca
mov ecx, dword [0x5645d8]
mov eax, dword [0x5645d4]
sub ecx, eax
sar ecx, 2
cmp ecx, edi
ja 0x440dbf
lea eax, [edi + 1]
mov ecx, 0x5645d4
push eax
call fcn.004519a0
mov eax, dword [0x5645d4]
mov ebx, dword [ebp - 4]
mov dword [eax + edi*4], ebx
mov edi, dword [ebp + 8]
jmp 0x440dd0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 4]
cmp dword [esi + 0x10], 0
je 0x440e2b
mov eax, dword [esi]
push esi
mov eax, dword [eax]
call eax
mov ecx, dword [esi + 0x10]
add esp, 4
sub ecx, ebx
js 0x440dfa
cmp ecx, eax
cmovle eax, ecx
mov dword [esi + 0x10], eax
test eax, eax
je 0x440e01
mov eax, 0x83
jmp 0x440e12
mov dword [esi + 0x10], 0
mov edx, 1
mov ecx, esi
call fcn.0045f170
mov eax, 0x7f
push 0
push 0
mov edx, ebx
mov dword [esi + 0x68], eax
mov ecx, esi
call fcn.0045e510
add esp, 8
cmp dword [esi + 0x10], 0
jg 0x440e40
cmp byte [0x5645b0], 2
jne 0x440e40
mov edx, 1
mov ecx, esi
call fcn.004b2810
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jl 0x440c70
cmp byte [0x5645b0], 0
jne 0x440e63
call fcn.004b5320
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4573d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.0045e380
mov edi, dword [esi + 0xc8]
mov dword [esi + 0xc4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [edi + 0x58], 0
jne 0x45741a
mov eax, dword [edi + 4]
test eax, eax
je 0x45741a
push eax
call fcn.00501c9e
add esp, 4
mov dword [edi + 4], 0
cmp byte [edi + 0x57], 0
jne 0x457435
mov eax, dword [edi]
test eax, eax
je 0x457435
push eax
call fcn.00501c9e
add esp, 4
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov edi, dword [esi + 0xcc]
cmp dword [edi + 0x58], 0
jne 0x457466
mov eax, dword [edi + 4]
test eax, eax
je 0x457466
push eax
call fcn.00501c9e
add esp, 4
mov dword [edi + 4], 0
cmp byte [edi + 0x57], 0
jne 0x457481
mov eax, dword [edi]
test eax, eax
je 0x457481
push eax
call fcn.00501c9e
add esp, 4
mov dword [edi], 0
imul eax, dword [0x563db0], 0x8088405
mov ecx, 0x40
mov dword [edi + 8], 0
xorps xmm0, xmm0
mov dword [edi + 0xc], 0
pop edi
mov dword [esi + 0x70], 0x64
inc eax
mov dword [esi + 0x74], 0x64
mov dword [0x563db0], eax
mul ecx
movsd qword [esi + 0x7c], xmm0
mov dword [esi + 0x78], 0x64
mov dword [esi + 0x84], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x462920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov eax, ecx
mov dword [ebp - 4], eax
push esi
push edi
test ebx, ebx
je 0x462a53
mov ecx, dword [0x563dac]
mov edx, eax
push str..bmp
push ebx
call fcn.00497ad0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
add esp, 8
test esi, esi
je 0x4629b8
push esi
call edi
cmp eax, 0xffffffff
je 0x462964
test al, 0x10
je 0x462992
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x676e702e
call edi
cmp eax, 0xffffffff
je 0x46297b
test al, 0x10
je 0x462992
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x7a79782e
call edi
cmp eax, 0xffffffff
je 0x46299b
test al, 0x10
jne 0x46299b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi - 8]
add esi, 0xfffffff8
cmp eax, 0xffffffff
je 0x4629c6
dec eax
mov dword [esi], eax
test eax, eax
jg 0x4629c6
push esi
call fcn.00501c9e
add esp, 4
jmp 0x4629c6
mov dword [esi - 4], 0x676e702e
mov dword [esi - 4], 0x7a79782e
mov edx, dword [ebp - 4]
mov ecx, dword [0x55f1c4]
push str..bmp
push ebx
call fcn.00497ad0
mov esi, eax
add esp, 8
test esi, esi
je 0x462a45
push esi
call edi
cmp eax, 0xffffffff
je 0x4629ef
test al, 0x10
je 0x462992
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x676e702e
call edi
cmp eax, 0xffffffff
je 0x462a06
test al, 0x10
je 0x462992
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x7a79782e
call edi
cmp eax, 0xffffffff
je 0x462a21
test al, 0x10
je 0x462992
mov eax, dword [esi - 8]
add esi, 0xfffffff8
cmp eax, 0xffffffff
je 0x462a53
dec eax
mov dword [esi], eax
test eax, eax
jg 0x462a53
push esi
call fcn.00501c9e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi - 4], 0x676e702e
mov dword [esi - 4], 0x7a79782e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52509d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x552064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x462ab4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x563dac]
mov edx, eax
push str..bmp
push ebx
call fcn.00497ad0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
add esp, 8
test esi, esi
je 0x462b39
push esi
call edi
cmp eax, 0xffffffff
je 0x462ae6
test al, 0x10
je 0x462b9e
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x676e702e
call edi
cmp eax, 0xffffffff
je 0x462b01
test al, 0x10
je 0x462b9e
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x7a79782e
call edi
cmp eax, 0xffffffff
je 0x462b1c
test al, 0x10
je 0x462b9e
mov eax, dword [esi - 8]
add esi, 0xfffffff8
cmp eax, 0xffffffff
je 0x462b47
dec eax
mov dword [esi], eax
test eax, eax
jg 0x462b47
push esi
call fcn.00501c9e
add esp, 4
jmp 0x462b47
mov dword [esi - 4], 0x676e702e
mov dword [esi - 4], 0x7a79782e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [0x55f1c4]
push str..bmp
push ebx
call fcn.00497ad0
mov esi, eax
add esp, 8
test esi, esi
je 0x462ba5
push esi
call edi
cmp eax, 0xffffffff
je 0x462b70
test al, 0x10
je 0x462b9e
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x676e702e
call edi
cmp eax, 0xffffffff
je 0x462b87
test al, 0x10
je 0x462b9e
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x7a79782e
call edi
cmp eax, 0xffffffff
je 0x462bb3
test al, 0x10
jne 0x462bb3
mov eax, esi
jmp 0x462a98
mov dword [esi - 4], 0x676e702e
mov dword [esi - 4], 0x7a79782e
push str.Could_not_open_file:__r_n
lea ecx, [ebp - 0x28]
call fcn.0041c030
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004299c0
lea ecx, [ebp - 0x28]
call fcn.0041bfd0
mov ecx, eax
call fcn.00469b60
int3
Function at 0x462be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov eax, ecx
mov dword [ebp - 4], eax
push esi
push edi
test ebx, ebx
je 0x462d53
mov ecx, dword [0x563dac]
mov edx, eax
push str..mid
push ebx
call fcn.00497ad0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
add esp, 8
test esi, esi
je 0x462c8f
push esi
call edi
cmp eax, 0xffffffff
je 0x462c24
test al, 0x10
je 0x462c69
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x7661772e
call edi
cmp eax, 0xffffffff
je 0x462c3b
test al, 0x10
je 0x462c69
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x67676f2e
call edi
cmp eax, 0xffffffff
je 0x462c52
test al, 0x10
je 0x462c69
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x33706d2e
call edi
cmp eax, 0xffffffff
je 0x462c72
test al, 0x10
jne 0x462c72
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi - 8]
add esi, 0xfffffff8
cmp eax, 0xffffffff
je 0x462ca4
dec eax
mov dword [esi], eax
test eax, eax
jg 0x462ca4
push esi
call fcn.00501c9e
add esp, 4
jmp 0x462ca4
mov dword [esi - 4], 0x7661772e
mov dword [esi - 4], 0x67676f2e
mov dword [esi - 4], 0x33706d2e
mov edx, dword [ebp - 4]
mov ecx, dword [0x55f1c4]
push str..mid
push ebx
call fcn.00497ad0
mov esi, eax
add esp, 8
test esi, esi
je 0x462d3e
push esi
call edi
cmp eax, 0xffffffff
je 0x462ccd
test al, 0x10
je 0x462c69
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x7661772e
call edi
cmp eax, 0xffffffff
je 0x462ce4
test al, 0x10
je 0x462c69
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x67676f2e
call edi
cmp eax, 0xffffffff
je 0x462cff
test al, 0x10
je 0x462c69
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x33706d2e
call edi
cmp eax, 0xffffffff
je 0x462d1a
test al, 0x10
je 0x462c69
mov eax, dword [esi - 8]
add esi, 0xfffffff8
cmp eax, 0xffffffff
je 0x462d53
dec eax
mov dword [esi], eax
test eax, eax
jg 0x462d53
push esi
call fcn.00501c9e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi - 4], 0x7661772e
mov dword [esi - 4], 0x67676f2e
mov dword [esi - 4], 0x33706d2e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret