joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d83d0
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x100d83ef
push 0x57
mov dword [0x10281e18], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x100d8240
push 0x20
push esi
call fcn.100d71a0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x100d8435
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x10281e18], eax
je 0x100d8435
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret
Function at 0x100dc7e0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101eaa98
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x100dc812
call fcn.10125730
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x100dc823
mov ecx, bind
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x100dc878
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x100dc85e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x100dc9a4
cmp dword [esp + 0x18], ebx
jne 0x100dc878
cmp dword [esp + 0x14], ebx
je 0x100dc9a4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x100dc889
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.10071014
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x100dc8cf
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x100dc8cf
call fcn.100e07b0
test eax, eax
je 0x100dc8cf
push 0x10249ec0
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
push ebx
lea ecx, [esp + 0x14]
call fcn.10071080
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x100dc97e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x100dc90b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x100dc97e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x100dc959
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x100dc95c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x100dc954
mov dword [esi + 0x10], ebx
jmp 0x100dc95c
mov dword [esi + 0x10], ecx
jmp 0x100dc95c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call sub.MFC42u.DLL_CString::CString
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x100dce70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0xc]
lea edi, [esi + 0x14]
cmp eax, 0xffffffff
mov dword [esi + 8], ebx
mov dword [ecx], ebx
mov dword [esi + 0x10], ebx
mov dword [edi], ebx
mov dword [esi + 4], eax
mov dword [esi + 0x18], ebx
je 0x100dcf10
cmp eax, ebx
je 0x100dcf10
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push 1
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x100dcee2
cmp dword [edi], ebx
je 0x100dceef
mov ecx, dword [esi + 4]
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 4]
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100dcf10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100dcf20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
push ebx
mov dword [esi], ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
push 0x80
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push ebx
lea edi, [esi + 0xc]
push 7
push bind
push eax
mov dword [esi + 8], ebx
mov dword [edi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x100dcfb2
cmp eax, ebx
je 0x100dcfb2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100dcfba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x100dd160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100dd2b7
xor edx, edx
cmp eax, edx
je 0x100dd2b7
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x100dd19a
cmp eax, ecx
jb 0x100dd19a
xor ecx, ecx
jmp 0x100dd19f
mov ecx, 1
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, edi
jl 0x100dd1b9
jg 0x100dd2b7
cmp eax, dword [esi + 8]
ja 0x100dd2b7
cmp ecx, edx
jne 0x100dd1d3
cmp eax, dword [esi + 0x42c]
ja 0x100dd1d3
lea eax, [ebx + esi + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov ebp, dword [esi + 0x1c]
cmp ebp, edx
je 0x100dd218
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x24]
lea edi, [edx + ecx]
cmp edi, ecx
jb 0x100dd1f3
cmp edi, edx
jb 0x100dd1f3
xor edx, edx
jmp 0x100dd1f8
mov edx, 1
cmp ecx, ebx
ja 0x100dd218
cmp dword [esp + 0x14], edx
jg 0x100dd218
jl 0x100dd208
cmp eax, edi
ja 0x100dd218
mov eax, ebp
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.100dd2d0
test eax, eax
je 0x100dd2b7
cmp ebx, 0x7fffffff
push 0
push 0
jbe 0x100dd266
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push bind
push ecx
call edi
cmp eax, 0xffffffff
je 0x100dd2a7
mov eax, dword [esi + 4]
push 1
lea edx, [ebx - 0x7fffffff]
push 0
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x100dd2a7
jmp 0x100dd276
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100dd2a7
mov ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push 0
push edi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100dd2a7
cmp dword [edi], ebp
jne 0x100dd2a7
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x100df350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x10236e60
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100df42b
mov edi, dword [esp + 0x220]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push edi
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x100df411
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x100df411
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push ebx
push edi
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x100df440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x10236e60
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100df4da
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8
Function at 0x100df700
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100df79a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x100df784
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x100df784
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x100df930
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101eadab
push eax
mov dword fs:[0], esp
sub esp, 0x65c
mov ecx, 0x10282760
push ebp
push esi
push edi
push str.PATH
push 0x10282764
call fcn.100df700
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x100df983
push esi
call edi
add esp, 4
test eax, eax
jne 0x100df9c4
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
push 0x1026a948
call edi
inc eax
lea edi, [eax + eax]
push edi
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x100dfb0a
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x1026a948
and ecx, 3
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x260]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_swprintf]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x67c]
lea ecx, [esp + 0x264]
push eax
push str.oadbg_
push str._s_s_
push ecx
call ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x476]
mov word [esp + 0x474], bp
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [esp + 0x264]
stosw word es:[edi], ax
push edx
push esi
lea eax, [esp + 0x46c]
push str._s_s
push eax
call ebx
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebp
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x464]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100dfb00
mov edi, dword [esp + 0x680]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x40]
push 0x1024a168
push eax
call ebp
test eax, eax
je 0x100dfae9
lea ecx, [esp + 0x40]
push 0x1023e3ac
push ecx
call ebp
test eax, eax
je 0x100dfae9
test byte [esp + 0x14], 0x10
jne 0x100dfae9
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x67c], 0
call sub.MFC42u.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x10]
mov dword [esp + 0x674], 0xffffffff
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100dfa85
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
pop ebx
mov ecx, dword [esp + 0x668]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x668
ret 8
Function at 0x100e0070
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x10282be8]
sub esp, 0x114
test eax, eax
jne 0x100e01bd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x10282980
mov dword [0x10282be8], 1
mov dword [0x10282980], 0x114
call esi
mov edx, dword [0x10282990]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x1026aa20], eax
je 0x100e0198
push ebx
push 0x10282a98
mov dword [0x10282a98], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10249ef8
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x10282bdc], eax
call edi
mov dword [0x10282be0], eax
mov eax, dword [0x10282bdc]
test eax, eax
push 0x10282bb8
je 0x100e0114
call eax
jmp 0x100e011a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10282a9c]
cmp eax, 6
jae 0x100e0132
cmp eax, 5
jne 0x100e0146
cmp dword [0x10282aa0], 2
jb 0x100e0146
cmp word [0x10282bb8], 9
jne 0x100e0146
mov dword [0x10282974], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100e0164
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x10282be4], edx
jmp 0x100e016a
mov edx, dword [0x10282be4]
test edx, edx
je 0x100e0198
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x100e0198
mov ecx, dword [esp + 0x14]
mov dword [0x1028298c], ecx
push 0x10282988
push 0x10282984
call fcn.100e0560
add esp, 8
call fcn.100e01d0
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100e1420
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102048b8
push 0x100713f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x10282bec]
xor ebx, ebx
cmp eax, ebx
jne 0x100e1581
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100e157c
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x10236e60
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100e157c
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100e1573
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100e1573
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x10282bec], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100e1573
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [0x10282bec]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100eb510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101eba68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
lea ecx, [esp + 0x18]
call fcn.1007f200
mov eax, dword [esp + 0x38]
lea ecx, [esp]
push eax
mov dword [esp + 0x34], 0
call fcn.10077a80
mov ecx, dword [esp]
mov byte [esp + 0x30], 1
mov eax, dword [ecx - 8]
test eax, eax
je 0x100eb65f
lea edx, [esp + 4]
push ebp
push edx
lea eax, [esp + 0x40]
push 0x1024fb14
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.1007ce50
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 2
call fcn.1007bf10
lea ecx, [esp + 0x3c]
call fcn.1007c210
mov ecx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.MSVCRT.dll_wcscmp]
push 0x102747b8
push ecx
call ebp
add esp, 8
test eax, eax
je 0x100eb650
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__wcsicoll]
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jle 0x100eb5e1
mov edx, dword [esp + 0x24]
mov eax, dword [edx + esi*4]
push eax
mov eax, dword [esp + 0x48]
push eax
call edi
add esp, 8
test eax, eax
je 0x100eb5f0
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x100eb5c2
lea ecx, [esp + 0x44]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.1007f960
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0x1024fb14
push eax
lea ecx, [esp + 0x18]
call fcn.1007ce50
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 3
call fcn.100784b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
call fcn.10078300
lea ecx, [esp + 0x44]
call fcn.1007bf10
lea ecx, [esp + 0x44]
call fcn.1007c210
mov ecx, dword [esp + 0x44]
push 0x102747b8
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x100eb5b8
pop edi
pop esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
call fcn.10078300
pop ebp
push 1
push 0x10282c68
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
push 0
mov ecx, 0x10282c50
mov byte [esp + 0x38], 4
call fcn.1007f2d0
lea edx, [esp + 0x18]
mov ecx, 0x10282c50
push edx
call fcn.1007f6a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42u.DLL_CSingleLock::Unlock
lea ecx, [esp]
mov byte [esp + 0x30], 0
call fcn.10078300
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.1007f210
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x100ebb40
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x10282d5c]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100ebb62
mov eax, dword [0x102834ec]
test eax, eax
jne 0x100ebb62
mov eax, dword [0x10283afc]
test eax, eax
je 0x100ebb66
test ebx, ebx
je 0x100ebba0
mov eax, dword [0x1026be18]
or esi, 0xffffffff
cmp eax, esi
jne 0x100ebba0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x1026be18], eax
je 0x100ebba0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100ebba0
mov eax, dword [0x1026be18]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1026be18], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.100f2a80
add esp, 0xc
test eax, eax
je 0x100ebbe3
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.10102af0
add esp, 0x10
test eax, eax
je 0x100ebbe3
push ebx
push esi
push edi
call fcn.10111e50
add esp, 0xc
test eax, eax
je 0x100ebbe3
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100f0b60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
xor esi, esi
cmp ebx, esi
je 0x100f0cb8
cmp ebx, 0xffffffff
je 0x100f0cb8
cmp dword [0x10282c98], esi
je 0x100f0cb8
mov ecx, dword [0x10282ca0]
cmp ecx, esi
je 0x100f0cb8
mov eax, dword [0x10282c9c]
cmp eax, esi
jge 0x100f0ba9
neg eax
cmp ecx, eax
ja 0x100f0cb8
push edi
push ecx
mov dword [esp + 0x10], esi
call sub.MFC42u.DLL_operatornew
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [esp + 0x20], edi
je 0x100f0cad
mov ecx, dword [0x10282ca0]
xor eax, eax
mov edx, ecx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
mov dword [esp + 0x1c], esi
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [0x10282ca0]
mov esi, dword [0x10282c9c]
lea eax, [esp + 0x18]
push eax
push 0
push ebx
mov dword [esp + 0x24], 0
call edi
xor ecx, ecx
mov dword [esp + 0x1c], eax
test esi, esi
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
push esi
push ebx
call edi
cmp eax, 0xffffffff
je 0x100f0c9f
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100f0c30
xor esi, esi
jmp 0x100f0c46
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push 0
push edx
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push ebx
call edi
test esi, esi
je 0x100f0c9f
mov ebp, dword [0x10282c40]
xor edx, edx
test ebp, ebp
jle 0x100f0c9f
mov ebx, dword [0x10282c3c]
mov eax, dword [ebx]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax + 8]
cmp esi, ecx
jb 0x100f0c85
mov edi, dword [eax + 4]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100f0c97
inc edx
add ebx, 4
cmp edx, ebp
mov dword [esp + 0x10], 0
jge 0x100f0c9f
jmp 0x100f0c6b
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x24]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
pop ebp
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret