joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46722d
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 8], eax
and word [ebp - 0x19c], 0
push edi
push 0x18e
lea eax, [ebp - 0x19a]
push 0
push eax
call fcn.005117f0
add esp, 0xc
test esi, esi
je 0x4672a4
cmp dword [ebp + 8], 0
jle 0x4672a4
lea eax, [ebp - 0x19c]
push eax
push 0x101
mov byte [esi], 0
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4672a0
push dword [ebp + 8]
push esi
call sub.WSOCK32.dll_gethostname
mov edi, eax
call sub.WSOCK32.dll_WSACleanup
test edi, edi
jne 0x4672a0
push esi
call fcn.005120b0
test eax, eax
pop ecx
ja 0x4672a4
xor eax, eax
jmp 0x4672a6
mov eax, esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.0051291c
leave
ret
Function at 0x46805b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x18e
lea eax, [ebp - 0x322]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x338], edi
mov esi, edx
mov word [ebp - 0x324], bx
call fcn.005117f0
add esp, 0xc
push 0x7f
lea eax, [ebp - 0x8b]
push ebx
push eax
mov byte [ebp - 0x8c], bl
call fcn.005117f0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x193]
push ebx
push eax
mov byte [ebp - 0x194], bl
call fcn.005117f0
add esp, 0xc
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], ebx
jge 0x4680e4
mov dword [ebp + 8], 0x104
cmp edi, ebx
je 0x46824e
cmp esi, ebx
je 0x46824e
cmp dword [ebp + 8], ebx
jle 0x46824e
call fcn.004f16be
push edi
push 0x7e
mov dword [ebp - 0x32c], eax
pop ecx
lea eax, [ebp - 0x8c]
mov byte [esi], bl
call fcn.004c3b66
pop ecx
lea eax, [ebp - 0x194]
call fcn.004c3ab2
mov edi, 0x53deb8
push edi
lea eax, [ebp - 0x330]
lea ecx, [ebp - 0x8c]
call fcn.004c5846
cmp eax, ebx
pop ecx
mov dword [ebp - 0x328], eax
je 0x46815c
push edi
lea eax, [ebp - 0x330]
xor ecx, ecx
call fcn.004c5846
pop ecx
mov dword [ebp - 0x328], eax
mov edx, dword [ebp - 0x328]
call fcn.004c3b34
test eax, eax
jne 0x468192
push dword [ebp - 0x328]
mov ecx, 0x104
lea eax, [ebp - 0x194]
call fcn.004c3b66
pop ecx
push 0x3a
xor eax, eax
lea edi, [ebp - 0x194]
call fcn.004c4a73
pop ecx
lea ebx, [ebp - 0x8c]
call fcn.004672b3
test eax, eax
je 0x46824e
call fcn.0048a508
test eax, eax
jne 0x46825f
call fcn.0048a53c
test eax, eax
je 0x4681d6
push 0
call fcn.0048a45f
pop ecx
push eax
mov eax, ebx
push eax
call fcn.00512a33
test eax, eax
pop ecx
pop ecx
je 0x46825f
lea eax, [ebp - 0x324]
push eax
push 0x101
mov byte [esi], 0
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x46824e
lea ecx, [ebp - 0x8c]
call fcn.00467c70
push 2
mov dword [ebp - 0x334], eax
push 4
lea eax, [ebp - 0x334]
push eax
call sub.WSOCK32.dll_gethostbyaddr
mov edi, eax
test edi, edi
je 0x468237
mov eax, dword [edi]
test eax, eax
je 0x468237
push eax
call fcn.005120b0
test eax, eax
pop ecx
jbe 0x468237
push dword [edi]
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.004c3b66
pop ecx
xor edi, edi
jmp 0x46823a
or edi, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
test edi, edi
jne 0x46824e
push esi
call fcn.005120b0
test eax, eax
pop ecx
ja 0x468291
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
call fcn.0048a508
cmp eax, 1
jne 0x468270
push str.WebSrv22
jmp 0x468286
call fcn.0048a508
cmp eax, 2
jne 0x468281
push str.WebSrv21
jmp 0x468286
push str.Mission_Control
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.004c3b66
pop ecx
lea eax, [ebp - 0x194]
push eax
mov eax, dword [ebp + 8]
call fcn.004c3c36
pop ecx
call fcn.004f16be
sub eax, dword [ebp - 0x32c]
cmp eax, 0x1388
jbe 0x4682d3
call fcn.004f16be
sub eax, dword [ebp - 0x32c]
push eax
push esi
push dword [ebp - 0x338]
push str.:4:ResolveIPToHostName___took_too_long_to_resolve__s_to__s:__ums
call fcn.004265da
add esp, 0x10
mov eax, esi
jmp 0x468250
Function at 0x46a581
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and word [ebp - 0x14], 0
and dword [ebp - 4], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0043989a
test eax, eax
je 0x46a5a9
xor eax, eax
jmp 0x46a626
push 0x212b
mov esi, str..Network.c
push esi
push str.addrchng.flg
push 0
call fcn.0048a119
pop ecx
pop ecx
mov edx, 0x530484
mov ecx, eax
call fcn.0042d2c6
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x46a5e3
push str.:3:FlagIpAddressChange___FAILED:_fopen___FAILED.
call fcn.004265da
pop ecx
jmp 0x46a5a5
push 0x2130
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004f2709
add esp, 0xc
call fcn.00415e85
push edi
push 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
call fcn.005110f1
push edi
push 1
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.005110f1
add esp, 0x20
mov ecx, edi
call fcn.0042d70e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x46a640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov word [ebp - 0x14], si
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x214d
mov ebx, str..Network.c
push ebx
stosd dword es:[edi], eax
push str.addrchng.flg
push esi
stosw word es:[edi], ax
mov dword [ebp - 4], esi
call fcn.0048a119
pop ecx
pop ecx
mov edx, 0x530488
mov ecx, eax
call fcn.0042d2c6
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x46a68f
xor eax, eax
jmp 0x46a7cf
push edi
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.00511c63
push edi
push 1
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.00511c63
add esp, 0x20
mov ecx, edi
call fcn.0042d70e
call fcn.00415e85
test eax, eax
jne 0x46a6fc
push 0x2156
push ebx
lea esi, [ebp - 0x28]
call fcn.004f26a5
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
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.004f0d62
push eax
call fcn.0051209e
add esp, 0x24
cmp eax, 0x6ddd000
jle 0x46a6fc
call fcn.0046a62a
push 0x215a
push ebx
lea esi, [ebp - 0x28]
call fcn.004f26a5
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
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.004f0d62
push eax
call fcn.0051209e
add esp, 0x24
cmp eax, 0x240c8400
jle 0x46a73f
call fcn.0046a62a
jmp 0x46a688
call fcn.00415e85
test eax, eax
je 0x46a786
push 0x2160
push ebx
lea esi, [ebp - 0x28]
call fcn.004f26a5
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
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.004f0d62
push eax
call fcn.0051209e
xor ecx, ecx
add esp, 0x24
cmp eax, 0x5cb2780
setle cl
jmp 0x46a7cd
cmp dword [ebp - 4], 0
je 0x46a791
xor eax, eax
inc eax
jmp 0x46a7cf
push 0x2168
push ebx
lea esi, [ebp - 0x28]
call fcn.004f26a5
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
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.004f0d62
push eax
call fcn.0051209e
xor ecx, ecx
add esp, 0x24
cmp eax, 0x4b87f00
setl cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47020b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005117f0
add esp, 0xc
push str.lnd.reg
push ebx
push ebx
call fcn.0048a119
pop ecx
pop ecx
push eax
push 0x533dd4
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004c53b7
push 0x2e92
push str..Network.c
mov edx, 0x530488
lea ecx, [ebp - 0x110]
call fcn.0042d2c6
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jne 0x47028a
xor eax, eax
jmp 0x4702cb
call fcn.004701c1
mov esi, eax
cmp esi, ebx
je 0x470286
push edi
push 0x1a
push 0x27c
push esi
call fcn.00511c63
add esp, 0x10
cmp eax, 0x1a
je 0x4702bb
push eax
push 0x1a
push str.:4:LoadLndDataArchive___FAILED:_fread___s_b__d_but_ret__d.
call fcn.004265da
add esp, 0xc
mov ecx, edi
call fcn.0042d70e
push ebx
mov eax, esi
call fcn.004701d8
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret

Function at 0x4702da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
xor edi, edi
lea eax, [ebp - 0x10f]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x114], esi
mov byte [ebp - 0x110], 0
call fcn.005117f0
add esp, 0xc
cmp esi, edi
jne 0x470321
xor eax, eax
jmp 0x470416
push str.lnd.reg
push edi
push edi
call fcn.0048a119
pop ecx
pop ecx
push eax
push 0x533dd4
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004c53b7
add esp, 0x14
movsx eax, byte [esi]
call fcn.004c39be
cmp eax, 0x61
jl 0x47035b
cmp eax, 0x7a
jle 0x470377
inc edi
add esi, 0x27c
cmp edi, 0x1a
jl 0x470349
lea eax, [ebp - 0x110]
call fcn.0042a76b
jmp 0x470416
push 0x2ec5
mov edi, str..Network.c
mov esi, 0x530484
push edi
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.0042d2c6
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x4703da
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2ec8
push edi
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.0042d2c6
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x4703da
lea eax, [ebp - 0x110]
push eax
push str.:5:SaveLndDataArchive___FAILED:_fopen___s___FAILED_
call fcn.004265da
pop ecx
pop ecx
jmp 0x47031a
push ebx
push 0x1a
push 0x27c
push dword [ebp - 0x114]
call fcn.005110f1
add esp, 0x10
mov ecx, ebx
mov esi, eax
call fcn.0042d70e
cmp esi, 0x1a
je 0x470413
push esi
push 0x1a
push str.:4:SaveLndDataArchive___FAILED:_fwrite___s_b__d_but_ret__d.
call fcn.004265da
add esp, 0xc
jmp 0x47031a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
Function at 0x471ae1
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x120], edi
mov byte [ebp - 0x110], bl
call fcn.005117f0
add esp, 0xc
push 0x8c
lea eax, [ebp - 0x1ac]
push ebx
push eax
mov dword [ebp - 0x1b0], ebx
call fcn.005117f0
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 0x114], ebx
jne 0x471b52
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
mov esi, 0x90
push esi
push ebx
push edi
mov dword [ebp - 0x118], 1
call fcn.005117f0
add esp, 0xc
push 0x32a6
push str..Network.c
push 0x280
call fcn.00469252
add esp, 0xc
push str.fTender.cfg
lea edi, [ebp - 0x110]
call fcn.004682da
pop ecx
push ebx
push ebx
push 0x20
push 3
mov eax, edi
push closesocket
push eax
call fcn.00428fd2
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x11c], eax
jne 0x471bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x471b41
cmp eax, 3
je 0x471b41
cmp eax, 0xf
je 0x471b41
cmp eax, 0x35
je 0x471b41
push eax
push str._GetLastError_
mov eax, edi
push eax
push str.:5:ReadTenderTypesFlagsLegacyTAMS___FAILED:_CreateFileTimeOut__s__FAILED:__s_ld
call fcn.004265da
add esp, 0x10
jmp 0x471b41
push ebx
lea ecx, [ebp - 0x114]
push ecx
push esi
lea ecx, [ebp - 0x1b0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x471c42
push str._GetLastError_
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
push str.:5:ReadTenderTypesFlagsLegacyTAMS___FAILED:_ReadFile__s__FAILED:_ByteCount_u:__s
call fcn.004265da
add esp, 0x10
mov edi, dword [ebp - 0x11c]
call fcn.0042dbeb
mov eax, ebx
jmp 0x471b43
cmp dword [ebp - 0x114], esi
jae 0x471c75
push esi
push dword [ebp - 0x114]
push str.:2:ReadTenderTypesFlagsLegacyTAMS___EAP:_Only__u_of__d_bytes_could_be_read.
call fcn.004265da
add esp, 0xc
push esi
lea eax, [ebp - 0x1b0]
push ebx
push eax
call fcn.005117f0
add esp, 0xc
mov dword [ebp - 0x118], ebx
cmp dword [ebp - 0x1b0], ebx
jl 0x471c86
cmp dword [ebp - 0x1b0], 7
jle 0x471cad
push dword [ebp - 0x1b0]
push str.:6:ReadTenderTypesFlagsLegacyTAMS___EAP:_ttef.iCurSlot_is_invalid:__d
call fcn.004265da
push esi
lea eax, [ebp - 0x1b0]
push ebx
push eax
call fcn.005117f0
add esp, 0x14
mov dword [ebp - 0x118], ebx
mov edi, dword [ebp - 0x120]
mov ebx, dword [ebp - 0x118]
push 0x24
pop ecx
lea esi, [ebp - 0x1b0]
rep movsd dword es:[edi], dword [esi]
jmp 0x471c30
Function at 0x4772ae
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
mov ebx, eax
jne 0x4772c1
mov edi, 0x6c4a78
mov eax, dword [ebp + 0x14]
dec eax
dec eax
je 0x47742f
dec eax
je 0x47734c
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
call fcn.004776e0
push eax
push str.DRIVER_s_SERVER_s_OPTION3_
mov esi, 0x200
push esi
push edi
call fcn.004c53b7
add esp, 0x14
mov edx, ebx
call fcn.004c3b34
test eax, eax
jne 0x477309
push ebx
push str.DATABASE_s_
mov eax, esi
call fcn.004c5375
pop ecx
pop ecx
mov edx, dword [ebp + 0xc]
call fcn.004c3b34
test eax, eax
jne 0x477326
push dword [ebp + 0xc]
mov eax, esi
push str.USER_s_
call fcn.004c5375
pop ecx
pop ecx
mov edx, dword [ebp + 0x10]
call fcn.004c3b34
test eax, eax
jne 0x4774b8
push dword [ebp + 0x10]
mov eax, esi
push str.PASSWORD_s_
call fcn.004c5375
pop ecx
pop ecx
jmp 0x4774b8
push 3
pop eax
call fcn.004776e0
push eax
push str.DRIVER_s_
mov esi, 0x200
push esi
push edi
call fcn.004c53b7
push dword [ebp + 8]
mov eax, esi
push str.HOST_s_
call fcn.004c5375
push dword [ebp + 8]
mov eax, esi
push str.SERVERtms_server_
call fcn.004c5375
push str.SERVICE1525_
mov eax, esi
call fcn.004c5375
push str.PROTOCOLontlitcp_
mov eax, esi
call fcn.004c5375
add esp, 0x28
mov edx, ebx
call fcn.004c3b34
test eax, eax
jne 0x4773b9
push ebx
push str.DATABASE_s_
mov eax, esi
call fcn.004c5375
pop ecx
pop ecx
mov edx, dword [ebp + 0xc]
call fcn.004c3b34
test eax, eax
jne 0x4773d6
push dword [ebp + 0xc]
mov eax, esi
push str.UID_s_
call fcn.004c5375
pop ecx
pop ecx
cmp dword [ebp + 0x10], 0
je 0x4773ed
push dword [ebp + 0x10]
mov eax, esi
push str.PWD_s_
call fcn.004c5375
pop ecx
pop ecx
mov ebx, str.informix_
push ebx
push 0
call fcn.00489f49
push eax
push str.TDLL_sbinigo4n304.dll_
mov eax, esi
call fcn.004c5375
push str.TRANSLATIONOPTION0_
mov eax, esi
call fcn.004c5375
push ebx
push 0
call fcn.00489f49
add esp, 0x1c
push eax
push str.INFORMIXDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x4774b8
push 2
pop eax
call fcn.004776e0
push eax
push str.Driver_s_
mov esi, 0x200
push esi
push edi
call fcn.004c53b7
mov edx, dword [ebp + 0xc]
add esp, 0x10
call fcn.004c3b34
test eax, eax
jne 0x477469
push dword [ebp + 0xc]
mov eax, esi
push str.UID_s_
call fcn.004c5375
pop ecx
pop ecx
cmp dword [ebp + 0x10], 0
je 0x477480
push dword [ebp + 0x10]
mov eax, esi
push str.PWD_s_
call fcn.004c5375
pop ecx
pop ecx
mov edx, ebx
call fcn.004c3b34
test eax, eax
jne 0x47749a
push ebx
push str.DBN_s_
mov eax, esi
call fcn.004c5375
pop ecx
pop ecx
push str.ENGdefault_
mov eax, esi
call fcn.004c5375
push dword [ebp + 8]
mov eax, esi
push str.Linkstcpip_HOST_s_PORT2638_verifyno_dobroadcastnone__
call fcn.004c5375
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4793d3
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, 0xff
push esi
xor ebx, ebx
lea eax, [ebp - 0x10b]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x10c], 0
call fcn.005117f0
add esp, 0xc
cmp edi, ebx
je 0x47941b
mov eax, edi
call fcn.004c3ab2
push ebx
call fcn.00478fbd
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x47942f
xor eax, eax
jmp 0x479531
push str.SELECT_STORE_PROFILE.STORE_NUM__COMPANY.NAME_FROM_STORE_PROFILE__COMPANY_WHERE_STORE_PROFILE.COMPANY_IDCOMPANY.ID
push edi
mov dword [ebp - 0x110], ebx
call fcn.00477efe
test eax, eax
pop ecx
pop ecx
je 0x479513
push 2
push 9
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 0x118], ebx
call fcn.00477ff9
add esp, 0x14
test eax, eax
je 0x479524
mov ebx, 0x530a24
cmp dword [ebp - 0x118], 0xde
jge 0x479524
cmp dword [ebp - 0x110], 0
jne 0x4794ee
lea eax, [ebp - 0x10c]
push eax
call fcn.00512906
cmp dword [ebp - 0x114], 0
pop ecx
mov dword [ebp - 0x110], eax
je 0x4794ee
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00512350
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x10c]
je 0x4794e1
push ebx
push eax
call fcn.00512350
mov ecx, dword [ebp + 8]
inc eax
push eax
mov eax, dword [ebp - 0x114]
call fcn.004c3b66
add esp, 0xc
call fcn.004c46fc
jmp 0x4794ee
push eax
push str.:7:GetStoreNumberTAMSii___FAILED:_Store_name_field_not_found:___s_
call fcn.004265da
pop ecx
pop ecx
inc dword [ebp - 0x118]
push 2
push 9
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.00477ff9
add esp, 0x14
test eax, eax
jne 0x479472
jmp 0x479524
push str.:7:GetStoreNumberTAMSii___FAILED:_ExecuteODBCFormat___FAILED.
call fcn.004265da
pop ecx
mov dword [ebp - 0x110], ebx
push edi
call fcn.00477b11
mov eax, dword [ebp - 0x110]
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
Function at 0x479686
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
lea eax, [ebp - 0x47]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x48], 0
call fcn.005117f0
add esp, 0xc
call fcn.004f16be
cmp esi, ebx
mov dword [ebp - 0x54], eax
je 0x4796c1
mov dword [esi], ebx
push ebx
call fcn.00478fbd
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4796de
call fcn.00415bfa
neg eax
sbb eax, eax
neg eax
jmp 0x4797b5
mov ecx, edi
mov dword [ebp - 0x4c], ebx
call fcn.0047931a
push eax
push str.SELECT_TENDER_TYPE_ACCEPTED_FROM_TENDER_TYPE_PROFILE_WHERE_LOC_d
push edi
call fcn.00477efe
add esp, 0xc
test eax, eax
je 0x479798
push 1
push 9
push 0x3f
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.00477ff9
jmp 0x479743
cmp ebx, 0xde
jge 0x47974a
lea esi, [ebp - 0x48]
call fcn.004c7124
test eax, eax
je 0x47972f
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
or dword [ebp - 0x4c], eax
push 1
push 9
push 0x3f
lea eax, [ebp - 0x48]
push eax
push edi
inc ebx
call fcn.00477ff9
mov esi, dword [ebp - 0x50]
add esp, 0x14
test eax, eax
jne 0x479711
mov ebx, dword [ebp - 0x4c]
push edi
call fcn.00477b11
test esi, esi
pop ecx
je 0x47975a
mov dword [esi], ebx
call fcn.004f16be
sub eax, dword [ebp - 0x54]
push eax
push ebx
push 0xc
pop eax
call fcn.004608c8
pop ecx
push eax
push str.:0:TAMSii_IsTenderTypesEnabled___has_determined__s_in__ums
call fcn.00426c01
add esp, 0xc
test bl, 1
je 0x4797a5
test bl, 2
je 0x4797a5
test bl, 8
je 0x479794
test bl, 0x10
je 0x479794
test bl, 4
jne 0x4797b2
xor eax, eax
jmp 0x4797b5
push str.:7:TAMSii_IsTenderTypesEnabled___FAILED:_ExecuteODBCFormat___FAILED.
call fcn.004265da
pop ecx
jmp 0x47974d
push ebx
push str.:7:TAMSii_IsTenderTypesEnabled___FAILED:_dwTenderTypesEnabled___d.
call fcn.004265da
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.0051291c
leave
ret
Function at 0x483100
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4831bb
cmp dword [esi + 4], ebx
jle 0x4831bb
call fcn.004a8f27
cmp dword [esi + 4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x483172
lea edi, [esi + 0x40]
movsx ebx, word [edi]
mov eax, dword [ebp - 8]
call fcn.004a939f
test eax, eax
jne 0x48314a
movsx eax, word [edi]
push eax
mov eax, dword [ebp - 8]
call fcn.004a9020
pop ecx
cmp word [edi + 6], 0
jle 0x48315f
movsx ebx, word [edi]
mov eax, dword [ebp - 8]
push 1
call fcn.004a9427
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x90
cmp eax, dword [esi + 4]
jl 0x48312e
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
jle 0x4831ad
lea edi, [esi + 0x63]
jmp 0x483184
xor ebx, ebx
mov eax, dword [ebp - 8]
mov byte [edi], bl
movsx ebx, word [edi - 0x23]
call fcn.004a95a7
test eax, eax
je 0x48319c
inc dword [ebp - 0xc]
mov byte [edi], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x90
cmp eax, dword [esi + 4]
jl 0x483182
push dword [ebp - 8]
call fcn.004a8fca
mov eax, dword [ebp - 0xc]
pop ecx
jmp 0x4831be
or eax, 0xffffffff
pop edi
pop ebx
leave
ret
Function at 0x489d3d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
jne 0x489d61
cmp dword [ebp + 0xc], 0
je 0x489d61
cmp dword [ebp + 0xc], 0xffffffff
je 0x489d61
call fcn.0048a7ad
mov dword [ebp + 8], eax
mov esi, 0x6c5cd8
mov edx, esi
call fcn.004c3b34
test eax, eax
mov edi, 0x104
je 0x489dbf
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push esi
push str.APPDATA
call ebx
test eax, eax
jne 0x489db8
push edi
push esi
push str.SystemDrive
call ebx
test eax, eax
jne 0x489dbf
push str._GetLastError_
push str.:5:GetSystemDRIVE___EAP:_GetEnvironmentVariable__SystemDrive___FAILED:__s
call fcn.00426c01
push 0x58190c
mov ecx, edi
mov eax, esi
call fcn.004c3b66
add esp, 0xc
jmp 0x489dbf
mov byte [0x6c5cda], 0
push esi
mov esi, 0x6c5de0
mov ecx, edi
mov eax, esi
call fcn.004c3b66
mov ebx, dword [ebp + 8]
test ebx, ebx
pop ecx
jne 0x489df0
cmp dword [ebp + 0xc], ebx
je 0x489dec
cmp dword [ebp + 0xc], 0xffffffff
je 0x489dec
push str.:8:GetSystemDRIVE___was_called_with_an_INVALID_pszAppend___
call fcn.004265da
pop ecx
mov eax, esi
jmp 0x489e3d
push esi
push ebx
call fcn.005123e0
push esi
call fcn.005120b0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x489e3b
cmp dword [ebp + 0xc], 0xffffffff
je 0x489e3b
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, ebx
push edi
push eax
call fcn.005140d9
add esp, 0x10
test eax, eax
jge 0x489e3b
push dword [ebp + 0xc]
push str.:8:GetSystemDRIVE___EAP:_MAX_PATH_has_been_exceeded:___s_
call fcn.004265da
pop ecx
pop ecx
mov byte [ebx + 0x103], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret