joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
lea eax, [eax + eax*2]
mov esi, dword [edx + eax*8 + 0x14]
mov eax, ecx
je 0x10047c96
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x10047c90
sub eax, ecx
and eax, 0x3fffffff
cmp dword [esi + 0x14], 0
mov dword [ebp - 4], eax
je 0x10047cda
mov edx, eax
xor eax, eax
cmp edx, eax
jle 0x10047cd1
mov edi, edi
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x10099610]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x10047cb0
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor edx, edx
div dword [esi + 0x14]
mov ebx, edx
jmp 0x10047cdc
xor ebx, ebx
mov eax, dword [ebp - 4]
push eax
push ecx
mov edx, ebx
lea eax, [esi + 0x14]
call fcn.1001e4e0
add esp, 8
test eax, eax
je 0x10047d69
mov edi, dword [eax + 8]
mov edx, ebx
lea ecx, [esi + 0x14]
call fcn.1001e580
test edi, edi
je 0x10047d5b
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x14]
cmp eax, edi
jne 0x10047d26
mov edx, dword [edi + 0x20]
mov dword [ecx + 0x14], edx
call fcn.10047b50
mov eax, dword [ebp + 8]
or dword [eax + 0xc], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x10047d56
lea ebx, [ebx]
mov ecx, dword [eax + 0x20]
cmp ecx, edi
je 0x10047d50
mov eax, ecx
test eax, eax
jne 0x10047d30
call fcn.10047b50
mov eax, dword [ebp + 8]
or dword [eax + 0xc], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x20]
mov dword [eax + 0x20], ecx
call fcn.10047b50
mov eax, dword [ebp + 8]
or dword [eax + 0xc], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or dword [edi + 0xc], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10048550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
mov edx, dword [edx + 8]
push ebx
lea eax, [eax + eax*2]
push esi
lea edx, [edx + eax*8]
push edi
mov eax, ecx
je 0x10048576
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x10048570
mov esi, dword [edx + 0x14]
sub eax, ecx
and eax, 0x3fffffff
cmp dword [esi + 4], 0
mov dword [ebp - 4], eax
je 0x100485bb
mov edx, eax
xor eax, eax
cmp edx, eax
jle 0x100485af
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x10099610]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x10048591
mov ecx, dword [ebp + 0xc]
xor edx, edx
div dword [esi + 4]
mov eax, dword [ebp - 4]
mov edi, edx
jmp 0x100485bd
xor edi, edi
push eax
push ecx
mov edx, edi
lea eax, [esi + 4]
call fcn.1001e4e0
add esp, 8
test eax, eax
je 0x100485df
mov ebx, dword [eax + 8]
mov edx, edi
lea ecx, [esi + 4]
call fcn.1001e580
jmp 0x100485e1
xor ebx, ebx
push ebx
call fcn.10048230
mov eax, dword [ebp + 8]
add esp, 4
or dword [eax + 0xc], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004edb7
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push dword [0x100a6648]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x100a6638]
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [0x100a6638]
mov esi, eax
push esi
call fcn.1004ed83
push 0x104
push esi
push dword [0x100a664c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [str.IDRService.exe]
mov ecx, ebp
cmp word [esi], bp
je 0x1004ee1f
inc ecx
cmp word [esi + ecx*2], bp
jne 0x1004ee18
push 0x5c
pop edx
jmp 0x1004ee2b
xor eax, eax
mov word [esi + ecx*2], ax
dec ecx
cmp word [esi + ecx*2 - 2], dx
jne 0x1004ee24
movzx eax, word [ebx]
mov edx, ebp
mov edi, eax
test ax, ax
je 0x1004ee51
lea eax, [esi + ecx*2]
inc edx
mov word [eax], di
lea eax, [eax + 2]
movzx edi, word [ebx + edx*2]
test di, di
jne 0x1004ee41
push 0x44
lea eax, [esp + 0x24]
push eax
call fcn.1004ed83
push 0x10
lea eax, [esp + 0x14]
push eax
call fcn.1004ed83
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10062a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
mov edx, dword [edx + 8]
push ebx
lea eax, [eax + eax*2]
push esi
mov esi, dword [edx + eax*8 + 0x14]
push edi
mov eax, ecx
je 0x10062ab6
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x10062ab0
sub eax, ecx
and eax, 0x3fffffff
mov edx, eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 4], edx
test eax, eax
je 0x10062afa
xor eax, eax
cmp edx, eax
jle 0x10062aee
nop
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x10099610]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x10062ad0
mov ecx, dword [ebp + 0xc]
xor edx, edx
div dword [esi + 0x24]
mov edi, edx
mov edx, dword [ebp - 4]
jmp 0x10062afc
xor edi, edi
push edx
push ecx
mov edx, edi
lea eax, [esi + 0x24]
call fcn.1001e4e0
add esp, 8
test eax, eax
je 0x10062b75
mov ebx, dword [eax + 8]
mov edx, edi
lea ecx, [esi + 0x24]
call fcn.1001e580
test ebx, ebx
je 0x10062b75
mov ecx, dword [ebx + 0x20]
cmp dword [ebx + 0x1c], ecx
jne 0x10062b67
mov eax, dword [ebx + 4]
cmp byte [eax], 0
mov esi, eax
je 0x10062b38
inc esi
cmp byte [esi], 0
jne 0x10062b32
sub esi, eax
push eax
add ecx, 4
and esi, 0x3fffffff
push ecx
call fcn.1001e5d0
mov ecx, dword [eax + 0x44]
add eax, 0x44
add esp, 8
cmp ecx, ebx
je 0x10062b60
lea eax, [ecx + 0x28]
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x10062b57
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
mov dword [eax], edx
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.100625f0
or dword [esi + 0xc], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10072060
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
add ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x10]
cmp ecx, 1
jne 0x100720fb
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x14], 1
jne 0x100720fb
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
jne 0x100720fb
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10072120
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x100720c2
mov dword [ebp - 0x10], 1
jmp 0x100720d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x100720f9
push str.Read_Thread_Connected_n
call fcn.1007764a
add esp, 4
jmp 0x100720fb
jmp 0x100720a4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esp, ebp
pop ebp
ret 4

Function at 0x10072240
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movsx eax, word [ebp + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1007225e
cmp dword [ebp - 8], 3
je 0x100722ae
jmp 0x100722fc
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 1
push 0x1008c34c
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 2
push 0x1008c37c
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x100722fc
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 1
push 0x1008c3ac
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 2
push 0x1008c3e0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100724e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.10072790
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10072524
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x10072530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.10072790
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10072574
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x1007295c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x10072994
cmp dword [ebp + 0xc], ecx
je 0x10072994
cmp dword [ebp + 0x14], ecx
je 0x10072994
cmp dword [ebp + 0x18], ecx
je 0x10072994
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_value_FROM_payload_data_WHERE_payloadID___q_AND_domain___d_AND_key___q
push dword [ebp + 0x18]
push dword [eax]
call fcn.1007434f
add esp, 0x18
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x10072999
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
test eax, eax
je 0x100729e5
cmp dword [ebp + 0xc], 0
je 0x100729e5
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100729e5
push edi
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
push str.SELECT_installState_FROM_payloads_WHERE_payloadID___q
push ecx
push dword [eax]
call fcn.1007434f
add esp, 0x10
cmp dword [ebp + 8], 0
mov edi, eax
je 0x100729dd
push dword [ebp + 8]
call fcn.10076dc6
pop ecx
mov dword [esi], eax
jmp 0x100729e0
and dword [esi], 0
mov eax, edi
pop edi
jmp 0x100729e8
push 0xa
pop eax
pop esi
pop ebp
ret

Function at 0x100729eb
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10072a18
cmp dword [ebp + 0x10], 0
je 0x10072a18
cmp dword [ebp + 0xc], 0
je 0x10072a18
push dword [ebp + 0xc]
push str.SELECT__FROM_user_actions_WHERE_product_id___q
push dword [ebp + 0x10]
push dword [eax]
call fcn.100741d8
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x10072a1d
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10072a61
cmp dword [ebp + 0xc], 0
je 0x10072a61
cmp dword [ebp + 0x14], 0
je 0x10072a61
mov eax, dword [ebp + 0x10]
test eax, eax
js 0x10072a61
cmp eax, 1
jle 0x10072a49
cmp eax, 2
jle 0x10072a61
cmp eax, 7
jg 0x10072a61
push eax
push dword [ebp + 0xc]
push str.SELECT_payloadID_FROM_dependencies_WHERE_payloadIDb___q_AND_type___d
push dword [ebp + 0x14]
push dword [ecx]
call fcn.100741d8
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret
Function at 0x10072e60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
push edi
test eax, eax
je 0x10072ff0
cmp dword [ebp + 0xc], 0
je 0x10072ff0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10072ff0
mov edi, dword [eax]
test edi, edi
jne 0x10072e96
push 9
jmp 0x10072ff2
cmp dword [edi], 0
je 0x10072ea2
push 8
jmp 0x10072ff2
push dword [ebp + 0xc]
push str.SELECT_PayloadID__payload_name__payload_family__payload_version__payload_type_FROM_Payloads_WHERE_PayloadID___q
call fcn.1001cb60
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [edi + 4]
call fcn.100615e0
push ebx
mov dword [ebp + 8], eax
call fcn.1001b360
add esp, 0x24
cmp dword [ebp + 8], 0
je 0x10072eea
push dword [ebp + 8]
call fcn.10073c30
pop ecx
jmp 0x10072ff3
cmp dword [ebp - 0xc], 1
jge 0x10072f03
push 8
pop esi
push dword [ebp - 4]
call fcn.10061790
pop ecx
mov eax, esi
jmp 0x10072ff3
cmp dword [ebp - 8], 5
je 0x10072f0d
push 0xc
jmp 0x10072ef2
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x14]
push ebx
add edi, 0xc
call fcn.10077c10
pop ecx
inc eax
push eax
mov ecx, edi
call fcn.100741af
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.10077b10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + ecx*4 + 4]
push ebx
call fcn.10077c10
add esp, 0xc
inc eax
push eax
mov ecx, edi
call fcn.100741af
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.10077b10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + ecx*4 + 8]
push ebx
call fcn.10077c10
add esp, 0xc
inc eax
push eax
mov ecx, edi
call fcn.100741af
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.10077b10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + ecx*4 + 0xc]
push ebx
call fcn.10077c10
add esp, 0xc
inc eax
push eax
mov ecx, edi
call fcn.100741af
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.10077b10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + ecx*4 + 0x10]
push ebx
call fcn.10077c10
add esp, 0xc
inc eax
push eax
mov ecx, edi
call fcn.100741af
mov edi, eax
push ebx
push edi
call fcn.10077b10
push dword [ebp - 4]
mov dword [esi + 0x10], edi
call fcn.10061790
add esp, 0xc
xor eax, eax
jmp 0x10072ff3
push 0xa
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10072ff8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x10073030
cmp dword [ebp + 0xc], ecx
je 0x10073030
cmp dword [ebp + 0x14], ecx
je 0x10073030
cmp dword [ebp + 0x18], ecx
je 0x10073030
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_value_FROM_PayloadData_WHERE_PayloadID___q_AND_domain___d_AND_key___q
push dword [ebp + 0x18]
push dword [eax]
call fcn.1007434f
add esp, 0x18
pop ebp
ret
push 0xa
pop eax
pop ebp
ret
Function at 0x10073035
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x1007306a
cmp dword [ebp + 0xc], ecx
je 0x1007306a
cmp dword [ebp + 0x10], ecx
je 0x1007306a
cmp dword [ebp + 0x14], ecx
je 0x1007306a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_resource_data_FROM_Branding_WHERE_ProductID___q_AND_resource_type__q
push dword [ebp + 0x14]
push dword [eax]
call fcn.1007434f
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x1007306f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push str.SELECT_eula_hash_FROM_EULA_Ref_WHERE_langCode___q_AND_productID___q
push eax
push dword [esi]
call fcn.1007434f
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x100730b3
test eax, eax
jne 0x100730b3
push dword [ebp - 4]
push str.SELECT_Content_FROM_EULA_Content_WHERE_eula_hash___q
push dword [ebp + 0x14]
push dword [esi]
call fcn.1007434f
add esp, 0x10
pop esi
leave
ret

Function at 0x100730b6
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100730e3
cmp dword [ebp + 0xc], 0
je 0x100730e3
cmp dword [ebp + 0x10], 0
je 0x100730e3
push dword [ebp + 0xc]
push str.SELECT_PayloadID_FROM_SuitePayloads_WHERE_ProductID___q
push dword [ebp + 0x10]
push dword [eax]
call fcn.100741d8
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x10073111
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10073158
cmp dword [ebp + 0x10], 0
je 0x10073158
cmp dword [ebp + 0xc], 0
je 0x10073158
push dword [ebp + 0xc]
push str.SELECT_DISTINCT_langCode_FROM_EULA_Ref_WHERE_productID___q
push dword [ebp + 0x10]
push dword [esi]
call fcn.100741d8
add esp, 0x10
test eax, eax
je 0x1007315b
push dword [ebp + 0xc]
push str.SELECT_DISTINCT_langCode_FROM_EULA_Files_WHERE_productID_q
push dword [ebp + 0x10]
push dword [esi]
call fcn.100741d8
add esp, 0x10
jmp 0x1007315b
push 0xa
pop eax
pop esi
pop ebp
ret
Function at 0x1007315e
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push ebx
push esi
push edi
test eax, eax
je 0x100732d6
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100732d6
mov edi, dword [eax]
test edi, edi
jne 0x1007318a
push 9
jmp 0x100732d8
cmp dword [edi], 0
je 0x10073196
push 8
jmp 0x100732d8
push dword [ebp + 0xc]
push str.SELECT_PayloadID__PayloadIDb__product_family__product_name__version__type_FROM_DependencyData_WHERE_PayloadID___q
call fcn.1001cb60
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [edi + 4]
call fcn.100615e0
push esi
mov dword [ebp + 8], eax
call fcn.1001b360
add esp, 0x24
cmp dword [ebp + 8], 0
je 0x100731de
push dword [ebp + 8]
call fcn.10073c30
pop ecx
jmp 0x100732d9
mov esi, dword [ebp - 0x10]
cmp esi, 1
jge 0x100731f9
push 8
pop esi
push dword [ebp - 0x14]
call fcn.10061790
pop ecx
mov eax, esi
jmp 0x100732d9
cmp dword [ebp - 4], 6
je 0x10073203
push 0xc
jmp 0x100731e8
inc esi
imul esi, esi, 0x18
lea ecx, [edi + 0xc]
push esi
mov dword [ebp - 0x18], ecx
call fcn.100741af
push esi
xor edi, edi
push edi
push eax
mov dword [ebx], eax
call fcn.100775d0
add esp, 0xc
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0x10], edi
jle 0x100732c9
mov dword [ebp - 8], edi
mov esi, dword [ebx]
add esi, dword [ebp - 8]
mov dword [ebp + 8], edi
cmp dword [ebp - 4], edi
jle 0x100732b6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
inc eax
imul eax, dword [ebp - 4]
add eax, dword [ebp + 8]
mov ebx, dword [ecx + eax*4]
push ebx
call fcn.10077c10
pop ecx
mov ecx, dword [ebp - 0x18]
inc eax
push eax
call fcn.100741af
mov edi, eax
push ebx
push edi
call fcn.10077b10
mov eax, dword [ebp + 8]
sub eax, 0
pop ecx
pop ecx
je 0x100732a4
dec eax
je 0x1007329f
dec eax
je 0x1007329a
dec eax
je 0x1007328c
dec eax
je 0x10073287
dec eax
jne 0x100732a6
mov dword [esi + 0x10], edi
jmp 0x100732a6
mov dword [esi + 0x14], edi
jmp 0x100732a6
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 0xc], edi
jmp 0x100732a6
mov dword [esi + 8], edi
jmp 0x100732a6
mov dword [esi + 4], edi
jmp 0x100732a6
mov dword [esi], edi
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jl 0x1007323e
mov ebx, dword [ebp + 0x10]
xor edi, edi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0x18
cmp eax, dword [ebp - 0x10]
jl 0x10073231
push dword [ebp - 0x14]
call fcn.10061790
pop ecx
xor eax, eax
jmp 0x100732d9
push 0xa
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100732de
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x10073313
cmp dword [ebp + 0xc], ecx
je 0x10073313
cmp dword [ebp + 0x10], ecx
je 0x10073313
cmp dword [ebp + 0x14], ecx
je 0x10073313
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push str.SELECT_DISTINCT_PayloadIDb_FROM_DependencyData_WHERE_type___q_and_PayloadID___q
push dword [ebp + 0x14]
push dword [eax]
call fcn.100741d8
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret
Function at 0x10073af7
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
test esi, esi
je 0x10073bf6
test ebx, ebx
je 0x10073bf6
test eax, eax
je 0x10073bf6
test edi, edi
je 0x10073bf6
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
push esi
call fcn.1007306f
add esp, 0x10
test eax, eax
jne 0x10073be0
push dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
call fcn.10013180
mov ecx, dword [ebp - 0x3c]
xor edi, edi
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
mov eax, ecx
jae 0x10073b7d
lea eax, [ebp - 0x3c]
add eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 0x10
jae 0x10073b89
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x20]
push edx
push eax
push ecx
lea eax, [ebp - 0x48]
push eax
call fcn.10073a41
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
add esp, 0x10
inc eax
push eax
add ecx, 0xc
call fcn.100741af
cmp dword [ebp - 0xc], 0x10
mov esi, eax
mov eax, dword [ebp - 0x20]
jae 0x10073bb8
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10077b10
mov eax, dword [ebp - 0x40]
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x20]
mov dword [eax], esi
call fcn.10006630
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.10006630
xor eax, eax
jmp 0x10073bf9
push edi
push ebx
push str.SELECT_eula_FROM_EULA_Files_WHERE_langCode___q_AND_productID___q
push dword [ebp - 0x40]
push dword [esi]
call fcn.1007434f
add esp, 0x14
jmp 0x10073bf9
push 0xa
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075b7f
leave
ret