joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ba6f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x108]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x104
push 0
push eax
call fcn.004e4da0
test esi, esi
lea ebx, [ebp - 0x10c]
push edi
cmovne ebx, esi
call fcn.0049f486
add esp, 0x10
test eax, eax
je 0x42bac7
and dword [ebx], 0
xor eax, eax
jmp 0x42bb5d
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push edi
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push eax
call fcn.004a025a
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004ee5d0
add esp, 0x18
test eax, eax
jne 0x42bb20
push edi
push eax
push eax
call fcn.0047ced0
pop ecx
pop ecx
push eax
push 0x50d2a0
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004a0ddb
add esp, 0x14
lea edi, [ebp - 0x108]
push 0x151d
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push 0x50965c
push edi
call fcn.0042d2de
and dword [ebx], 0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x42bac0
push edi
push 1
push 4
push ebx
call fcn.004e8bc6
push edi
mov esi, eax
call fcn.0042d153
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret

Function at 0x42c26e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x104
push ebx
push 0
push eax
call fcn.004e4da0
push ebx
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e4da0
push esi
call fcn.0049f486
add esp, 0x1c
test eax, eax
jne 0x42c3bf
push edi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x42c3bf
push ebx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push eax
call fcn.004a03e7
lea eax, [ebp - 0x108]
push eax
call fcn.004a0326
lea eax, [ebp - 0x108]
push eax
call fcn.004ee800
add esp, 0x18
jmp 0x42c31e
cmp byte [ebp + eax - 0x108], 0x5c
jne 0x42c323
cmp eax, ebx
jae 0x42c3d0
mov byte [ebp + eax - 0x108], 0
dec eax
test eax, eax
jg 0x42c304
lea eax, [ebp - 0x108]
push eax
call fcn.004a025a
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a11a5
lea eax, [ebp - 0x20c]
push eax
call fcn.004a03e7
lea eax, [ebp - 0x20c]
push eax
call fcn.004a0326
lea eax, [ebp - 0x20c]
push eax
call fcn.004ee800
add esp, 0x1c
jmp 0x42c37c
cmp byte [ebp + eax - 0x20c], 0x5c
jne 0x42c381
cmp eax, ebx
jae 0x42c3d0
mov byte [ebp + eax - 0x20c], 0
dec eax
test eax, eax
jg 0x42c366
lea eax, [ebp - 0x20c]
push eax
call fcn.004a0109
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0049fcaa
add esp, 0xc
lea eax, [ebp - 0x108]
cmp dword [ebp + 0x10], 0
je 0x42c3bb
push 0xb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x42c3c1
push 0xa
jmp 0x42c3b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
call fcn.004e37db
int3
Function at 0x42c781
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [0x5a5820]
xor edi, edi
call fcn.0048e734
mov ebx, dword [ebp + 8]
mov esi, edi
jmp 0x42c7b7
cmp esi, 0x56ce
jge 0x42c7c0
cmp ebx, dword [eax + 0xa8]
je 0x42c7be
push dword [0x5a5820]
call fcn.0048e797
inc esi
pop ecx
test eax, eax
jne 0x42c79b
jmp 0x42c7c0
mov edi, eax
push edi
call fcn.00428de7
pop ecx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x42c98e
Capabilities:
Download url
Receive data

Disassembly:
push 0x220
push 0x587748
call fcn.004e3670
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x120]
push eax
call fcn.004e4da0
push esi
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.004e4da0
add esp, 0x18
mov dword [ebp - 0x228], 1
mov dword [ebp - 4], ebx
test edi, edi
jne 0x42c9e8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0x80070057
jmp 0x42cb0c
push dword [edi]
call fcn.0049f486
pop ecx
test eax, eax
jne 0x42c9d7
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], edi
push esi
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.004a11a5
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x230], eax
test edi, edi
je 0x42ca43
push esi
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.004a11a5
add esp, 0xc
lea edi, [ebp - 0x224]
mov dword [ebp - 0x22c], edi
mov eax, dword [0x5a3c78]
add eax, 0xf
mov ecx, dword [0x5a3c74]
cmp ecx, eax
jle 0x42ca6e
mov dword [0x5a3c78], ecx
push ecx
push str.:8:URLDownloadToFileTimeOut_Helper___has_determined_that_over__d_helper_threads_may_be_stuck_
call fcn.00425c08
pop ecx
pop ecx
mov ecx, dword [0x5a3c74]
inc ecx
mov dword [0x5a3c74], ecx
push edi
call fcn.0042916f
pop ecx
test eax, eax
je 0x42ca87
push edi
call fcn.00429e69
pop ecx
lea eax, [ebp - 0x120]
push eax
mov esi, dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
call esi
push ebx
push ebx
push edi
lea eax, [ebp - 0x120]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x120]
push eax
call esi
dec dword [0x5a3c74]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5a3c70], eax
push edi
call fcn.0042916f
pop ecx
test eax, eax
je 0x42cae1
push ebx
push ebx
push edi
call fcn.0042aa40
add esp, 0xc
cmp eax, 5
jae 0x42caff
mov dword [ebp - 0x228], 0x80004005
jmp 0x42caff
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43dd50
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e4da0
add esp, 0xc
mov dword [ebp - 0x10c], 0x103
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x43ddd7
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:8:WarnIfNotAdminUser___encountered_a_problem:_GetUserName___FAILED:_szUserName____s_:__s
call fcn.004255b9
lea eax, [ebp - 0x108]
push eax
call fcn.0049f486
add esp, 0x10
test eax, eax
je 0x43ddd7
lea eax, [ebp - 0x108]
push str.Unknown
push eax
call fcn.004ee4d0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.004e3632
leave
ret
Function at 0x457e55
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x94]
push esi
mov esi, 0x90
mov dword [ebp - 0x98], ebx
push esi
push 0
push eax
call fcn.004e4da0
push esi
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004e4da0
push ebx
call fcn.004a29b5
mov esi, dword [ebp + 0xc]
push esi
call fcn.004c9354
add esp, 0x20
test eax, eax
je 0x457eb3
call fcn.004c8fe8
mov esi, eax
push 0xffffffffffffffbd
push esi
call fcn.004c7ea1
push ebx
call fcn.004a1abb
mov ebx, eax
add esp, 0xc
test ebx, ebx
jg 0x457ece
xor eax, eax
jmp 0x457f47
push edi
xor edi, edi
push dword [ebp - 0x98]
call fcn.004a1a3b
push 9
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x9c], eax
push ecx
push eax
call fcn.0047b2e4
add esp, 0x10
test eax, eax
jne 0x457f0c
push dword [ebp - 0x9c]
push str.:4:Unreconciled_Invoice_Error:_Invalid_database_entry_is_being_cut_by_SetUnrecInvDBArchivePosForArchiving__:__s
call fcn.004255b9
pop ecx
pop ecx
jmp 0x457f1b
push esi
push dword [ebp - 0x3e]
call fcn.004c93c7
pop ecx
pop ecx
test eax, eax
je 0x457f20
inc edi
cmp edi, ebx
jl 0x457ed1
mov eax, ebx
sub eax, edi
cmp eax, 0xa
jge 0x457f33
lea edi, [ebx - 0xa]
xor eax, eax
test edi, edi
cmovs edi, eax
push 0
push edi
push dword [ebp - 0x98]
call fcn.004a331e
add esp, 0xc
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
Function at 0x459e26
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, 0x100000
call fcn.0049f486
pop ecx
test eax, eax
jne 0x459f58
mov esi, dword [ebp + 8]
push esi
call fcn.00459df8
pop ecx
test eax, eax
je 0x459f58
push 0
push 0
push dword [ebp + 0xc]
call fcn.0042aa40
add esp, 0xc
cmp eax, edi
jae 0x459e75
test eax, eax
mov edi, eax
mov ecx, 0x400
cmovle edi, ecx
push esi
call fcn.00459f5f
pop ecx
test eax, eax
je 0x459f58
push 0x435
push 0x53a8b8
push 0x514f64
push dword [ebp + 0xc]
call fcn.0042d2de
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x459f51
lea ecx, [edi + 0x400]
push 1
push ecx
call fcn.004ee464
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x459f51
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.004e8bc6
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jle 0x459f35
and dword [ebp + 8], 0
mov eax, dword [esi + 0xc]
inc eax
cmp eax, dword [esi + 8]
jl 0x459ef1
push esi
call fcn.00459d72
pop ecx
test eax, eax
je 0x459f1c
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
mov al, byte [eax + ebx]
mov byte [edx + ecx], al
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
cmp eax, dword [esi + 4]
jle 0x459f0e
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp - 8]
jl 0x459edd
jmp 0x459ec3
push dword [ebp - 4]
call fcn.0042d153
push esi
call fcn.0045ad78
push ebx
call fcn.004ee46f
add esp, 0xc
jmp 0x459f58
push dword [ebp - 4]
call fcn.0042d153
push esi
call fcn.0045ad78
push ebx
call fcn.004ee46f
xor eax, eax
add esp, 0xc
inc eax
jmp 0x459f5a
push esi
call fcn.0045ad78
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45a060
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
call fcn.0040df0f
mov ebx, eax
mov dword [ebp - 0xc], ebx
call fcn.0040ddc8
mov edi, eax
mov dword [ebp - 4], edi
call fcn.0040dd84
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x45a0ca
add edi, 5
imul edi, ebx
push 0x53a8b8
push 0x5ed
add edi, dword [ebp - 4]
push edi
call fcn.00459b09
xor ebx, ebx
mov esi, eax
add esp, 0xc
inc ebx
test esi, esi
jne 0x45a0ce
push edi
push str.:7:MessageCaptureScreen___FAILED:_CreateMessage__d__FAILED.
call fcn.004255b9
pop ecx
jmp 0x45a22c
xor ebx, ebx
jmp 0x45a0d1
mov edi, dword [ebp - 4]
push esi
call fcn.00459df8
pop ecx
test eax, eax
je 0x45a222
push esi
call fcn.00459f5f
pop ecx
test eax, eax
je 0x45a222
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
sub eax, 0xa
lea ecx, [edx + 1]
imul ecx, edi
add ecx, 0xa
mov dword [ebp + 8], ecx
cmp eax, ecx
jge 0x45a12b
push esi
call fcn.00459d72
pop ecx
mov ecx, dword [esi + 8]
test eax, eax
je 0x45a20b
sub ecx, dword [esi + 0xc]
sub ecx, 0xa
cmp ecx, dword [ebp + 8]
jl 0x45a10b
mov edx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp + 8], eax
test edi, edi
jle 0x45a1de
mov ebx, dword [ebp - 4]
mov word [ebp - 0xe], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
mov eax, dword [esi]
add eax, dword [esi + 0xc]
push edx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
jne 0x45a17d
mov eax, dword [0x6829d4]
inc eax
mov dword [0x6829d4], eax
cmp eax, 5
jge 0x45a17d
push str._GetLastError_
push eax
push str.:4:MessageCaptureScreen___FAILED__d_of_5:_ReadConsoleOutputCharacter___FAILED:__s
call fcn.00425c08
add esp, 0xc
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x45a1cc
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
add ecx, edi
movzx eax, byte [ecx + eax]
push eax
call fcn.0049f5a3
pop ecx
test eax, eax
je 0x45a1a5
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
add ecx, edi
mov byte [ecx + eax], 0x7e
mov eax, dword [ebp - 8]
inc edi
cmp edi, eax
jb 0x45a184
test eax, eax
je 0x45a1cc
add dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov byte [ecx + eax], 0xa
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
cmp eax, dword [esi + 4]
jle 0x45a1cc
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
inc eax
mov dword [ebp + 8], eax
cmp eax, ebx
jl 0x45a13b
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, dword [esi + 8]
push str.Nov_25_2024
push 0x62f
setg cl
push 0x53a8b8
push ecx
call fcn.00424fcb
push esi
call fcn.0045ad78
add esp, 0x14
mov eax, esi
jmp 0x45a22f
push dword [esi + 0xc]
push ecx
push str.:5:MessageCaptureScreen___FAILED:_EnlargeString___FAILED:_CurSize___d__CurPos___d
call fcn.004255b9
push esi
call fcn.0045ad78
add esp, 0x10
test ebx, ebx
je 0x45a22d
push esi
call fcn.00459cd4
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45e417
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x683d68], 0
push ebx
push esi
push edi
jne 0x45e5a9
push 0x104
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004e4da0
add esp, 0xc
push str.FtpMode.dat
push edi
push edi
call fcn.0047ced0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x108]
push 0x50d2a0
push eax
call fcn.00404f28
push 0x676
mov ebx, str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
lea eax, [ebp - 0x108]
push ebx
push 0x50965c
push eax
call fcn.0042d2de
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x45e515
lea eax, [ebp - 0x108]
push eax
call fcn.0042916f
pop ecx
test eax, eax
je 0x45e5a9
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x67b
push ebx
lea eax, [ebp - 0x108]
push 0x50965c
push eax
call fcn.0042d2de
add esp, 0x10
test eax, eax
jne 0x45e5a9
cmp dword [0x683d6c], edi
jne 0x45e5a9
lea eax, [ebp - 0x108]
push eax
call fcn.0042916f
push eax
lea eax, [ebp - 0x108]
push eax
push eax
push str.:7:GetDefaultFtpMode___FAILED:_fopen___s____rb___FAILED:_DoesFileExist___s___returns__d
call fcn.00425c08
add esp, 0x14
mov dword [0x683d6c], 1
jmp 0x45e5a9
push esi
push 1
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0xfffe4df9
push 4
push eax
call fcn.004e8bc6
add esp, 0x10
cmp eax, 1
jae 0x45e563
push edi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0042aa40
push eax
lea eax, [ebp - 0x108]
push eax
push str.:8:GetDefaultFtpMode___FAILED:_fread___s___FAILED:_The_file_may_be_invalid:_The_file_holds_only_one_INT_and_its_size_is__ld.
call fcn.004255b9
push esi
call fcn.0042d153
add esp, 0x1c
jmp 0x45e5a9
push esi
call fcn.0042d153
pop ecx
mov ecx, dword [ebp - 0x10c]
lea eax, [ecx + 3]
cmp eax, 6
ja 0x45e594
test ecx, ecx
je 0x45e594
jle 0x45e586
mov dword [0x682f34], edi
jmp 0x45e5a9
jns 0x45e5a9
mov dword [0x682f34], 0x8000000
jmp 0x45e5a9
push ecx
lea eax, [ebp - 0x108]
push eax
push str.:9:GetDefaultFtpMode___FAILED:_At_initialization__the_mode_read_from_the_save_file___s__is_INVALID:_Valid_values_are__3___2___1__1__2__3:_The_mode_read___d.
call fcn.004255b9
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [0x682f34]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004e3632
leave
ret
Function at 0x45f545
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push 0x190
push 0
push eax
call fcn.004e4da0
add esp, 0xc
mov esi, 0x104
cmp dword [ebp + 0xc], 0
cmovge esi, dword [ebp + 0xc]
test edi, edi
je 0x45f5c1
test esi, esi
jle 0x45f5c1
lea eax, [ebp - 0x194]
mov byte [edi], 0
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x45f5bd
push esi
push edi
call sub.WSOCK32.dll_gethostname
mov esi, eax
call sub.WSOCK32.dll_WSACleanup
test esi, esi
jne 0x45f5bd
push edi
call fcn.004ee800
pop ecx
test eax, eax
jne 0x45f5c1
xor eax, eax
jmp 0x45f5c3
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e3632
leave
ret
Function at 0x460e4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.004e4da0
add esp, 0xc
push str.lnd.reg
push ebx
push ebx
call fcn.0047ced0
pop ecx
pop ecx
push eax
push 0x50d2a0
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004a0ddb
push 0x2ea0
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
lea eax, [ebp - 0x108]
push 0x50965c
push eax
call fcn.0042d2de
mov edi, eax
add esp, 0x24
test edi, edi
je 0x460f07
call fcn.0045c917
mov esi, eax
test esi, esi
je 0x460f07
push edi
push 0x1a
push 0x27c
push esi
call fcn.004e8bc6
add esp, 0x10
cmp eax, 0x1a
je 0x460ef3
push eax
push 0x1a
push str.:4:LoadLndDataArchive___FAILED:_fread___s_b__d_but_ret__d.
call fcn.004255b9
add esp, 0xc
push edi
call fcn.0042d153
push ebx
push esi
call fcn.0046092d
add esp, 0xc
mov eax, esi
jmp 0x460f09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
Function at 0x4641c5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x318]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x190
push 0
push eax
mov dword [ebp - 0x328], ebx
call fcn.004e4da0
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004e4da0
mov edi, 0x104
lea eax, [ebp - 0x188]
push edi
push 0
push eax
call fcn.004e4da0
and dword [ebp - 0x320], 0
add esp, 0x24
and dword [ebp - 0x31c], 0
cmp dword [ebp + 0x10], 0
cmovge edi, dword [ebp + 0x10]
test ebx, ebx
je 0x4643ea
test esi, esi
je 0x4643ea
test edi, edi
jle 0x4643ea
call fcn.004ca9ca
push 0x7e
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x84]
push ebx
push eax
mov byte [esi], 0
call fcn.004a11a5
lea eax, [ebp - 0x188]
push eax
call fcn.0049e2d6
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x84]
push 0x5149d8
push eax
call fcn.004a093e
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x4642b4
lea eax, [ebp - 0x31c]
push eax
push 0x5149d8
push 0
call fcn.004a093e
add esp, 0xc
mov ebx, eax
push ebx
call fcn.0049f486
pop ecx
test eax, eax
jne 0x4642e4
push 0x104
lea eax, [ebp - 0x188]
push ebx
push eax
call fcn.004a11a5
push 0
lea eax, [ebp - 0x188]
push 0x3a
push eax
call fcn.0049f318
add esp, 0x18
lea eax, [ebp - 0x84]
push eax
call fcn.0046580c
pop ecx
test eax, eax
je 0x4643ea
call fcn.0047d25f
test eax, eax
je 0x46432e
push 0
call fcn.0047c976
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004ee718
add esp, 0xc
test eax, eax
jne 0x46432e
push edi
push str.Mission_Control
push esi
call fcn.004a11a5
add esp, 0xc
jmp 0x4643a0
lea eax, [ebp - 0x318]
mov byte [esi], 0
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4643ea
lea eax, [ebp - 0x84]
push eax
call fcn.004607e0
pop ecx
push 2
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x320]
push 4
push eax
call sub.WSOCK32.dll_gethostbyaddr
mov ebx, eax
test ebx, ebx
je 0x4643e5
cmp dword [ebx], 0
je 0x4643e5
push dword [ebx]
call fcn.004ee800
pop ecx
test eax, eax
je 0x4643e5
push edi
push dword [ebx]
push esi
call fcn.004a11a5
add esp, 0xc
call sub.WSOCK32.dll_WSACleanup
push esi
call fcn.004ee800
pop ecx
test eax, eax
je 0x4643ea
push edi
lea eax, [ebp - 0x188]
push eax
push esi
call fcn.004a10b8
add esp, 0xc
call fcn.004ca9ca
mov edi, dword [ebp - 0x324]
sub eax, edi
cmp eax, 0x1388
jbe 0x4643e1
call fcn.004ca9ca
sub eax, edi
push eax
push esi
push dword [ebp - 0x328]
push str.:4:ResolveIPToHostName___took_too_long_to_resolve__s_to__s:__ums
call fcn.004255b9
add esp, 0x10
mov eax, esi
jmp 0x4643ec
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
Function at 0x46e810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x100
push esi
push eax
call fcn.004e4da0
add esp, 0xc
test ebx, ebx
je 0x46e84e
push ebx
call fcn.0049e2d6
pop ecx
test edi, edi
jne 0x46e86e
push esi
call fcn.0046d734
mov edi, eax
mov dword [ebp - 0x10c], 1
pop ecx
test edi, edi
jne 0x46e874
jmp 0x46e956
mov dword [ebp - 0x10c], esi
push str.SELECT_STORE_PROFILE.STORE_NUM__COMPANY.NAME_FROM_STORE_PROFILE__COMPANY_WHERE_STORE_PROFILE.COMPANY_IDCOMPANY.ID
push edi
call fcn.0046de59
pop ecx
pop ecx
test eax, eax
je 0x46e939
mov dword [ebp - 0x108], esi
jmp 0x46e916
mov eax, dword [ebp - 0x108]
cmp eax, 0xde
jge 0x46e944
test esi, esi
jne 0x46e90f
lea eax, [ebp - 0x104]
push eax
call fcn.004ef9cb
mov esi, eax
pop ecx
test ebx, ebx
je 0x46e909
lea eax, [ebp - 0x104]
push 0x511240
push eax
call fcn.004e4f00
pop ecx
test eax, eax
lea eax, [ebp - 0x104]
pop ecx
je 0x46e8fc
push dword [ebp + 0x10]
push 0x511240
push eax
call fcn.004e4f00
pop ecx
pop ecx
inc eax
push eax
push ebx
call fcn.004a11a5
push ebx
call fcn.004a0b9c
add esp, 0x10
jmp 0x46e909
push eax
push str.:7:GetStoreNumberTAMSii___FAILED:_Store_name_field_not_found:___s_
call fcn.004255b9
pop ecx
pop ecx
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
push 2
push 9
push 0xff
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.0046df4a
add esp, 0x14
test eax, eax
jne 0x46e894
jmp 0x46e944
push str.:7:GetStoreNumberTAMSii___FAILED:_ExecuteODBCFormat___FAILED.
call fcn.004255b9
pop ecx
cmp dword [ebp - 0x10c], 0
je 0x46e954
push edi
call fcn.0046dac7
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
Function at 0x46fb8c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0x40
xor ebx, ebx
push ebx
push eax
call fcn.004e4da0
add esp, 0xc
call fcn.004ca9ca
mov dword [ebp - 0x4c], eax
test edi, edi
je 0x46fbc1
mov dword [edi], ebx
push ebx
call fcn.0046d734
mov esi, eax
pop ecx
test esi, esi
je 0x46fc8b
push esi
call fcn.0046e75f
push eax
push str.SELECT_TENDER_TYPE_ACCEPTED_FROM_TENDER_TYPE_PROFILE_WHERE_LOC_d
push esi
call fcn.0046de59
add esp, 0x10
test eax, eax
je 0x46fc2a
and dword [ebp - 0x48], ebx
jmp 0x46fc11
cmp dword [ebp - 0x48], 0xde
jge 0x46fc37
lea eax, [ebp - 0x44]
push eax
call fcn.0049f863
test eax, eax
mov eax, dword [ebp - 0x48]
pop ecx
je 0x46fc0d
bts ebx, eax
inc eax
mov dword [ebp - 0x48], eax
push 1
push 9
push 0x3f
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0046df4a
add esp, 0x14
test eax, eax
jne 0x46fbf0
jmp 0x46fc37
push str.:7:TAMSii_IsTenderTypesEnabled___FAILED:_ExecuteODBCFormat___FAILED.
call fcn.004255b9
pop ecx
xor ebx, ebx
push esi
call fcn.0046dac7
pop ecx
test edi, edi
je 0x46fc44
mov dword [edi], ebx
call fcn.004ca9ca
sub eax, dword [ebp - 0x4c]
push eax
push 0
push 0xc
push ebx
call fcn.00459151
add esp, 0xc
push eax
push str.:0:TAMSii_IsTenderTypesEnabled___has_determined__s_in__ums
call fcn.00425c08
mov eax, ebx
add esp, 0xc
and eax, 3
cmp al, 3
jne 0x46fc7e
and ebx, 0x1c
xor eax, eax
cmp bl, 0x1c
sete al
jmp 0x46fc8e
push ebx
push str.:7:TAMSii_IsTenderTypesEnabled___FAILED:_dwTenderTypesEnabled___d.
call fcn.004255b9
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret