joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101954a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov edi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.1002aca0
lea ecx, [esp + 0x10]
push ecx
push ecx
push eax
mov dword [esp + 0x6c], 0
mov esi, dword [esi + 0x10]
push esi
lea edx, [ebp + 0x14]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.100462b0
add esp, 0x1c
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.1016c53b
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x28], edx
test eax, eax
je 0x10045a77
push 0
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.1016c059
mov eax, dword [edi + 4]
test eax, eax
jbe 0x10045a55
cmp eax, 0xffffffff
jae 0x10045a55
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x2c]
and esi, edi
call fcn.1016c081
test esi, esi
je 0x10045a77
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [ebp + 0x10], 0
jne 0x10045a85
lea ecx, [ebp + 0xc]
call fcn.100477e0
cmp byte [ebp + 0x18], 0
jne 0x10045a93
lea ecx, [ebp + 0x14]
call fcn.100477e0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10045ac7
cmp dword [ebp + 0x14], ecx
je 0x10045acd
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x30]
cmp dword [esp + 0x14], edx
je 0x10045ad6
cmp dword [esp + 0x10], 0
jne 0x10045ad6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
jmp 0x10045ad9
cmp dword [ebp + 0x14], 0
je 0x10045a9f
mov eax, dword [esp + 0xc]
or dword [eax], 1
jmp 0x10045aa3
or dword [eax], 2
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10045b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101954a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov edi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.1002aca0
lea ecx, [esp + 0x10]
push ecx
push ecx
push eax
mov dword [esp + 0x6c], 0
mov esi, dword [esi + 0x10]
push esi
lea edx, [ebp + 0x14]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.100462b0
add esp, 0x1c
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.1016c5fe
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x28], edx
test eax, eax
je 0x10045c07
push 0
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.1016c059
mov eax, dword [edi + 4]
test eax, eax
jbe 0x10045be5
cmp eax, 0xffffffff
jae 0x10045be5
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x2c]
and esi, edi
call fcn.1016c081
test esi, esi
je 0x10045c07
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [ebp + 0x10], 0
jne 0x10045c15
lea ecx, [ebp + 0xc]
call fcn.100477e0
cmp byte [ebp + 0x18], 0
jne 0x10045c23
lea ecx, [ebp + 0x14]
call fcn.100477e0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10045c57
cmp dword [ebp + 0x14], ecx
je 0x10045c5d
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x30]
cmp dword [esp + 0x14], edx
je 0x10045c66
cmp dword [esp + 0x10], 0
jne 0x10045c66
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
jmp 0x10045c69
cmp dword [ebp + 0x14], 0
je 0x10045c2f
mov eax, dword [esp + 0xc]
or dword [eax], 1
jmp 0x10045c33
or dword [eax], 2
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0x20
Function at 0x1004a440
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x1019912b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
xor ebx, ebx
push eax
mov dword [esi], vtable.DA_cmd.0
mov dword [esi + 8], 4
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
call fcn.100701f0
mov dword [esp + 0x30], ebx
mov eax, dword [esi + 4]
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
cmp eax, ebx
je 0x1004a4aa
mov ecx, dword [eax]
jmp 0x1004a4ac
xor ecx, ecx
push ecx
push eax
push str.m_p_stopflag_0x_08X__u.
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x24], 0x52
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.DA_cmd::DA_cmd
call fcn.10017c90
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8
Function at 0x1006d1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10198f68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.DAEntryBase.0
call fcn.1006ff40
xor eax, eax
xor ecx, ecx
xor edx, edx
mov word [esi + 0x24], ax
mov word [esi + 0x26], cx
mov word [esi + 0x28], dx
mov word [esi + 0x2a], ax
mov word [esi + 0x2c], cx
mov word [esi + 0x2e], dx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov byte [esi + 0x30], al
mov eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, esi
mov dword [esi], vtable.DAEntryV3.0
call fcn.1006daa0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc

Function at 0x1006d2b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10198f68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.DAEntryBase.0
call fcn.1006ff40
xor eax, eax
xor ecx, ecx
xor edx, edx
mov word [esi + 0x24], ax
mov word [esi + 0x26], cx
mov word [esi + 0x28], dx
mov word [esi + 0x2a], ax
mov word [esi + 0x2c], cx
mov word [esi + 0x2e], dx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov byte [esi + 0x30], al
mov eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, esi
mov dword [esi], vtable.DAEntryV4.0
call fcn.1006dec0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x10075f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1019deca
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x24], 0
call fcn.1002b550
mov esi, dword [esp + 0xc8]
mov dword [esp + 0xbc], 1
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
mov edx, dword [esp + eax + 0x3c]
lea eax, [esp + eax + 0x2c]
and edx, 0xfffff9ff
or edx, 0x800
mov dword [eax + 0x10], edx
mov byte [esp + 0x1b], 0
add esi, 0x160
mov dword [esp + 0x1c], 4
xor edi, edi
lea ebp, [edi + 4]
mov ebx, dword [esi]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov ecx, edi
shr ebx, cl
lea ecx, [esp + 0x24]
lea eax, [esp + eax + 0x2c]
push 2
push ecx
and ebx, 0xff
mov byte [eax + 0x30], 0x30
call fcn.1016ca22
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x38]
mov edx, dword [eax]
push ecx
call edx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
or dword [esp + eax + 0x4c], 4
add esp, 0x10
push ebx
lea ecx, [esp + 0x30]
lea eax, [esp + eax + 0x30]
push ecx
call fcn.10072c70
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0xcc]
movzx edx, al
inc al
add edi, 8
sub ebp, 1
mov byte [edx + ecx], bl
mov byte [esp + 0x1b], al
jne 0x10076017
add esi, 4
sub dword [esp + 0x1c], 1
jne 0x10076012
mov esi, dword [esp + 0xc4]
lea ecx, [esp + 0x2c]
call fcn.1002b680
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], 1
mov byte [esp + 0xbc], 0
call fcn.1002b5e0
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.1016bc5e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 0xc
Function at 0x10077280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1019deca
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x24], 0
call fcn.1002b550
mov esi, dword [esp + 0xc8]
mov dword [esp + 0xbc], 1
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
mov edx, dword [esp + eax + 0x3c]
lea eax, [esp + eax + 0x2c]
and edx, 0xfffff9ff
or edx, 0x800
mov dword [eax + 0x10], edx
mov byte [esp + 0x1b], 0
add esi, 0x188
mov dword [esp + 0x1c], 4
xor edi, edi
lea ebp, [edi + 4]
mov ebx, dword [esi]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov ecx, edi
shr ebx, cl
lea ecx, [esp + 0x24]
lea eax, [esp + eax + 0x2c]
push 2
push ecx
and ebx, 0xff
mov byte [eax + 0x30], 0x30
call fcn.1016ca22
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x38]
mov edx, dword [eax]
push ecx
call edx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
or dword [esp + eax + 0x4c], 4
add esp, 0x10
push ebx
lea ecx, [esp + 0x30]
lea eax, [esp + eax + 0x30]
push ecx
call fcn.10072c70
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0xcc]
movzx edx, al
inc al
add edi, 8
sub ebp, 1
mov byte [edx + ecx], bl
mov byte [esp + 0x1b], al
jne 0x10077307
add esi, 4
sub dword [esp + 0x1c], 1
jne 0x10077302
mov esi, dword [esp + 0xc4]
lea ecx, [esp + 0x2c]
call fcn.1002b680
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], 1
mov byte [esp + 0xbc], 0
call fcn.1002b5e0
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.1016bc5e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 0xc
Function at 0x1007a5d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x240], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
cmp ecx, 3
ja case.default.0x1007a5fa
jmp dword [ecx*4 + 0x1007a7c8]
push 0x104
lea ecx, [esp + 0x44]
push ecx
push eax
mov dword [0x103b3234], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x1007a62a
lea edx, [esp + 0x40]
push edx
mov ecx, 0x10289604
call fcn.100045f0
push 0x34
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.10173270
mov eax, dword [0x10289608]
add esp, 0xc
cmp dword [0x1028961c], 0x10
jae 0x1007a656
mov eax, 0x10289608
push 0x1022acf8
push eax
call fcn.1016f9bf
mov esi, eax
add esp, 8
test esi, esi
je 0x1007a6da
lea ecx, [esp + 8]
push ecx
push esi
call fcn.1017b458
add esp, 4
push eax
call fcn.1016f9d6
add esp, 8
test eax, eax
jne 0x1007a6d1
lea edx, [esp + 0x30]
push edx
call fcn.10170001
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 4
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
inc ecx
push ecx
add edx, 0x76c
push edx
lea eax, [esp + 0x58]
push str._02d__02d__02d__02d:_02d:_02d
push eax
call fcn.1016d80a
add esp, 0x20
lea ecx, [esp + 0x40]
push ecx
mov ecx, 0x10289620
call fcn.100045f0
push esi
call fcn.1016f172
add esp, 4
push 0
push 0
push 0
push 0
call sym.FlashToolLib.v1.dll_Brom_GetDLLVer
call fcn.10017f00
test eax, eax
je 0x1007a707
xor eax, eax
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1027a330], eax
cmp eax, 0xffffffff
je 0x1007a6f0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x1027a330]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0xc
call fcn.1007a7e0
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0xc
call fcn.1007a7e0
test eax, eax
je 0x1007a6f0
mov eax, dword [0x1027a330]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1027a330], 0xffffffff
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x244]
pop esi
xor ecx, esp
mov eax, 1
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1007a7e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1027a330]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1007a7f6
mov eax, 1
ret
push eax
call fcn.1016dfc5
mov ecx, dword [0x1027a330]
add esp, 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret
Function at 0x1007b280
Capabilities:
Create directory

Disassembly:
cmp dword [0x10289670], 0x10
mov eax, dword [0x1028965c]
jae 0x1007b293
mov eax, 0x1028965c
push esi
test eax, eax
je 0x1007b357
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1007b2a1
sub ecx, esi
cmp ecx, 2
jbe 0x1007b357
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1007b2b7
push edi
lea eax, [ebx + 2]
push 0x5c
push eax
call fcn.1016d030
mov edi, eax
add esp, 8
test edi, edi
jne 0x1007b2db
pop edi
xor al, al
pop esi
ret
inc edi
push 0x5c
push edi
call fcn.10170030
mov esi, eax
add esp, 8
test esi, esi
je 0x1007b34f
cmp byte [esi], 0x5c
jne 0x1007b2fb
mov byte [esi], 0
dec esi
cmp byte [esi], 0x5c
je 0x1007b2f2
push 0x5c
push edi
call fcn.10170030
add esp, 8
test eax, eax
je 0x1007b31b
cmp byte [eax], 0x5c
jne 0x1007b319
nop
mov byte [eax], 0
dec eax
cmp byte [eax], 0x5c
je 0x1007b310
mov esi, eax
dec esi
lea esp, [esp]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1007b320
mov ecx, dword [str._EFUSE__]
mov dword [esi], ecx
mov edx, dword [0x1022ade4]
mov dword [esi + 4], edx
mov al, byte [0x1022ade8]
push 0
push ebx
mov byte [esi + 8], al
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov al, 1
pop esi
ret
mov byte [edi], 0
pop edi
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x10084080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101a1aeb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0x20
call fcn.1016d7a5
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x100840cc
push 0x1a8b
mov esi, eax
call fcn.10089b70
mov esi, eax
jmp 0x100840ce
xor esi, esi
push 0x18
mov dword [esp + 0x18], 0xffffffff
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x10084115
mov dword [eax + 4], 0
mov edx, 0x24c
mov word [eax + 0xc], dx
lea ecx, [edi + 8]
mov dword [eax + 8], ecx
mov edx, 0x24e
mov word [eax + 0xe], dx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0x10207488
mov dword [eax], vtable.EfusePMIC_MT6795.0
jmp 0x10084117
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
mov edx, dword [esp + 0x30]
push edi
mov ecx, eax
call fcn.1007e820
mov dword [edi], vtable.EfuseMT6795.0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x100887d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101a1aeb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0x20
call fcn.1016d7a5
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x1008881c
push 0x1fed
mov esi, eax
call fcn.10089b70
mov esi, eax
jmp 0x1008881e
xor esi, esi
push 0x18
mov dword [esp + 0x18], 0xffffffff
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x10088862
mov dword [eax + 4], 0
mov edx, 0x278
mov word [eax + 0xc], dx
lea ecx, [edi + 8]
mov dword [eax + 8], ecx
xor edx, edx
mov word [eax + 0xe], dx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0x10207440
mov dword [eax], vtable.EfusePMIC_MT8173.0
jmp 0x10088864
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
mov edx, dword [esp + 0x30]
push edi
mov ecx, eax
call fcn.1007e820
mov dword [edi], vtable.EfuseMT8173.0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x1008a390
Capabilities:
Get hostname

Disassembly:
sub esp, 0xa8
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0xa0], eax
push edi
push 0x7f
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.10173270
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x24]
push edx
push 2
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea eax, [esp + 0x20]
push eax
push str.Computer_domain_name:__s
lea edi, [esp + 0x14]
mov dword [esp + 0x14], str.FlashToolLib_sv5_common_generic_src_EfuseOption.cpp
mov dword [esp + 0x18], 0x11d
mov byte [esp + 0x1c], 0
mov dword [esp + 0x20], str._DEBUG:
mov dword [esp + 0x24], str.EfuseOption::VerifyDomain
call fcn.10017c90
lea ecx, [esp + 0x28]
push ecx
call fcn.1018cd45
add esp, 0xc
lea edx, [esp + 0x20]
push str.mediatek.inc
push edx
call fcn.1016cf90
mov ecx, dword [esp + 0xac]
add esp, 8
neg eax
sbb eax, eax
pop edi
xor ecx, esp
neg eax
call fcn.1016cb16
add esp, 0xa8
ret
Function at 0x1008af40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101a0b38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
xor esi, esi
mov dword [esp + 0x10], esi
test eax, 0xfffffffc
je 0x1008b08c
lea edx, [esp + 0x14]
push edx
call fcn.1007f5c0
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, eax
sub ecx, esi
sar ecx, 2
test ecx, ecx
ja 0x1008afb3
call fcn.1016d669
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp dword [edi + 0x18], 0x10
mov ebx, esi
jb 0x1008afc0
mov edi, dword [edi + 4]
jmp 0x1008afc3
add edi, 4
sub eax, esi
sar eax, 2
test eax, eax
ja 0x1008afd5
call fcn.1016d669
mov esi, dword [esp + 0x20]
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
push edx
push edi
mov edx, ebx
call fcn.1008a450
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edx, 1
ja 0x1008b00c
call fcn.1016d669
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edi, dword [ebp + 0x14]
cmp dword [edi + 0x18], 0x10
lea edx, [eax + 4]
mov dword [esp + 0x10], edx
jb 0x1008b021
mov edi, dword [edi + 4]
jmp 0x1008b024
add edi, 4
sub ecx, eax
sar ecx, 2
cmp ecx, 1
ja 0x1008b037
call fcn.1016d669
mov eax, dword [esp + 0x20]
lea esi, [eax + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax + 0x3c]
push edi
mov edx, ebx
call fcn.1008a450
mov dword [esi], eax
mov esi, dword [ebp + 0xc]
push esi
lea ecx, [esp + 0x18]
call fcn.1007f5c0
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
je 0x1008b071
push eax
call fcn.1016d679
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.1016d679
add esp, 4
jmp 0x1008b095
mov esi, dword [ebp + 0xc]
push esi
call fcn.1007f5c0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1008e700
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x101a0b0b
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov dword [esi], vtable.EfuseTmpl.0
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov eax, dword [eax]
push 8
call fcn.10128600
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x10], 1
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x24]
push eax
mov dword [esi + 0x20], ecx
call fcn.10104300
lea eax, [esi + 0x44]
push eax
mov byte [esp + 0x14], 2
call fcn.10104300
lea eax, [esi + 0x64]
push eax
mov byte [esp + 0x14], 3
call fcn.10104300
lea eax, [esi + 0x84]
push eax
mov byte [esp + 0x14], 4
call fcn.10104300
lea eax, [esi + 0xa4]
push eax
mov byte [esp + 0x14], 5
call fcn.10104300
lea eax, [esi + 0xc4]
push eax
mov byte [esp + 0x14], 6
call fcn.10104300
mov byte [esp + 0x10], 7
cmp dword [esi + 0x20], 0
je 0x1008e7f9
cmp dword [esi + 0x1c], 0
je 0x1008e7f9
call fcn.10092280
test al, al
jne 0x1008e7f9
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [esi + 0x20]
mov dword [ecx + 4], eax
mov eax, esi
call fcn.1008e920
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0x1c