joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489480
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x78], eax
push edi
mov edi, dword [str.public]
lea eax, [edi + 0x80]
push eax
call fcn.00485c00
add esp, 4
cmp eax, 2
jge 0x4894db
push str.triggers
push str.create
push edi
push 0x7dd
push 0x1f69
call fcn.00406f10
add esp, 0x14
mov eax, 0x1f69
pop edi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00586584
add esp, 0x7c
ret
push ebx
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push fcn.00472210
push 0
lea ebx, [esi + 0x18504]
push str.SELECT_tsegno_FROM____systrigger__WHERE_triggername_
mov dword [esp + 0x30], ebx
call fcn.0050dfb0
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x48951e
mov dword [esp + 8], 0
jmp 0x48967f
cmp dword [esp + 0x10], 0
je 0x489558
mov ecx, dword [esp + 8]
push ecx
call fcn.0050dec0
push ebx
push 0x7dd
push 0x2405
call fcn.00406f10
add esp, 0x10
pop ebx
mov eax, 0x2405
pop edi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00586584
add esp, 0x7c
ret
mov edx, dword [esp + 8]
push edx
call fcn.0050dec0
mov edi, eax
add esp, 4
test edi, edi
jne 0x48967f
push eax
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esi + 0x18584]
push ecx
mov byte [esi + 0x11], 1
call fcn.00484ad0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48967f
mov eax, dword [str.public]
mov edx, dword [esp + 0x48]
add eax, 0x120
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ecx
movsx ecx, byte [esi + 0x18608]
lea eax, [esi + 0x18608]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x18604]
mov dword [esp + 0x20], edx
movsx edx, byte [esi + 0x18688]
mov dword [esp + 0x24], ecx
lea eax, [esi + 0x18688]
lea ecx, [esi + 0x1870c]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x14]
push ecx
neg edx
push 0xa
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x18708]
push edi
push fcn.00472210
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x1880d]
lea edx, [esi + 0x1878c]
push edi
push str.INSERT_INTO____systrigger__VALUES____________t_t_t________lower___cast_char_____t_t_tlower___cast_char______currentdate_NULL_NULL_NULL_
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call fcn.0050df80
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x48967f
movzx eax, byte [esi + 0x1880c]
cmp byte [esp + eax + 0x74], 0x59
lea eax, [esp + eax + 0x74]
je 0x4896a1
lea ecx, [esp + 0x14]
push ecx
push 2
push edi
push fcn.00472210
mov byte [eax], 0x59
lea edx, [esp + 0x84]
lea eax, [esp + 0x1c]
push edi
push str.UPDATE____systable__SET_referentials________tWHERE_segno___
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.0050df80
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4896a1
push 0x7dd
push 0
call fcn.00406f10
add esp, 8
pop ebx
mov eax, edi
pop edi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00586584
add esp, 0x7c
ret
mov ecx, dword [esp + 0x80]
pop ebx
pop edi
xor ecx, esp
xor eax, eax
call fcn.00586584
add esp, 0x7c
ret
Function at 0x48a9b0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov eax, 0x4e4e4e4e
mov dword [ecx], eax
push edi
mov word [ecx + 4], ax
mov byte [ecx + 6], 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea eax, [esp + 0x28]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push fcn.00472210
push 0
push str.SELECT_statement_row_event_FROM____systrigger__WHERE_tsegno_
mov dword [esp + 0x30], 0
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x48aac0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x48aaad
mov ebp, dword [sym.imp.MSVCR90.dll_tolower]
mov edi, dword [esp + 0x24]
nop
movzx eax, word [ecx]
cmp ax, word [ecx + 2]
jne 0x48aa2d
xor eax, eax
jmp 0x48aa30
cwde
add eax, ecx
movsx ecx, byte [eax]
push ecx
call ebp
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, 0x73
movzx eax, word [ecx + 2]
sete bl
cmp ax, word [ecx + 4]
jne 0x48aa51
xor eax, eax
jmp 0x48aa54
cwde
add eax, ecx
movsx edx, byte [eax]
push edx
call ebp
add esp, 4
cmp eax, 0x64
je 0x48aa75
cmp eax, 0x69
je 0x48aa71
cmp eax, 0x75
jne 0x48aa7a
lea edi, [eax - 0x73]
jmp 0x48aa7a
xor edi, edi
jmp 0x48aa7a
mov edi, 4
test bl, bl
je 0x48aa7f
inc edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
mov byte [edi + eax], 0x59
call fcn.00490540
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x48aac0
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x48aa20
mov eax, dword [esp + 0x14]
push eax
call fcn.00491490
mov esi, eax
add esp, 4
test esi, esi
je 0x48aad9
push 0x7dd
push 0
call fcn.00406f10
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x48aaf0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x28
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
push fcn.00472210
push 0
lea ebp, [edi + 0x18504]
push str.SELECT_tsegno_owner_FROM____systrigger__WHERE_triggername_
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ebp
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x48ac52
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48acb4
movzx ecx, word [eax]
cmp cx, word [eax + 2]
jne 0x48ab5b
xor ecx, ecx
jmp 0x48ab60
movsx ecx, cx
add ecx, eax
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax + 2]
cmp cx, word [eax + 4]
jne 0x48ab74
xor ecx, ecx
jmp 0x48ab79
movsx ecx, cx
add ecx, eax
mov edx, dword [esp + 0xc]
mov ebx, dword [ecx]
push edx
call fcn.0050dec0
mov esi, eax
add esp, 4
test esi, esi
jne 0x48ac52
mov esi, dword [str.public]
mov ecx, 0x5acad0
lea eax, [esi + 0x80]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48abc3
test dl, dl
je 0x48abbf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48abc3
add eax, 2
add ecx, 2
test dl, dl
jne 0x48aba3
xor eax, eax
jmp 0x48abc8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48ac04
cmp dword [esi + 0x120], ebx
je 0x48ac04
push ebp
push str.drop_trigger
push esi
push 0x7dd
push 0x1f69
call fcn.00406f10
add esp, 0x14
pop esi
pop ebp
mov eax, 0x1f69
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x28]
push ecx
push fcn.00472210
push 0
push str.DELETE_FROM____systrigger__WHERE_triggername_
mov byte [edi + 0x11], 1
call fcn.0050df80
add esp, 0x18
test eax, eax
jne 0x48acd9
cmp dword [esp + 0x20], eax
je 0x48acc1
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0048a9b0
mov esi, eax
add esp, 8
test esi, esi
je 0x48ac75
push 0x7dd
push 0
call fcn.00406f10
add esp, 8
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret
lea eax, [esp + 0x14]
push eax
push 2
push 0
push fcn.00472210
lea ecx, [esp + 0x38]
lea edx, [esp + 0x20]
push 0
push str.UPDATE____systable__SET_referentials_SUBSTR_referentials_7__WHERE_segno_
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.0050df80
add esp, 0x18
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0050dec0
add esp, 4
push ebp
push 0x7dd
push 0x2404
call fcn.00406f10
add esp, 0xc
mov eax, 0x2404
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret
Function at 0x4a25a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.MSVCR90.dll__errno]
mov ebp, dword [esp + 0x20]
mov dword [eax], 0
mov eax, dword [str.public]
mov eax, dword [eax + 0x13b]
imul dword [esp + 0x24]
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp ecx, 0xffffffff
jne 0x4a25fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a2673
mov ecx, dword [esp + 0x14]
mov edx, dword [str.public]
mov esi, dword [edx + 0x13b]
xor edx, edx
mov eax, ecx
div esi
test edx, edx
jne 0x4a2673
mov eax, esi
cdq
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call fcn.00586a20
cmp eax, 0xffffffff
je 0x4a2673
mov ebx, dword [esp + 0x2c]
xor esi, esi
lea edi, [esi + 0x20]
mov edi, edi
mov ecx, dword [str.public]
mov eax, dword [ecx + 0x13b]
imul eax, dword [esp + 0x28]
cmp esi, eax
jge 0x4a2684
push 0
lea edx, [esp + 0x14]
push edx
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push ebp
dec edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a26c3
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x4a267e
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 4
je 0x4a2680
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
add esi, eax
test edi, edi
jne 0x4a2630
mov edx, dword [str.public]
mov eax, dword [edx + 0x13b]
mov ecx, dword [esp + 0x28]
mov edi, eax
imul edi, ecx
cmp esi, edi
jne 0x4a26b9
cmp byte [edx + 0x6f8], 0x4e
je 0x4a26b9
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
push ebx
push ecx
call fcn.004a2420
add esp, 0x14
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x22
jne 0x4a2684
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0xd
jmp 0x4a2684
Function at 0x4a26e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0
mov eax, dword [str.public]
mov eax, dword [eax + 0x13b]
imul dword [esp + 0x30]
push 0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x34]
push eax
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffffffff
jne 0x4a273a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a285c
mov ecx, dword [esp + 0x1c]
mov edi, dword [str.public]
mov esi, dword [edi + 0x13b]
xor edx, edx
mov eax, ecx
div esi
test edx, edx
jne 0x4a285c
mov eax, esi
cdq
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.00586a20
cmp eax, 0xffffffff
je 0x4a285c
cmp byte [edi + 0x6f8], 0x4e
je 0x4a2785
mov dword [esp + 0x14], 1
mov ebx, 0x6a1ff8
jmp 0x4a2791
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
xor ecx, ecx
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
jg 0x4a27b5
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
cmp byte [edi + 0x6f8], 0x4e
je 0x4a27f1
mov eax, dword [edi + 0x13b]
mov edx, dword [esp + 0x30]
push eax
imul eax, ecx
add eax, dword [esp + 0x3c]
push 1
push 0x6a1ff8
push eax
add ecx, edx
push ecx
call fcn.004a22a0
mov edi, dword [str.public]
add esp, 0x14
cmp dword [edi + 0x13b], eax
jne 0x4a285c
mov dword [esp + 0x1c], 0
lea esp, [esp]
xor esi, esi
lea ebp, [esi + 0x20]
jmp 0x4a2810
mov eax, dword [edi + 0x13b]
imul eax, dword [esp + 0x14]
cmp esi, eax
jge 0x4a2877
dec ebp
cmp ebx, 0x6a1ff8
jne 0x4a282c
mov ecx, ebx
jmp 0x4a2832
mov ecx, dword [esp + 0x10]
add ecx, ebx
push 0
lea edx, [esp + 0x28]
push edx
sub eax, esi
push eax
mov eax, dword [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x4a2867
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 4
je 0x4a286d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
add esi, eax
add dword [esp + 0x10], eax
mov edi, dword [str.public]
test ebp, ebp
jne 0x4a2810
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 1
mov dword [esp + 0x1c], eax
jl 0x4a2800
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
jl 0x4a27b1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4a2dd0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [str.public]
mov eax, dword [eax + 0x13b]
push esi
mov esi, dword [esp + 0x10]
mov cl, byte [esi + 6]
mov dl, byte [esi + 7]
push edi
mov edi, dword [esp + 0x20]
imul eax, edi
shr eax, 2
mov byte [esp + 0x20], cl
lea ecx, [eax - 1]
xor eax, eax
mov byte [esp + 0x14], dl
mov byte [esi + 7], 0
mov byte [esi + 6], 0
mov edx, esi
mov dword [esp + 8], eax
test ecx, ecx
jl 0x4a2e1f
xor eax, dword [edx]
dec ecx
add edx, 4
test ecx, ecx
jge 0x4a2e11
mov dword [esp + 8], eax
mov dl, byte [esp + 0xa]
mov cl, al
xor cl, ah
xor cl, dl
and dl, byte [esp + 0xb]
xor cl, byte [esp + 0xb]
and al, ah
or al, dl
mov edx, dword [esp + 0x10]
cmp edx, 2
jne 0x4a2e75
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4a2e69
cmp byte [esp + 0x20], cl
jne 0x4a2e62
cmp byte [esp + 0x14], al
jne 0x4a2e62
xor edx, edx
mov byte [edi], dl
mov byte [esi + 7], al
pop edi
mov byte [esi + 6], cl
xor eax, eax
pop esi
pop ecx
ret
mov edx, 1
mov byte [edi], dl
mov byte [esi + 6], cl
mov byte [esi + 7], al
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp edx, 1
jne 0x4a2e6f
mov dl, byte [esp + 0x20]
cmp dl, cl
jne 0x4a2e96
mov cl, byte [esp + 0x14]
cmp cl, al
jne 0x4a2e96
pop edi
mov byte [esi + 6], dl
mov byte [esi + 7], cl
xor eax, eax
pop esi
pop ecx
ret
cmp dword [esp + 0x28], 0
je 0x4a2eed
mov al, byte [esp + 0x18]
test al, al
jne 0x4a2eac
mov eax, str.DISK
jmp 0x4a2ec5
cmp al, 1
jne 0x4a2eb7
mov eax, str._ROM
jmp 0x4a2ec5
cmp al, 2
mov eax, str.COMP
je 0x4a2ec5
mov eax, 0x5accd4
mov ecx, dword [str.public]
mov edx, dword [ecx + 0x13b]
imul edx, edi
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push 0x3339
push 0xe1b
call fcn.00406f10
add esp, 0x14
pop edi
mov eax, 0xe1b
pop esi
pop ecx
ret
Function at 0x4a5630
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x62e313]
shr ecx, 2
sub ecx, 1
js 0x4a5662
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
sub edx, eax
push edi
sub esi, eax
mov edi, dword [esi + eax]
xor edi, dword [edx + eax]
dec ecx
mov dword [eax], edi
add eax, 4
test ecx, ecx
jge 0x4a5650
pop edi
pop esi
ret
Function at 0x4c5230
Capabilities:
Reference sql statements

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push fcn.00472210
push 0
push str.SELECT_segno_cluster_FROM____systable__WHERE_tname_
call fcn.0050dfb0
add esp, 0x1c
test eax, eax
jne 0x4c52be
mov eax, dword [esp]
mov edx, dword [esp + 0x10]
test eax, eax
setne cl
mov byte [edx], cl
cmp cl, 1
jne 0x4c52a4
movzx ecx, word [eax]
cmp cx, word [eax + 2]
jne 0x4c527c
xor ecx, ecx
jmp 0x4c5281
movsx ecx, cx
add ecx, eax
mov ecx, dword [ecx]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
movzx ecx, word [eax + 2]
cmp cx, word [eax + 4]
jne 0x4c529a
xor ecx, ecx
movzx eax, word [ecx]
jmp 0x4c52a8
movsx ecx, cx
add ecx, eax
movzx eax, word [ecx]
jmp 0x4c52a8
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x18]
cwde
push edx
mov dword [ecx], eax
call fcn.0050dec0
add esp, 4
xor eax, eax
add esp, 8
ret

Function at 0x4c52d0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, eax
lea eax, [esp + 0x24]
lea edx, [esp + 0x10]
push edx
mov ecx, eax
push 3
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
push ecx
push fcn.00472210
push 0
push str.SELECT_sc.tsegno__sc.surrid__sc.ctype__sr.cpos___t_t_SELECT_cname_FROM____syscolumn______t__t_WHERE_tsegno____AND_cpos__sr.cpos___t_FROM____syscolumn__sc_____syssurrogate__sr____t_WHERE_sc.tsegno____AND_sc.cname_____t__tAND_sc.surrid____0_AND_sc.surref0__t__tAND_sc.surrid__sr.surrid__AND_sr.level__1
mov dword [esp + 0x34], ebx
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4c532b
push 0xbb9
push 0
call fcn.00406f10
add esp, 8
pop edi
mov eax, esi
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 8]
test eax, eax
jne 0x4c535b
mov edx, dword [esp + 0xc]
push edx
call fcn.0050dec0
mov eax, dword [esp + 0x24]
push eax
push ebx
push 0xbb9
push 0x23d4
call fcn.00406f10
add esp, 0x14
pop edi
pop esi
add esp, 0x14
ret
movzx ecx, word [eax]
cmp cx, word [eax + 2]
jne 0x4c5368
xor ecx, ecx
jmp 0x4c536d
movsx ecx, cx
add ecx, eax
mov ecx, dword [ecx]
mov dword [edi + 0x14b], ecx
movzx ecx, word [eax + 2]
cmp cx, word [eax + 4]
jne 0x4c5383
xor ecx, ecx
jmp 0x4c5388
movsx ecx, cx
add ecx, eax
mov edx, dword [ecx]
mov dword [edi + 0x167], edx
movzx ecx, word [eax + 4]
cmp cx, word [eax + 6]
jne 0x4c539e
xor ecx, ecx
jmp 0x4c53a3
movsx ecx, cx
add ecx, eax
lea eax, [edi + 4]
push eax
push ecx
call fcn.00575a60
mov eax, dword [esp + 0x10]
mov byte [edi + 8], 1
movzx ecx, word [eax + 6]
add esp, 8
cmp cx, word [eax + 8]
jne 0x4c53c6
xor ecx, ecx
jmp 0x4c53cb
movsx ecx, cx
add ecx, eax
mov ecx, dword [ecx]
mov dword [edi + 0x153], ecx
movzx ecx, word [eax + 8]
cmp cx, word [eax + 0xa]
jne 0x4c53e1
xor ecx, ecx
jmp 0x4c53e6
movsx ecx, cx
add ecx, eax
push ecx
add edi, 0x157
push edi
call fcn.00484a70
add esp, 8
test eax, eax
jne 0x4c5409
mov edx, dword [esp + 0xc]
push edx
call fcn.0050dec0
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4c7470
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push esi
push edi
mov byte [eax + 0x11], 1
mov ecx, dword [eax + 0x6f6]
mov edx, dword [eax + 0x6e8]
lea edi, [eax + 0x17c1a]
lea eax, [esp + 0x10]
push eax
push 3
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push ecx
push fcn.00472210
push 0
push str.UPDATE____syscolumn_________SET_defaultvalue__________WHERE_tsegno___SELECT_segno_FROM____systable__WHERE_tname_____t_tAND_cname___
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edx
call fcn.0050df80
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4c74de
cmp dword [esp + 8], 1
jne 0x4c74fd
cmp dword [esp + 0xc], 1
jne 0x4c74fd
push edi
call fcn.004c73e0
mov esi, eax
add esp, 4
test esi, esi
je 0x4c74f5
push 0x7dd
push 0
call fcn.00406f10
add esp, 8
pop edi
mov eax, esi
pop esi
add esp, 0x14
ret
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push str.st_df
push 0x7dd
push 0x1b
call fcn.00406f10
add esp, 0xc
pop edi
mov eax, 0x1b
pop esi
add esp, 0x14
ret

Function at 0x4c7520
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
push edi
lea ecx, [esp + 8]
push ecx
push 2
lea edx, [esp + 0x18]
push edx
push fcn.00472210
lea edi, [eax + 0x17c1a]
mov byte [eax + 0x11], 1
mov eax, dword [eax + 0x6e8]
push 0
push str.UPDATE____syscolumn_________SET_defaultvalue__CASE_domainname__t_t_t__WHEN_NULL__THEN_NULL__t_t_t__ELSE_NULL__t_t_t__END________WHERE_tsegno___SELECT_segno_FROM____systable__WHERE_tname______t_tAND_cname___
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
call fcn.0050df80
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4c7584
cmp dword [esp + 0x10], 1
jne 0x4c75a3
cmp dword [esp + 0x14], 1
jne 0x4c75a3
push edi
call fcn.004c73e0
mov esi, eax
add esp, 4
test esi, esi
je 0x4c759b
push 0x7dd
push 0
call fcn.00406f10
add esp, 8
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
push str.st_df
push 0x7dd
push 0x1b
call fcn.00406f10
add esp, 0xc
pop edi
mov eax, 0x1b
pop esi
add esp, 0x10
ret
Function at 0x4c77a0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x17a9b]
lea eax, [edi + 0x17906]
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x12]
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
push edx
push fcn.00472210
push 0
push str.SELECT_COUNT___FROM____sysdomain___t_t_t_tWHERE_name___
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4c784a
mov ecx, dword [esp + 0x24]
movzx eax, word [ecx]
cmp ax, word [ecx + 2]
jne 0x4c77fd
xor eax, eax
jmp 0x4c7800
cwde
add eax, ecx
mov ebx, dword [eax]
mov eax, dword [esp + 0xc]
push eax
call fcn.0050dec0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c784a
cmp ebx, 1
mov byte [edi + 0x11], 1
mov eax, str.DELETE____sysdomain__WHERE_name____AND_constraintname___
jg 0x4c7828
mov eax, str.UPDATE____sysdomain______t_t_t_tSET_constraintname__NULL__t_t_t_tconstrainttext__NULL__t_t_tWHERE_name____AND_constraintname___
lea ecx, [esp + 0x10]
push ecx
push 2
lea edx, [esp + 0x20]
push edx
push fcn.00472210
push 0
push eax
call fcn.0050df80
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4c7862
push 0xbb9
push 0
call fcn.00406f10
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret
cmp dword [esp + 0x18], 0
jne 0x4c788c
mov eax, dword [esp + 0x14]
push eax
push 0xbb9
push 0x1fa1
call fcn.00406f10
add esp, 0xc
pop edi
pop esi
mov eax, 0x1fa1
pop ebx
add esp, 0x14
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x4c98d0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x17a9b]
mov ecx, dword [eax + 0x12]
lea edx, [esp + 0x1c]
push edx
push 1
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x14]
push ecx
push fcn.00472210
push 0
push str.SELECT_IF_ubtrees__NULL_OR_ubtrees___THEN_0_ELSE_1_FI_ubtrees__tFROM____sysconstraint__WHERE_constraintname___
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4c9a12
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4c9973
movzx ecx, word [eax]
movzx edx, word [eax + 2]
cmp cx, dx
jne 0x4c992d
xor ecx, ecx
jmp 0x4c9932
movsx ecx, cx
add ecx, eax
cmp dword [ecx], 1
jne 0x4c9973
cmp dx, word [eax + 4]
jne 0x4c9941
xor ecx, ecx
jmp 0x4c9946
movsx ecx, dx
add ecx, eax
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0x7dd
push 0x1fa7
call fcn.00406f10
mov eax, dword [esp + 0x18]
push eax
call fcn.0050dec0
add esp, 0x14
pop edi
mov eax, 0x1fa7
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 8]
push ecx
call fcn.0050dec0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c9a12
lea edx, [esp + 0x1c]
push edx
push 1
lea eax, [esp + 0x18]
push eax
push fcn.00472210
push esi
push str.DELETE_FROM____sysconstraint_________WHERE_constraintname___
mov byte [edi + 0x11], 1
call fcn.0050df80
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4c9a12
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4c99f7
mov esi, dword [esp + 0x1c]
call fcn.004c75d0
mov esi, eax
test esi, esi
jne 0x4c9a12
lea ecx, [esp + 0x1c]
push ecx
push 1
lea edx, [esp + 0x18]
push edx
push fcn.00472210
push eax
push str.DELETE_FROM____sysrefconstraint_________WHERE_constraintname___
call fcn.0050df80
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4c9a12
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c9a31
cmp eax, dword [esp + 0x14]
jne 0x4c9a31
add edi, 0x17c1a
push edi
call fcn.004c73e0
mov esi, eax
add esp, 4
test esi, esi
je 0x4c9a29
push 0x7dd
push 0
call fcn.00406f10
add esp, 8
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
push eax
push 0x7dd
push 0x1fa1
call fcn.00406f10
add esp, 0xc
pop edi
mov eax, 0x1fa1
pop esi
add esp, 0x10
ret