joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f8480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, dword [0x1027a330]
cmp esi, 0xffffffff
jne 0x100f8495
mov eax, 1
pop esi
ret 4
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x100f84d4
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100f84ae
pop ebx
pop esi
ret 4
push eax
call fcn.1016dfc5
mov eax, dword [0x1027a330]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
and eax, 0xfffffffe
pop ebx
add eax, 2
pop esi
ret 4
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100f84e0
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x80
jbe 0x100f84ff
pop edi
pop ebx
mov eax, 3
pop esi
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x100f8541
push 0x81
call fcn.1016bba0
mov ecx, dword [0x1027a330]
add esp, 4
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100f8541
push esi
call fcn.1016dfc5
add esp, 4
pop edi
pop ebx
mov eax, 4
pop esi
ret 4
inc edi
push edi
push ebx
push esi
call fcn.1016d8b0
add esp, 0xc
pop edi
pop ebx
xor eax, eax
pop esi
ret 4

Function at 0x100f8590
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x268
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push edi
lea ecx, [esp + 0x164]
push 0x10240334
push ecx
mov dword [esp + 0x14], eax
call fcn.1016d80a
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100f8631
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x103b321c]
push eax
push str.GetFileList__:_invalid_file_handle__error____u_
push ecx
push str.FlashToolLib_host_windows_host_impl.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x1b2
lea esi, [esp + 0x1c]
call fcn.10111280
push eax
call fcn.10111350
add esp, 0x10
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100f863d
cmp dword [ebx], 0x2694
je 0x100f8666
cmp dword [esp + 0x20], 0x10
je 0x100f8654
mov eax, dword [esp + 8]
lea edx, [esp + 0x4c]
push edx
push edi
push eax
call fcn.100e1bd0
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100f8631
jmp 0x100f869c
push str.user_stop
lea edi, [esp + 0x10]
mov dword [esp + 0x10], str.FlashToolLib_host_windows_host_impl.cpp
mov dword [esp + 0x14], 0x1bc
mov byte [esp + 0x18], 0
mov dword [esp + 0x1c], str._DEBUG:
mov dword [esp + 0x20], str.GetFileList
call fcn.10017c90
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.1016cb16
mov esp, ebp
pop ebp
ret
Function at 0x100f86c0
Capabilities:
Check os version

Disassembly:
sub esp, 0xc0
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push esi
push edi
push 0x9c
xor ebx, ebx
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.10173270
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0x9c
call esi
test eax, eax
jne 0x100f871c
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], 0x94
call esi
test eax, eax
je 0x100f88c1
mov eax, dword [esp + 0x28]
sub eax, 4
je 0x100f883f
mov ecx, 1
sub eax, ecx
je 0x100f87fe
sub eax, ecx
jne 0x100f88c1
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x100f87b1
sub eax, ecx
je 0x100f8764
sub eax, ecx
jne 0x100f88c1
mov dword [esp + 0x14], 0x22e
push str.Microsoft_Windows_8.
jmp 0x100f8899
mov dword [esp + 0x10], str.FlashToolLib_host_windows_host_impl.cpp
mov byte [esp + 0x18], bl
mov dword [esp + 0x1c], str._DEBUG:
mov dword [esp + 0x20], str.PrintOSVersion
lea edi, [esp + 0x10]
cmp byte [esp + 0xbe], cl
jne 0x100f879f
mov dword [esp + 0x14], 0x225
push str.Microsoft_Windows_7.
jmp 0x100f88b9
mov dword [esp + 0x14], 0x229
push str.Microsoft_Windows_Server_2008_R2.
jmp 0x100f88b9
mov dword [esp + 0x10], str.FlashToolLib_host_windows_host_impl.cpp
mov byte [esp + 0x18], bl
mov dword [esp + 0x1c], str._DEBUG:
mov dword [esp + 0x20], str.PrintOSVersion
lea edi, [esp + 0x10]
cmp byte [esp + 0xbe], cl
jne 0x100f87ec
mov dword [esp + 0x14], 0x21a
push str.Microsoft_Windows_Vista.
jmp 0x100f88b9
mov dword [esp + 0x14], 0x21e
push str.Microsoft_Windows_2008.
jmp 0x100f88b9
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x100f8830
sub eax, ecx
je 0x100f8821
sub eax, ecx
jne 0x100f88c1
mov dword [esp + 0x14], 0x20f
push str.Microsoft_Windows_Server_2003_family.
jmp 0x100f8899
mov dword [esp + 0x14], 0x20b
push str.Microsoft_Windows_XP.
jmp 0x100f8899
mov dword [esp + 0x14], 0x207
push str.Microsoft_Windows_2000.
jmp 0x100f8899
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x100f886f
cmp eax, 0xa
je 0x100f8860
cmp eax, 0x5a
jne 0x100f88c1
mov dword [esp + 0x14], 0x1fe
push str.Microsoft_Windows_Millennum_Edition.
jmp 0x100f8899
mov dword [esp + 0x14], 0x1fa
push str.Microsoft_Windows_98.
jmp 0x100f8899
mov eax, dword [esp + 0x34]
cmp eax, 2
jne 0x100f8887
mov dword [esp + 0x14], 0x1f1
push str.Microsoft_Windows_NT_4.0.
jmp 0x100f8899
cmp eax, 1
jne 0x100f88c1
mov dword [esp + 0x14], 0x1f5
push str.Microsoft_Windows_95.
mov dword [esp + 0x14], str.FlashToolLib_host_windows_host_impl.cpp
mov byte [esp + 0x1c], bl
mov dword [esp + 0x20], str._DEBUG:
mov dword [esp + 0x24], str.PrintOSVersion
lea edi, [esp + 0x14]
call fcn.10017c90
add esp, 4
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1016cb16
add esp, 0xc0
ret
Function at 0x100fb030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1019f876
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea eax, [esp + 0x30]
push eax
call fcn.10064d00
mov dword [esp + 0xec], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
lea eax, [esp + edx + 0x2c]
push eax
call dword [esp + 0xf8]
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.10044e00
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
test byte [edx + eax + 8], 6
je 0x100fb0fd
push 0x19
push str.Invalid_converstion_for:
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.10004620
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf8], 1
call fcn.10017630
push eax
lea ecx, [esp + 0xbc]
call fcn.1002a4a0
push 0x10258e4c
lea eax, [esp + 0xbc]
push eax
call fcn.10173221
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x7c]
mov dword [esp + 0xec], 0xffffffff
call fcn.10064dd0
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x80], vtable.std::ios_base.0
call fcn.1016bc5e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xe8
ret
Function at 0x10107110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10190b78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call fcn.10151d10
test al, al
jne 0x1010717b
cmp dword [esp + 0x20], 0x10
jb 0x10107177
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1016d679
add esp, 4
xor al, al
jmp 0x101071a1
lea edx, [esp + 8]
push esi
push edx
call fcn.10152680
add esp, 8
cmp dword [esp + 0x20], 0x10
mov bl, al
jb 0x1010719f
mov eax, dword [esp + 0xc]
push eax
call fcn.1016d679
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1016cb16
add esp, 0x2c
ret

Function at 0x101071c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10190b78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call fcn.10151d10
test al, al
jne 0x1010722b
cmp dword [esp + 0x20], 0x10
jb 0x10107227
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1016d679
add esp, 4
xor al, al
jmp 0x10107251
lea edx, [esp + 8]
push esi
push edx
call fcn.101080e0
add esp, 8
cmp dword [esp + 0x20], 0x10
mov bl, al
jb 0x1010724f
mov eax, dword [esp + 0xc]
push eax
call fcn.1016d679
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1016cb16
add esp, 0x2c
ret

Function at 0x10108b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10190b78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call fcn.10151d10
test al, al
jne 0x10108b9b
cmp dword [esp + 0x20], 0x10
jb 0x10108b97
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1016d679
add esp, 4
xor al, al
jmp 0x10108bc1
lea edx, [esp + 8]
push esi
push edx
call fcn.10108c90
add esp, 8
cmp dword [esp + 0x20], 0x10
mov bl, al
jb 0x10108bbf
mov eax, dword [esp + 0xc]
push eax
call fcn.1016d679
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1016cb16
add esp, 0x2c
ret
Function at 0x10108be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10190b78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call fcn.10151d10
test al, al
jne 0x10108c4b
cmp dword [esp + 0x20], 0x10
jb 0x10108c47
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1016d679
add esp, 4
xor al, al
jmp 0x10108c71
lea edx, [esp + 8]
push esi
push edx
call fcn.10108d50
add esp, 8
cmp dword [esp + 0x20], 0x10
mov bl, al
jb 0x10108c6f
mov eax, dword [esp + 0xc]
push eax
call fcn.1016d679
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1016cb16
add esp, 0x2c
ret
Function at 0x10111b70
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10197981
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]
lea ecx, [esi + 0xc]
push ecx
mov dword [esi], vtable.CMTKBootLoaderPTInfoParse.0
mov dword [esi + 4], eax
mov dword [esi + 8], 0x400000
call fcn.100635a0
lea edx, [esi + 0x24]
xor ebx, ebx
push edx
mov dword [esp + 0x34], ebx
call fcn.100635a0
mov byte [esp + 0x30], 1
lea ecx, [esi + 0x44]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0x14d4d4d
push 9
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.FILE_INFO
mov byte [ecx + 4], bl
call fcn.10004620
mov byte [esp + 0x30], 2
mov eax, dword [esi + 8]
push eax
push str.SCIHearderBLBuf_len_is_0x_X
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_common_SCI_Unpacker_src_MTKBootLoaderPTInfoParse.cpp
mov dword [esp + 0x20], 0x14
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.CMTKBootLoaderPTInfoParse::CMTKBootLoaderPTInfoParse
call fcn.10017c90
add esp, 8
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 0x101120f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebx
push edi
push eax
mov eax, dword [esp + 0x28]
push esi
push ecx
push edx
push eax
xor bl, bl
call fcn.10112210
mov dword [esp + 0xc], str.FlashToolLib_source_common_SCI_Unpacker_src_MTKBootLoaderPTInfoParse.cpp
mov dword [esp + 0x1c], str.CMTKBootLoaderPTInfoParse::ParseBootLoaders
lea edi, [esp + 0xc]
test al, al
je 0x101121df
movzx ecx, word [esi + 6]
movzx edx, word [esi + 4]
mov eax, dword [esi]
push ecx
push edx
push eax
push str.GFH:_m_magic_ver_0x_x___m_size_0x_x___m_type_0x_x_.
mov bl, 1
mov dword [esp + 0x20], 0x5e
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
call fcn.10017c90
movzx ecx, word [esi + 0x18]
mov edx, dword [esi + 0x14]
push ecx
push edx
lea eax, [esi + 8]
push eax
push str.GFH:_m_identifier__s___m_file_ver_0x_x___m_file_type_0x_x_.
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_source_common_SCI_Unpacker_src_MTKBootLoaderPTInfoParse.cpp
mov dword [esp + 0x30], 0x62
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], str._DEBUG:
mov dword [esp + 0x3c], str.CMTKBootLoaderPTInfoParse::ParseBootLoaders
call fcn.10017c90
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push ecx
push edx
push str.GFH:_m_file_len_0x_x___m_max_size_0x_x_.
lea edi, [esp + 0x38]
mov dword [esp + 0x38], str.FlashToolLib_source_common_SCI_Unpacker_src_MTKBootLoaderPTInfoParse.cpp
mov dword [esp + 0x3c], 0x64
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], str._DEBUG:
mov dword [esp + 0x48], str.CMTKBootLoaderPTInfoParse::ParseBootLoaders
call fcn.10017c90
add esp, 0x2c
mov al, bl
pop edi
pop ebx
add esp, 0x18
ret 0xc
push str.Parse_bootloader_fails.
mov dword [esp + 0x14], 0x66
mov byte [esp + 0x18], 0xff
mov dword [esp + 0x1c], str._ERROR:
call fcn.10017c90
add esp, 4
pop edi
mov al, bl
pop ebx
add esp, 0x18
ret 0xc

Function at 0x10113560
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101978c8
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
sub esp, 0x1c
xor eax, eax
mov ecx, esp
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0xf
push eax
mov byte [ecx + 4], al
lea eax, [esp + 0x40]
push eax
call fcn.10004b90
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
call fcn.10113880
mov ecx, dword [esp + 0x54]
add esp, 0x1c
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x3c], eax
mov dword [edi], ecx
mov dword [edi + 4], eax
jb 0x101135dc
mov edx, dword [esp + 0x20]
push edx
call fcn.1016d679
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x10113a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10197868
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x10113a7c
mov eax, dword [eax + 4]
jmp 0x10113a7f
add eax, 4
push ecx
push eax
mov eax, dword [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x30]
call fcn.100434b0
test eax, eax
lea esi, [esp + 0x20]
sete bl
call fcn.100f4560
mov al, bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x38

Function at 0x101156f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10191d3b
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 4], esi
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, 0xf
mov dword [esi + 0x18], edx
mov dword [esi + 0x14], eax
mov byte [esi + 4], al
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
mov byte [esp + 0x30], 2
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], edx
push eax
mov byte [ecx + 4], al
lea eax, [esp + 0x40]
push eax
call fcn.10004b90
mov ecx, esi
call fcn.10115790
cmp dword [esp + 0x34], 0x10
jb 0x10115770
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1016d679
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 0x1c
Function at 0x10116380
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10194298
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x30]
mov eax, dword [0x103b3220]
test eax, eax
jne 0x101163d0
push 0x4c
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x101163c9
call fcn.10036030
jmp 0x101163cb
xor eax, eax
mov dword [0x103b3220], eax
cmp dword [eax + 0x48], 0
mov ecx, dword [ebp]
je 0x101163f6
mov eax, dword [eax + 0x10]
test eax, eax
je 0x101164ac
push 0x96
push str.FlashToolLib_host_windows_NewCOMUtil.cpp
push esi
push edi
push ebx
push ecx
call eax
jmp 0x10116402
push 0
push esi
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101164ac
push str.FlashToolLib_host_windows_NewCOMUtil.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x98
lea esi, [esp + 0x10]
call fcn.10111280
mov esi, eax
mov dword [esp + 0x28], 0
mov eax, dword [0x103b3220]
test eax, eax
jne 0x10116454
push 0x4c
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x1011644d
call fcn.10036030
jmp 0x1011644f
xor eax, eax
mov dword [0x103b3220], eax
cmp dword [eax + 0x48], 0
je 0x10116473
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1011646f
push 0x98
push str.FlashToolLib_host_windows_NewCOMUtil.cpp
call eax
jmp 0x10116479
xor eax, eax
jmp 0x10116479
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x103b321c]
push eax
mov eax, dword [ebp]
push eax
push str.NewCOMUtil::WriteComm__:_Write_fail__Handle__p___Err__u_.
push ecx
push esi
call fcn.10111350
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x20
ret 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x20
ret 4
Function at 0x101164d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101972a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x103b3220]
test eax, eax
jne 0x1011651b
push 0x4c
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x10116514
call fcn.10036030
jmp 0x10116516
xor eax, eax
mov dword [0x103b3220], eax
cmp dword [eax + 0x48], 0
mov ecx, dword [ebx]
je 0x10116544
mov eax, dword [eax + 0x14]
test eax, eax
je 0x101165fa
push 0xa1
push str.FlashToolLib_host_windows_NewCOMUtil.cpp
push esi
push 0x100
push edi
push ecx
call eax
jmp 0x10116554
push 0
push esi
push 0x100
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101165fa
push str.FlashToolLib_host_windows_NewCOMUtil.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0xa3
lea esi, [esp + 0xc]
call fcn.10111280
mov esi, eax
mov dword [esp + 0x24], 0
mov eax, dword [0x103b3220]
test eax, eax
jne 0x101165a6
push 0x4c
call fcn.1016d7a5
add esp, 4
test eax, eax
je 0x1011659f
call fcn.10036030
jmp 0x101165a1
xor eax, eax
mov dword [0x103b3220], eax
cmp dword [eax + 0x48], 0
je 0x101165c5
mov eax, dword [eax + 0x18]
test eax, eax
je 0x101165c1
push 0xa3
push str.FlashToolLib_host_windows_NewCOMUtil.cpp
call eax
jmp 0x101165cb
xor eax, eax
jmp 0x101165cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x103b321c]
push eax
mov eax, dword [ebx]
push eax
push str.NewCOMUtil::ReadComm__:_Read_fail__Handle__p___Err__u_.
push ecx
push esi
call fcn.10111350
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret

Function at 0x1011a620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1019e4a6
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 esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
lea eax, [esi + 0x10]
push eax
mov dword [esi], vtable.PMTHandle.0
mov byte [esi + 4], 0
mov dword [esi + 0xc], ecx
call fcn.100b7390
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x14], 0
call fcn.100b7390
mov eax, esi
mov byte [esp + 0x10], 1
call fcn.1011a790
test al, al
mov eax, esi
je 0x1011a693
call fcn.1011a810
mov eax, esi
call fcn.1011a8a0
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8
Function at 0x1011a6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101933e6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.PMTHandle.0
mov dword [esp + 0x18], 1
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
lea esi, [edi + 0x10]
push ecx
mov ecx, esi
call fcn.1012c1e0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
mov edx, dword [edi + 0x48]
mov eax, dword [edx + 4]
add edi, 0x30
push eax
mov ecx, edi
call fcn.1012c1e0
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [edi + 0x18]
push edi
mov dword [eax + 8], eax
mov byte [esp + 0x1c], 0
call fcn.1012bce0
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.1012bce0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret