joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454777
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
lea eax, [esp + 0x1d]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x24], 0
call fcn.004b7880
add esp, 0xc
call fcn.004a6bcb
cmp esi, ebx
mov dword [esp + 0x14], eax
je 0x4547ba
mov dword [esi], ebx
push ebx
call fcn.0045412c
mov edi, eax
cmp edi, ebx
pop ecx
je 0x4548a7
mov ecx, edi
mov dword [esp + 0xc], ebx
call fcn.0045440b
push eax
push str.SELECT_TENDER_TYPE_ACCEPTED_FROM_TENDER_TYPE_PROFILE_WHERE_LOC_d
push edi
call fcn.00453375
add esp, 0xc
test eax, eax
je 0x45488d
push 1
push 9
push 0x3f
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00453475
jmp 0x454836
cmp ebx, 0xde
jge 0x45483d
lea esi, [esp + 0x18]
call fcn.004817d6
test eax, eax
je 0x454820
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
or dword [esp + 0xc], eax
push 1
push 9
push 0x3f
lea eax, [esp + 0x24]
push eax
push edi
inc ebx
call fcn.00453475
mov esi, dword [esp + 0x24]
add esp, 0x14
test eax, eax
jne 0x454800
mov ebx, dword [esp + 0xc]
push edi
call fcn.00452f92
test esi, esi
pop ecx
je 0x45484e
mov dword [esi], ebx
call fcn.004a6bcb
sub eax, dword [esp + 0x14]
push eax
push ebx
push 0xc
pop eax
call fcn.00440f7f
pop ecx
push eax
push str.:0:TAMSii_IsTenderTypesEnabled___has_determined__s_in__ums
call fcn.0041936e
add esp, 0xc
test bl, 1
je 0x45489a
test bl, 2
je 0x45489a
test bl, 8
je 0x454889
test bl, 0x10
je 0x454889
test bl, 4
jne 0x4548a7
xor eax, eax
jmp 0x4548aa
push str.:7:TAMSii_IsTenderTypesEnabled___FAILED:_ExecuteODBCFormat___FAILED.
call fcn.00418e96
pop ecx
jmp 0x454841
push ebx
push str.:7:TAMSii_IsTenderTypesEnabled___FAILED:_dwTenderTypesEnabled___d.
call fcn.00418e96
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret
Function at 0x45a2f2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x45a3af
cmp dword [edi + 4], ebx
jle 0x45a3af
call fcn.00471551
cmp dword [edi + 4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x45a367
lea esi, [edi + 0x40]
movsx ebx, word [esi]
mov eax, dword [ebp - 8]
call fcn.004719b9
test eax, eax
jne 0x45a33f
movsx eax, word [esi]
push eax
mov eax, dword [ebp - 8]
call fcn.0047163a
pop ecx
cmp word [esi + 6], 0
jle 0x45a354
movsx ebx, word [esi]
mov eax, dword [ebp - 8]
push 1
call fcn.00471a4e
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 0x90
cmp eax, dword [edi + 4]
jl 0x45a323
xor ebx, ebx
cmp dword [edi + 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
jle 0x45a3a2
lea esi, [edi + 0x63]
jmp 0x45a379
xor ebx, ebx
mov eax, dword [ebp - 8]
mov byte [esi], bl
movsx ebx, word [esi - 0x23]
call fcn.00471bce
test eax, eax
je 0x45a391
inc dword [ebp - 0xc]
mov byte [esi], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 0x90
cmp eax, dword [edi + 4]
jl 0x45a377
mov edi, dword [ebp - 8]
call fcn.004715f4
mov eax, dword [ebp - 0xc]
jmp 0x45a3b2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460b5a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x460b77
cmp dword [ebp + 0xc], 0
je 0x460b77
cmp dword [ebp + 0xc], 0xffffffff
je 0x460b77
call fcn.00461344
mov dword [ebp + 8], eax
push ebx
push esi
mov esi, 0x6335a0
push edi
mov edx, esi
call fcn.0047ebaf
test eax, eax
mov edi, 0x104
je 0x460bd8
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push esi
push str.APPDATA
call ebx
test eax, eax
jne 0x460bd1
push edi
push esi
push str.SystemDrive
call ebx
test eax, eax
jne 0x460bd8
push str._GetLastError_
push str.:5:GetSystemDRIVE___EAP:_GetEnvironmentVariable__SystemDrive___FAILED:__s
call fcn.0041936e
push 0x508b94
mov ecx, edi
mov eax, esi
call fcn.0047ebe1
add esp, 0xc
jmp 0x460bd8
mov byte [0x6335a2], 0
push esi
mov esi, 0x6336a8
mov ecx, edi
mov eax, esi
call fcn.0047ebe1
mov ebx, dword [ebp + 8]
test ebx, ebx
pop ecx
jne 0x460c09
cmp dword [ebp + 0xc], ebx
je 0x460c05
cmp dword [ebp + 0xc], 0xffffffff
je 0x460c05
push str.:8:GetSystemDRIVE___was_called_with_an_INVALID_pszAppend___
call fcn.00418e96
pop ecx
mov eax, esi
jmp 0x460c56
push esi
push ebx
call fcn.004b6c20
push esi
call fcn.004b68f0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x460c54
cmp dword [ebp + 0xc], 0xffffffff
je 0x460c54
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, ebx
push edi
push eax
call fcn.004b87ae
add esp, 0x10
test eax, eax
jge 0x460c54
push dword [ebp + 0xc]
push str.:8:GetSystemDRIVE___EAP:_MAX_PATH_has_been_exceeded:___s_
call fcn.00418e96
pop ecx
pop ecx
mov byte [ebx + 0x103], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x460e8a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
jne 0x460ec5
cmp dword [ebp + 0xc], ebx
je 0x460ec5
cmp dword [ebp + 0xc], 0xffffffff
je 0x460ec5
call fcn.00461344
mov dword [ebp - 0x10c], eax
mov eax, fcn.00460d6c
cmp eax, fcn.00460e8a
mov esi, 0x633cf8
mov edi, 0x104
mov edx, esi
je 0x460f22
call fcn.0047ebaf
test eax, eax
jne 0x460ef2
cmp dword [0x633594], ebx
je 0x460fdd
push edi
push ebx
push esi
call fcn.004b7880
push ebx
push ebx
mov dword [0x633594], ebx
call fcn.00460d6c
push eax
push str._sPAULA_
push edi
push esi
call fcn.00480225
push esi
call fcn.004b68f0
add esp, 0x28
jmp 0x460fd8
call fcn.0047ebaf
test eax, eax
jne 0x460f37
cmp dword [0x633594], ebx
je 0x460fdd
push edi
push ebx
push esi
call fcn.004b7880
add esp, 0xc
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [0x633594], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.APPDATA
call ebx
test eax, eax
jne 0x460fab
push edi
lea eax, [ebp - 0x108]
push eax
push str.USERPROFILE
call ebx
test eax, eax
jne 0x460fab
push edi
lea eax, [ebp - 0x108]
push eax
push str.ProgramData
call ebx
test eax, eax
jne 0x460fab
push str._GetLastError_
push str.:5:GetPaulaInstallationDir___EAP:_GetEnvironmentVariable__ProgramData___FAILED:__s
call fcn.0041936e
push str.C:ProgramData
mov ecx, edi
lea eax, [ebp - 0x108]
call fcn.0047ebe1
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x4e1ce8
push eax
call fcn.004b6c30
lea eax, [ebp - 0x108]
push eax
push str._sPAULA_
push edi
push esi
call fcn.00480225
push esi
call fcn.004b68f0
add esp, 0x1c
mov dword [0x6336a4], eax
mov ebx, 0x633e00
push esi
mov ecx, edi
mov eax, ebx
call fcn.0047ebe1
mov ecx, dword [0x6336a4]
push esi
mov esi, 0x633f08
mov eax, esi
call fcn.0047ebe1
cmp dword [ebp - 0x10c], 0
pop ecx
pop ecx
jne 0x461029
cmp dword [ebp + 0xc], 0xffffffff
je 0x46109c
cmp dword [ebp + 0xc], 0
je 0x461025
push str.:8:GetPaulaInstallationDir___was_called_with_an_INVALID_pszAppend___
call fcn.00418e96
pop ecx
mov eax, ebx
jmp 0x46109c
cmp dword [ebp + 0xc], 0xffffffff
jne 0x461046
push esi
push dword [ebp - 0x10c]
call fcn.004b6c20
push esi
call fcn.004b68f0
add esp, 0xc
jmp 0x461096
push ebx
push dword [ebp - 0x10c]
call fcn.004b6c20
push ebx
call fcn.004b68f0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x461096
mov esi, dword [ebp - 0x10c]
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, esi
push edi
push eax
call fcn.004b87ae
add esp, 0x10
test eax, eax
jge 0x461096
push dword [ebp + 0xc]
push str.:8:GetPaulaInstallationDir___EAP:_MAX_PATH_has_been_exceeded:___s_
call fcn.00418e96
pop ecx
pop ecx
mov byte [esi + 0x103], 0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret
Function at 0x46b323
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
xor edi, edi
push 0x3e
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.004b7880
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.0047ebaf
test eax, eax
jne 0x46b4cd
mov ecx, dword [ebp + 8]
push 0x15b9
push str..Printer.c
mov edx, 0x4d57c8
call fcn.0041e477
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
mov dword [ebp - 8], ebx
jne 0x46b388
push dword [ebp + 8]
push str.PrinterSaveConfig___FAILED:_Could_not_open_the_given_file___s__for_writing.
call fcn.0041936e
pop ecx
pop ecx
jmp 0x46b4cd
push 0x15c0
push esi
call fcn.0046e529
test eax, eax
pop ecx
pop ecx
je 0x46b4c6
mov eax, esi
call fcn.0046e55e
test eax, eax
je 0x46b4c6
push 0x42
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004b7150
add esp, 0xc
push ebx
push 0x42
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.004b6868
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
add esp, 0x10
cmp dword [ebp - 0x50], edi
je 0x46b445
push dword [esi + 0xc]
call ebx
cmp eax, edi
push dword [esi + 0xc]
mov dword [ebp - 0xc], eax
je 0x46b436
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x46b41b
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.004b6868
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push dword [ebp - 0xc]
call fcn.004b6868
add esp, 0x20
jmp 0x46b42b
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevMode:__GetLastError_
call fcn.0041936e
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x46b445
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevMode_during_save___ld_:__GetLastError_
call fcn.0041936e
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x4c], edi
je 0x46b4b2
push dword [esi + 0x10]
call ebx
push dword [esi + 0x10]
mov ebx, eax
cmp ebx, edi
je 0x46b4a3
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x46b488
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.004b6868
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push ebx
call fcn.004b6868
add esp, 0x20
jmp 0x46b498
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevNames:__GetLastError_
call fcn.0041936e
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x46b4b2
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevNames_during_save___ld_:__GetLastError_
call fcn.0041936e
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
mov eax, esi
call fcn.0046e594
mov ecx, dword [ebp - 8]
call fcn.0041e8bf
xor eax, eax
inc eax
jmp 0x46b4cf
mov ecx, ebx
call fcn.0041e8bf
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x4720fa
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
test esi, esi
push edi
mov ebx, eax
jge 0x47210c
call fcn.0040d4f6
mov esi, eax
test ebx, ebx
jge 0x472117
call fcn.0040d45e
mov ebx, eax
test esi, esi
jle 0x47215e
test ebx, ebx
jle 0x47215e
push 1
push 0x1f8
call fcn.004b66ca
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x47215e
mov dword [edi], esi
imul esi, ebx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + esi + 0x14]
push eax
push 4
mov dword [edi + 4], ebx
call fcn.004b66ca
test eax, eax
pop ecx
pop ecx
mov dword [edi + 0x14], eax
jne 0x472164
push edi
call fcn.004b651e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
test esi, esi
push 7
pop ebx
jle 0x472181
mov ecx, dword [edi + 0x14]
mov byte [ecx + eax*4], 0x20
mov ecx, dword [edi + 0x14]
mov word [ecx + eax*4 + 2], bx
inc eax
cmp eax, esi
jl 0x47216d
mov eax, dword [0x637ff4]
test eax, eax
jne 0x4721b5
call fcn.00471551
test eax, eax
mov dword [0x637ff4], eax
jne 0x4721b5
push dword [edi + 0x14]
call fcn.004b651e
push edi
call fcn.004b651e
push str.:7:CreateScreenBuffer___FAILED:_CreatePtrList___FAILED____
call fcn.00418e96
add esp, 0xc
jmp 0x47215e
mov ecx, dword [edi + 0x14]
lea ecx, [ecx + esi*4 + 4]
push 5
mov dword [edi + 0x24], ecx
lea ecx, [esi + 2]
pop edx
cmp ecx, edx
mov dword [edi + 0x20], ecx
jge 0x4721cf
mov dword [edi + 0x20], edx
push edi
mov dword [edi + 0x10], ebx
mov byte [edi + 0x1c], 9
mov byte [edi + 0x1d], bl
call fcn.0047163a
lea ebx, [edi + 0x38]
mov dword [esp], str..ScreenBuffer.c
push ebx
call fcn.00420a71
test eax, eax
pop ecx
pop ecx
jne 0x472200
push str.:5:CreateScreenBuffer___EAP:_InitializeLock___FAILED.
call fcn.00418e96
pop ecx
mov esi, str.A_ScreenBuffer_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.00420d70
mov eax, 0x7d0
mov ecx, ebx
call fcn.00420dad
mov eax, edi
call fcn.00474842
mov eax, edi
jmp 0x472160
Function at 0x4735f7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x20
pop eax
jmp 0x473607
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x693
mov ebx, eax
call fcn.004747ca
test eax, eax
je 0x4736b7
mov eax, esi
call fcn.0047482c
test eax, eax
je 0x4736b7
test ebx, ebx
jge 0x473638
mov ebx, 0xff
mov eax, dword [esi]
imul eax, dword [esi + 4]
xor edi, edi
test eax, eax
jle 0x4736a3
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4]
cmp byte [eax], bl
jne 0x47365a
test word [eax + 2], 0x2000
jne 0x47365a
xor ecx, ecx
jmp 0x47365f
xor ecx, ecx
mov byte [eax], bl
inc ecx
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4 + 2]
movzx edx, word [eax]
xor edx, dword [esi + 0x10]
test dl, dl
je 0x473688
mov dl, byte [esi + 0x10]
and dx, 0xff
cmp ebx, 0xff
je 0x473685
or dx, 0x200
mov word [eax], dx
test ecx, ecx
je 0x473698
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4 + 2]
or word [eax], 0x2000
mov eax, dword [esi]
imul eax, dword [esi + 4]
inc edi
cmp edi, eax
jl 0x473644
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov eax, esi
call fcn.00474842
xor eax, eax
inc eax
jmp 0x4736b9
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x474856
Capabilities:
Write file on windows

Disassembly:
push 0x10
push 0x5350d8
call fcn.004bd78c
or dword [ebp - 0x1c], 0xffffffff
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x47491c
push 1
mov esi, 0xfffc
push esi
call fcn.004b66ca
mov edi, eax
push 1
push esi
call fcn.004b66ca
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffdc
push edi
call fcn.004b86df
add esp, 0x24
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea eax, [edi + ecx]
mov dl, byte [eax]
cmp dl, 0xd
je 0x474904
cmp dl, 0xa
je 0x474904
add ecx, esi
mov byte [ecx], 0x1c
mov byte [ecx + 1], 0x1d
mov byte [ecx + 2], 0x1e
mov byte [ecx + 3], 0x1f
add ecx, 4
push ecx
call fcn.00474ac1
pop ecx
push dword [ebp + 8]
push esi
call fcn.004b68f0
pop ecx
push eax
push 1
push esi
call fcn.004b6868
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, 4
jle 0x4748f5
sub dword [ebp - 0x1c], 4
push edi
call fcn.004b651e
push esi
call fcn.004b651e
pop ecx
jmp 0x47491b
mov byte [esi + ecx], dl
inc ecx
jmp 0x4748a6
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.004bd7d1
ret
Function at 0x476549
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x35]
mov ebx, ecx
mov esi, edx
push 0
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], esi
mov byte [esp + 0x3c], 0
call fcn.004b7880
and word [esp + 0x2c], 0
xor eax, eax
lea edi, [esp + 0x2e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
test ebx, ebx
stosw word es:[edi], ax
jne 0x4765ac
test esi, esi
jne 0x4765ac
xor eax, eax
inc eax
jmp 0x47670b
push str.S7.tim
lea edi, [esp + 0x34]
call fcn.00444791
test ebx, ebx
pop ecx
jne 0x4765cd
lea eax, [esp + 0x20]
mov dword [esp + 0x18], eax
xor edx, edx
mov ecx, eax
jmp 0x4765df
test esi, esi
jne 0x4765ec
lea eax, [esp + 0x20]
mov dword [esp + 0x10], eax
mov esi, ebx
mov edx, eax
xor ecx, ecx
lea edi, [esp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00476720
and dword [esp + 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x190
lea esi, [edi - 0x64]
push 0x669
push str..ServerPAULA.c
mov edx, 0x4d57c8
lea ecx, [esp + 0x38]
call fcn.0041e477
test eax, eax
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x476679
call fcn.004b7d0d
cdq
mov ecx, edi
idiv ecx
add edx, esi
js 0x476652
call fcn.004b7d0d
cdq
mov ecx, edi
idiv ecx
add edx, esi
cmp edx, 0x7fffffff
jge 0x476652
call fcn.004b7d0d
cdq
mov ecx, edi
idiv ecx
add edx, esi
push edx
jmp 0x476654
push 0xa
call ebx
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 3
jl 0x4765ff
lea eax, [esp + 0x30]
push eax
push str.:4:SetLastSA7TimeStamp___FAILED:_fopen___s___FAILED.
call fcn.00418e96
pop ecx
pop ecx
xor eax, eax
jmp 0x47670b
mov esi, dword [esp + 0x18]
xor ebx, ebx
inc ebx
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a5c6f
add esp, 0x14
test eax, eax
je 0x4766b0
mov esi, dword [esp + 0x10]
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a5c6f
add esp, 0x14
test eax, eax
jne 0x4766bb
push str.:5:SetLastSA7TimeStamp___is_saving_INVALID_time_stamps_provided_by_the_caller__
call fcn.0041936e
pop ecx
push dword [esp + 0x14]
mov esi, ebx
push ebx
push 0x10
push dword [esp + 0x24]
call fcn.004b6868
add esp, 0x10
cmp eax, ebx
jne 0x4766eb
push dword [esp + 0x14]
push ebx
push 0x10
push dword [esp + 0x1c]
call fcn.004b6868
add esp, 0x10
cmp eax, ebx
je 0x4766ed
xor esi, esi
mov ecx, dword [esp + 0x14]
call fcn.0041e8bf
test esi, esi
jne 0x476709
push str.:3:SetLastSA7TimeStamp___FAILED:_fwrite___FAILED.
call fcn.00418e96
jmp 0x476671
mov eax, ebx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret
Function at 0x476720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x2d]
mov esi, ecx
mov ebx, edx
push 0
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x34], 0
call fcn.004b7880
and word [esp + 0x24], 0
xor eax, eax
lea edi, [esp + 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push str.S7.tim
lea edi, [esp + 0x2c]
call fcn.00444791
test esi, esi
pop ecx
jne 0x47678e
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x47679a
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
and dword [esp + 0xc], 0
mov esi, 0x15e
lea ebx, [esi - 0x64]
push 0x6a6
push str..ServerPAULA.c
mov edx, 0x4d520c
lea ecx, [esp + 0x30]
call fcn.0041e477
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x47683c
lea edi, [esp + 0x28]
call fcn.0041c5ff
test eax, eax
je 0x476818
call fcn.004b7d0d
cdq
mov ecx, esi
idiv ecx
add edx, ebx
js 0x476805
call fcn.004b7d0d
cdq
mov ecx, esi
idiv ecx
add edx, ebx
cmp edx, 0x7fffffff
jge 0x476805
call fcn.004b7d0d
cdq
mov ecx, esi
idiv ecx
add edx, ebx
push edx
jmp 0x476807
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x4767a7
lea edi, [esp + 0x28]
call fcn.0041c5ff
test eax, eax
je 0x4768d7
mov eax, edi
push eax
push str.:4:GetLastSA7TimeStamp___FAILED:_fopen___s___FAILED.
call fcn.00418e96
pop ecx
jmp 0x4768d6
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
inc ebx
push ebx
push 0x10
push esi
mov dword [esp + 0x1c], ebx
call fcn.004b7b96
add esp, 0x10
cmp eax, ebx
jne 0x47686c
push edi
push ebx
push 0x10
push dword [esp + 0x1c]
call fcn.004b7b96
add esp, 0x10
cmp eax, ebx
je 0x476871
and dword [esp + 0xc], 0
mov ecx, edi
call fcn.0041e8bf
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a5c6f
add esp, 0x14
test eax, eax
je 0x4768cc
mov esi, dword [esp + 0x10]
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a5c6f
add esp, 0x14
test eax, eax
je 0x4768cc
cmp dword [esp + 0xc], 0
jne 0x4768c8
push 0
xor edx, edx
lea ecx, [esp + 0x2c]
call fcn.0041cc74
pop ecx
push eax
push str.:3:GetLastSA7TimeStamp___FAILED:_fread___FAILED:_File_size___u
jmp 0x476831
mov eax, ebx
jmp 0x4768d9
push str.:3:GetLastSA7TimeStamp___FAILED:_One_of_the_time_stamps_read_is_invalid.
call fcn.00418e96
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret
Function at 0x4768ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x10f]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x118], edi
mov byte [ebp - 0x110], 0
call fcn.004b7880
add esp, 0xc
cmp edi, ebx
jne 0x476935
xor eax, eax
jmp 0x476a63
mov esi, 0x188
push esi
push ebx
push edi
call fcn.004b7880
add esp, 0xc
push str.eod.tim
lea edi, [ebp - 0x110]
call fcn.00444791
mov dword [ebp - 0x114], ebx
pop ecx
mov ebx, 0xfa
push 0x6f3
push str..ServerPAULA.c
mov edx, 0x4d520c
lea ecx, [ebp - 0x110]
call fcn.0041e477
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x476a08
lea edi, [ebp - 0x110]
call fcn.0041c5ff
test eax, eax
je 0x4769e1
call fcn.004b7d0d
mov edi, 0x226
cdq
mov ecx, edi
idiv ecx
add edx, ebx
js 0x4769ca
call fcn.004b7d0d
cdq
mov ecx, edi
idiv ecx
add edx, ebx
cmp edx, 0x7fffffff
jge 0x4769ca
call fcn.004b7d0d
cdq
idiv edi
add edx, ebx
push edx
jmp 0x4769cc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 3
jl 0x476961
lea edi, [ebp - 0x110]
call fcn.0041c5ff
test eax, eax
je 0x47692e
mov eax, edi
push eax
push str.:4:LoadEODTimeStampDB___FAILED:_fopen___s___FAILED.
call fcn.00418e96
pop ecx
pop ecx
jmp 0x47692e
push edi
push 1
push esi
push dword [ebp - 0x118]
call fcn.004b7b96
add esp, 0x10
cmp eax, 1
mov ecx, edi
je 0x476a5b
call fcn.0041e8bf
push esi
push 0
xor edx, edx
lea ecx, [ebp - 0x110]
call fcn.0041cc74
pop ecx
push eax
push str.:6:LoadEODTimeStampDB___FAILED:_fread___FAILED:_File_size___u__s_b__u
call fcn.00418e96
add esp, 0xc
push esi
push 0
push dword [ebp - 0x118]
call fcn.004b7880
add esp, 0xc
jmp 0x47692e
call fcn.0041e8bf
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret