joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006ca0
Capabilities:
Query service configuration

Disassembly:
push ecx
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x10006cbc
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push 1
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10006ce4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push esi
mov dword [esp + 0x20], 0
call ebp
mov edx, dword [esp + 0x10]
push edx
call fcn.1000ea50
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push esi
call ebp
test eax, eax
jne 0x10006d35
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ebp, dword [edi + 4]
push edi
call fcn.1000ce20
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push ebx
call edi
push esi
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x10006d60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10018edf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push 0x80000002
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], 0
call fcn.1000eb40
mov ebx, 1
push str.SYSTEMCurrentControlSetServices_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], ebx
call fcn.1000dd80
push 0x105
mov byte [esp + 0x3c], 2
call fcn.1000ea50
add esp, 4
push 0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.1000dd80
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 3
mov dword [esp + 0x10], 0x104
call fcn.1000dd70
push 0xf003f
lea ecx, [esp + 0x1c]
call fcn.1000dd60
push eax
lea ecx, [esp + 0x28]
call fcn.1000eb60
test eax, eax
je 0x10006e18
push esi
call fcn.1000ce20
mov esi, dword [esp + 0x44]
add esp, 4
push 0x1001a3f4
mov ecx, esi
call fcn.1000dd80
jmp 0x10006e82
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push esi
push 0
push 0
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea ecx, [esp + 0x20]
je 0x10006e5a
call fcn.1000eb90
push esi
call fcn.1000ce20
mov esi, dword [esp + 0x44]
add esp, 4
push 0x1001a3f4
mov ecx, esi
call fcn.1000dd80
jmp 0x10006e82
call fcn.1000eb90
push esi
lea ecx, [esp + 0x14]
call fcn.1000dfa0
push esi
call fcn.1000ce20
mov esi, dword [esp + 0x44]
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.1000ddc0
lea ecx, [esp + 0x10]
mov dword [esp + 8], ebx
mov byte [esp + 0x38], 2
call fcn.1000d8c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call fcn.1000d8c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 0
call fcn.1000d8c0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x10006ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10018f1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push 0x80000002
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], 0
call fcn.1000eb40
mov ebx, 1
push str.SYSTEMCurrentControlSetServices_
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebx
call fcn.1000dd80
push 0x2001
mov byte [esp + 0x3c], 2
mov dword [esp + 0x10], 0x2000
call fcn.1000ea50
add esp, 4
push 0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.1000dd80
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call fcn.1000dd70
push 0x1001a330
lea ecx, [esp + 0x14]
call fcn.1000dd70
push str.Parameters
lea ecx, [esp + 0x14]
call fcn.1000dd70
push 0xf003f
lea ecx, [esp + 0x14]
call fcn.1000dd60
push eax
lea ecx, [esp + 0x28]
call fcn.1000eb60
test eax, eax
je 0x10006fa4
push esi
call fcn.1000ce20
mov esi, dword [esp + 0x44]
add esp, 4
push 0x1001a3f4
mov ecx, esi
call fcn.1000dd80
jmp 0x10007012
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push esi
push 0
push 0
push str.Parameters
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006fe6
push esi
call fcn.1000ce20
add esp, 4
lea ecx, [esp + 0x20]
call fcn.1000eb90
mov esi, dword [esp + 0x40]
push 0x1001a3f4
mov ecx, esi
call fcn.1000dd80
jmp 0x10007012
lea ecx, [esp + 0x20]
call fcn.1000eb90
push esi
lea ecx, [esp + 0x1c]
call fcn.1000dfa0
push esi
call fcn.1000ce20
mov esi, dword [esp + 0x44]
add esp, 4
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.1000ddc0
lea ecx, [esp + 0x18]
mov dword [esp + 8], ebx
mov byte [esp + 0x38], 2
call fcn.1000d8c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call fcn.1000d8c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 0
call fcn.1000d8c0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x10007060
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10018edf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push 0x80000002
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], 0
call fcn.1000eb40
mov ebx, 1
push str.SYSTEMCurrentControlSetServices_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], ebx
call fcn.1000dd80
push 0x105
mov byte [esp + 0x3c], 2
call fcn.1000ea50
add esp, 4
push 0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.1000dd80
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 3
mov dword [esp + 0x10], 0x104
call fcn.1000dd70
push 0xf003f
lea ecx, [esp + 0x1c]
call fcn.1000dd60
push eax
lea ecx, [esp + 0x28]
call fcn.1000eb60
test eax, eax
je 0x10007118
push esi
call fcn.1000ce20
mov esi, dword [esp + 0x44]
add esp, 4
push 0x1001a3f4
mov ecx, esi
call fcn.1000dd80
jmp 0x10007186
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push esi
push 0
push 0
push str.ObjectName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000715a
push esi
call fcn.1000ce20
add esp, 4
lea ecx, [esp + 0x20]
call fcn.1000eb90
mov esi, dword [esp + 0x40]
push 0x1001a3f4
mov ecx, esi
call fcn.1000dd80
jmp 0x10007186
lea ecx, [esp + 0x20]
call fcn.1000eb90
push esi
lea ecx, [esp + 0x14]
call fcn.1000dfa0
push esi
call fcn.1000ce20
mov esi, dword [esp + 0x44]
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.1000ddc0
lea ecx, [esp + 0x10]
mov dword [esp + 8], ebx
mov byte [esp + 0x38], 2
call fcn.1000d8c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call fcn.1000d8c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 0
call fcn.1000d8c0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x100071d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10018f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.1000dd80
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.1000dd80
mov esi, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.1000dfa0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.SybASIQ_
call edi
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.1000de00
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call fcn.1000e0f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.1000d8c0
push str.SybASIQ_
lea ecx, [esp + 0xc]
call fcn.1000dc80
test eax, eax
jne 0x1000726f
mov esi, 0xa
jmp 0x100072d4
push str.ASANY__
call edi
movsx eax, byte [eax + esi - 2]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.0x1000728a.98
movzx ecx, byte [eax + 0x10007330]
jmp dword [ecx*4 + 0x10007308]
mov esi, 2
jmp 0x100072d4
mov esi, 3
jmp 0x100072d4
mov esi, 4
jmp 0x100072d4
mov esi, 5
jmp 0x100072d4
mov esi, 6
jmp 0x100072d4
mov esi, 7
jmp 0x100072d4
mov esi, 8
jmp 0x100072d4
mov esi, 9
jmp 0x100072d4
mov esi, 0xb
jmp 0x100072d4
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.1000d8c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.1000d8c0
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x10007380
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10018fa7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.1000dd80
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esi + 8], ecx
xor ebp, ebp
push eax
lea ecx, [esi + 0x10]
mov dword [esp + 0x24], ebp
mov dword [esi + 0xc], edx
call fcn.1000dd80
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esi + 0x18]
mov byte [esp + 0x24], 1
call fcn.1000dd80
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x24], 2
mov dword [esi + 0x20], edx
call fcn.1000dd80
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esi + 0x2c]
mov byte [esp + 0x24], 3
call fcn.1000dd80
lea edi, [esi + 0x34]
push esi
mov ecx, edi
mov byte [esp + 0x24], 4
call fcn.1000ddc0
mov edx, dword [esi + 8]
push edx
sub esp, 8
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
mov byte [esp + 0x30], 5
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x44], ebp
call fcn.1000ddc0
lea eax, [esp + 0x1c]
push eax
call fcn.10005d70
add esp, 0x10
push eax
mov ecx, edi
mov byte [esp + 0x24], 6
call fcn.1000e0f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 5
call fcn.1000d8c0
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret 0x20
Function at 0x10007480
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10018fa7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.1000dd80
mov ecx, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esi + 8], ecx
push ebp
lea ecx, [esi + 0x10]
mov dword [esp + 0x24], ebp
call fcn.1000dd80
push ebp
lea ecx, [esi + 0x18]
mov byte [esp + 0x24], 1
call fcn.1000dd80
push ebp
lea ecx, [esi + 0x24]
mov byte [esp + 0x24], 2
call fcn.1000dd80
push ebp
lea ecx, [esi + 0x2c]
mov byte [esp + 0x24], 3
call fcn.1000dd80
lea edi, [esi + 0x34]
push esi
mov ecx, edi
mov byte [esp + 0x24], 4
call fcn.1000ddc0
mov edx, dword [esi + 8]
push edx
sub esp, 8
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
mov byte [esp + 0x30], 5
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x44], ebp
call fcn.1000ddc0
lea eax, [esp + 0x1c]
push eax
call fcn.10005d70
add esp, 0x10
push eax
mov ecx, edi
mov byte [esp + 0x24], 6
call fcn.1000e0f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 5
call fcn.1000d8c0
mov ecx, esi
call fcn.10006380
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret 8
Function at 0x10007970
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0x80000000
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x100079ab
push 4
lea ecx, [esi + 0x34]
call fcn.1000dd60
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
push edi
jne 0x100079c9
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x424
setne cl
pop edi
pop esi
dec ecx
and ecx, 0xfffffff6
mov eax, ecx
add esp, 0x1c
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
push esi
jne 0x10007a06
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100079fa
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 0x1c
ret 4
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 4
call edi
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x1c
ret 4

Function at 0x10007a20
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x40]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edx, dword [esi + 0x40]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edx
call ebp
cmp dword [esp + 0xc], 1
jne 0x10007a9e
push edi
push 0x80000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10007a82
push ebx
push 4
lea ecx, [esi + 0x34]
call fcn.1000dd60
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov ebx, eax
call ebp
test ebx, ebx
jne 0x10007a7f
xor eax, eax
jmp 0x10007a81
mov eax, ebx
pop ebx
mov dword [esi + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x40]
test ecx, ecx
pop edi
jne 0x10007aa6
cmp eax, 0x424
je 0x10007aba
test eax, eax
je 0x10007aba
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
cmp eax, 0x424
jne 0x10007ab4
mov ecx, esi
call fcn.10006bd0
mov eax, dword [esi + 0x40]
push eax
call ebp
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
Function at 0x10007ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10019050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push 0x80000002
lea ecx, [esp + 0x14]
call fcn.1000eb40
add esi, 0x34
push esi
lea eax, [esp + 0xc]
push str.SYSTEMCurrentControlSetServices_
push eax
mov dword [esp + 0x34], 0
call fcn.1000e2c0
add esp, 0xc
push 0xf003f
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.1000dd60
push eax
lea ecx, [esp + 0x18]
call fcn.1000eb60
test eax, eax
je 0x10007b69
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.1000d8c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.1000d8c0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
push str.DeleteFlag
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.1000eb90
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.1000d8c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.1000d8c0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x10008500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001915b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esi + 4]
mov dword [esp + 0xc], esi
mov dword [esi], 0
call fcn.1000dd80
push str.advapi32
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
xor eax, eax
test edx, edx
mov ecx, 6
lea edi, [esp + 0xc]
mov dword [esi + 0x10], edx
rep stosd dword es:[edi], eax
je 0x1000857e
push str.LsaOpenPolicy
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000857e
lea ecx, [esi + 0xc]
push ecx
push 0x810
lea edx, [esp + 0x14]
push edx
push 0
call eax
mov ecx, esi
call fcn.10008070
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x1000a440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov ebx, 0x100201f8
jmp 0x1000a460
mov ecx, 0xa
mov esi, str.SoftwareSybaseAdaptive_Server_Anywhere
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000a476
mov ax, word [0x1001a330]
mov word [edi], ax
mov eax, dword [esp + 0xe4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a490
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000a4a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x1000a51a
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000a51a
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x14], ecx
je 0x1000a536
add ebx, 4
cmp ebx, 0x10020200
jl 0x1000a460
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret

Function at 0x1000d560
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, str.Unknown_error
je 0x1000d570
mov eax, esi
push 0
push str.SQLAnywhere_Fatal_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x1000d58d
push esi
call fcn.1001107f
add esp, 4
push 1
call fcn.1001155f
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1000e100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100191cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
push 0x40
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x40
call fcn.1000ea50
mov ecx, dword [0x100212c8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 4
push ecx
push eax
mov dword [esp + 0x18], eax
call edi
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x14]
call fcn.1000d950
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 1
call fcn.1000d950
mov esi, dword [esp + 0x28]
push 0x40
mov ebp, eax
mov dword [esi], 0
mov dword [esi + 4], 0x40
call fcn.1000ea50
mov ecx, dword [0x100212c8]
add esp, 4
push ecx
push eax
mov dword [esi], eax
call edi
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.1000d950
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 0
call fcn.1000ce20
mov ecx, dword [esp + 0x1c]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x1000e1e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100191cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
push 0x40
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x40
call fcn.1000ea50
mov ecx, dword [0x100212c8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 4
push ecx
push eax
mov dword [esp + 0x18], eax
call edi
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x14]
call fcn.1000d950
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 1
call fcn.1000d950
mov esi, dword [esp + 0x28]
push 0x40
mov ebp, eax
mov dword [esi], 0
mov dword [esi + 4], 0x40
call fcn.1000ea50
mov edx, dword [0x100212c8]
add esp, 4
push edx
push eax
mov dword [esi], eax
call edi
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.1000d950
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 0
call fcn.1000ce20
mov ecx, dword [esp + 0x1c]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x1000f6a2
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000f78f
mov eax, 0x94
call fcn.1000f160
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000f804
mov ecx, dword [esi + 0x10]
mov dword [0x10022a38], ecx
mov eax, dword [esi + 4]
mov dword [0x10022a44], eax
mov edx, dword [esi + 8]
mov dword [0x10022a48], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10022a3c], esi
je 0x1000f70d
or esi, 0x8000
mov dword [0x10022a3c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10022a40], eax
call fcn.10012556
test eax, eax
pop ecx
je 0x1000f804
call fcn.10012478
test eax, eax
jne 0x1000f73a
call fcn.100125a7
jmp 0x1000f804
call fcn.10013ce4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10024294], eax
call fcn.10013bc2
mov dword [0x10022a1c], eax
call fcn.100136a3
test eax, eax
jl 0x1000f788
call fcn.10013b20
test eax, eax
jl 0x1000f783
call fcn.100138ed
test eax, eax
jl 0x1000f783
call fcn.10011427
test eax, eax
jne 0x1000f783
inc dword [0x10022a18]
jmp 0x1000f815
call fcn.100138a1
call fcn.1001226b
jmp 0x1000f730
test eax, eax
jne 0x1000f7bf
cmp dword [0x10022a18], eax
jle 0x1000f804
dec dword [0x10022a18]
cmp dword [0x10022a74], eax
jne 0x1000f7ae
call fcn.10011581
call fcn.100138a1
call fcn.1001226b
call fcn.100125a7
jmp 0x1000f815
cmp eax, 2
jne 0x1000f808
push 0x88
push 1
call fcn.100135e8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000f804
push esi
push dword [0x100215a8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x1000f7fe
call fcn.10012289
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000f815
call fcn.1000f19d
pop ecx
xor eax, eax
jmp 0x1000f818
cmp eax, 3
jne 0x1000f815
push 0
call fcn.1001230d
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x100100d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100100f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10010672
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10010117
test byte [esp + 8], 2
je 0x10010117
call fcn.10010660
mov dword [eax], 0xd
call fcn.10010669
mov dword [eax], 5
jmp 0x100100f0
xor eax, eax
ret