joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016990
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi], 0
jne 0x10016aef
push str.mfplat.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x10016b24
push str.MFStartup
push eax
call edi
push str.MFShutdown
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.MFTRegister
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.MFTUnregister
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.MFTRegisterLocalByCLSID
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.MFTUnregisterLocalByCLSID
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.MFTRegisterLocal
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.MFTUnregisterLocal
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.MFTEnumEx
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.MFTGetInfo
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.MFCreateAttributes
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.MFCreateMediaType
push dword [esi]
mov dword [esi + 0x30], eax
call edi
push str.MFCalculateImageSize
push dword [esi]
mov dword [esi + 0x34], eax
call edi
push str.MFGetStrideForBitmapInfoHeader
push dword [esi]
mov dword [esi + 0x40], eax
call edi
push str.MFCreateDXGIDeviceManager
push dword [esi]
mov dword [esi + 0x44], eax
call edi
push str.MFCreateDXGISurfaceBuffer
push dword [esi]
mov dword [esi + 0x4c], eax
call edi
push str.MFMapDXGIFormatToDX9Format
push dword [esi]
mov dword [esi + 0x50], eax
call edi
push str.MFCreateSample
push dword [esi]
mov dword [esi + 0x54], eax
call edi
push str.MFCreateVideoSampleAllocatorEx
push dword [esi]
mov dword [esi + 0x38], eax
call edi
push str.MFCreateEventQueue
push dword [esi]
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x5c], eax
push str.MFCreateMediaEvent
push dword [esi]
call edi
push str.MFCreateMemoryBuffer
push dword [esi]
mov dword [esi + 0x60], eax
call edi
push str.MFFrameRateToAverageTimePerFrame
push dword [esi]
mov dword [esi + 0x64], eax
call edi
push str.MFAverageTimePerFrameToFrameRate
push dword [esi]
mov dword [esi + 0x68], eax
call edi
push str.MFPutWaitingWorkItem
push dword [esi]
mov dword [esi + 0x6c], eax
call edi
push str.MFCreateTrackedSample
push dword [esi]
mov dword [esi + 0x70], eax
call edi
mov dword [esi + 0x74], eax
cmp dword [esi + 4], 0
jne 0x10016b1f
push str.evr.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x10016b24
push str.MFCreateDXSurfaceBuffer
push eax
call edi
push str.MFCreateVideoSampleFromSurface
push dword [esi + 4]
mov dword [esi + 0x48], eax
call edi
mov dword [esi + 0x58], eax
pop edi
mov al, 1
pop esi
ret
mov ecx, esi
call fcn.10016d20
pop edi
xor al, al
pop esi
ret
Function at 0x10021290
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100ffa04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov byte [ebp - 0x1d], 1
xor esi, esi
nop dword [eax]
inc esi
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x100212bb
mov ecx, dword [ebx]
mov edi, dword [ebx + 0x10]
cmp esi, edi
jae 0x100212e2
mov eax, edi
sub eax, esi
lea esi, [ecx + esi*2]
je 0x100212e2
nop dword [eax + eax]
cmp word [esi], 0x5c
je 0x10021385
add esi, 2
sub eax, 1
jne 0x100212d0
or esi, 0xffffffff
test esi, esi
je 0x100212b0
cmp esi, 2
jne 0x1002138e
push 1
mov ecx, ebx
call fcn.10020f70
cmp word [eax], 0x3a
je 0x100212b0
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
cmp edi, esi
mov eax, esi
mov dword [ebp - 8], 7
cmovb eax, edi
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x10021326
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10007720
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10021359
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10021425
cmp esi, 0xffffffff
je 0x1002144a
mov eax, dword [ebx + 0x10]
dec eax
cmp esi, eax
je 0x1002144a
cmp dword [ebp - 8], 8
jb 0x100212b0
push dword [ebp - 0x1c]
call fcn.10022bb0
jmp 0x100212b0
sub esi, ecx
sar esi, 1
jmp 0x100212e5
cmp esi, 1
jne 0x10021301
push 0
mov ecx, ebx
call fcn.10020f70
cmp word [eax], 0x2e
je 0x100212b0
push 0
mov ecx, ebx
call fcn.10020f70
cmp word [eax], 0x5c
jne 0x10021301
mov esi, dword [ebx + 0x14]
mov edx, ebx
cmp esi, 8
jb 0x100213c9
mov edx, dword [ebx]
cmp edi, 2
jbe 0x100213e6
lea ecx, [edi - 2]
lea eax, [edx + 4]
test ecx, ecx
je 0x100213e6
cmp word [eax], 0x5c
je 0x10021416
add eax, 2
sub ecx, 1
jne 0x100213d8
or eax, 0xffffffff
inc eax
mov ecx, ebx
cmp esi, 8
jb 0x100213f3
mov ecx, dword [ebx]
cmp eax, edi
jae 0x1002140e
lea esi, [ecx + eax*2]
sub edi, eax
je 0x1002140e
nop
cmp word [esi], 0x5c
je 0x1002141c
add esi, 2
sub edi, 1
jne 0x10021400
or esi, 0xffffffff
jmp 0x100212b0
sub eax, edx
sar eax, 1
jmp 0x100213e9
sub esi, ecx
sar esi, 1
jmp 0x100212b0
xor bl, bl
cmp dword [ebp - 8], 8
jb 0x10021435
push dword [ebp - 0x1c]
call fcn.10022bb0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008aaed
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 8], 8
jb 0x10021458
push dword [ebp - 0x1c]
call fcn.10022bb0
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1008aaed
mov esp, ebp
pop ebp
ret 4

Function at 0x10021660
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x10021691
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10021680
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x100261c7
Capabilities:
Create thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
je 0x100261ad
mov al, 1
pop edi
ret
push ebx
push esi
lea esi, [edi + 0x14]
test esi, esi
jne 0x100261ba
xor bl, bl
jmp 0x100261c6
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
mov eax, dword [eax]
call eax
mov bl, al
push edi
push 0
push 0x10025fc0
call fcn.1009f60e
add esp, 0xc
mov dword [edi + 8], eax
cmp eax, 0xffffffff
setne bh
cmp bl, 1
jne 0x100261ef
test esi, esi
je 0x100261ef
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
pop esi
mov al, bh
pop ebx
pop edi
ret

Function at 0x10026460
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101046cc]
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1002649f
push 0x101046d0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1002652f
push 0x101046d8
mov dword [0x101046cc], 1
call esi
mov eax, dword [0x101046cc]
cmp eax, 1
jne 0x10026539
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
je 0x10026539
push ebx
mov ebx, dword [ebp - 4]
mov eax, ebx
push edi
mov edi, dword [ebp - 8]
mov ecx, edi
sub ecx, dword [0x101046d8]
push 0
sbb eax, dword [0x101046dc]
push 0x989680
push eax
push ecx
call fcn.1008b3f0
push dword [0x101046d4]
push dword [0x101046d0]
push edx
push eax
call fcn.1008ab00
mov esi, edx
mov ecx, eax
cmp esi, 8
jl 0x1002654b
jg 0x10026502
cmp ecx, 0x61c46800
jbe 0x1002654b
mov eax, dword [0x101046e0]
mov edx, dword [0x101046e4]
add eax, ecx
mov dword [0x101046d8], edi
pop edi
adc edx, esi
mov dword [0x101046dc], ebx
pop ebx
mov dword [0x101046e0], eax
mov dword [0x101046e4], edx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x101046cc], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop esi
lea eax, [eax + eax*4]
add eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101046e0]
mov edx, dword [0x101046e4]
add eax, ecx
pop edi
pop ebx
adc edx, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002a120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [str.SoftwareAMD]
lea eax, [ebp - 8]
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1002a18b
lea eax, [ebp - 8]
push eax
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1002a18b
push dword [ebp - 4]
push str.Failed_to_find_regpath__using_default_d
push 1
push str.EncodeCoreHelper
push 1
push 0x176
push str..........._runtime_srccomponentsEncoderCoreEncodeCoreHelper.cpp
call fcn.10026a30
add esp, 0x1c
cmp dword [ebp - 4], 1
sete al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10
push str.EncQueueEnabled
push str.AmfEncCore
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
push dword [ebp - 4]
test eax, eax
jne 0x1002a1cf
push str.Found_key:_EncQueue_Enabled_status_d
push 1
push str.EncodeCoreHelper
push 2
push 0x17f
jmp 0x1002a1e2
push str.Found_regpath__but_key_not_found_using_default_d
push 1
push str.EncodeCoreHelper
push 2
push 0x183
push str..........._runtime_srccomponentsEncoderCoreEncodeCoreHelper.cpp
call fcn.10026a30
add esp, 0x1c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 1
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x10060be0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100ffa04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
mov dword [ebp - 0x20], esi
push edi
mov dword [esi], vtable.AMFEventsCounter.0
mov eax, dword [ebx]
mov edi, dword [eax]
cmp edi, eax
je 0x10060d1a
nop dword [eax]
push str.Events_
call sub.KERNEL32.dll_OutputDebugStringW
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x10060c25
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_OutputDebugStringW
push str.:_nbegin_n
call sub.KERNEL32.dll_OutputDebugStringW
mov eax, dword [edi + 0x28]
mov esi, dword [eax]
cmp esi, eax
je 0x10060cc9
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x10060c4d
mov eax, dword [eax]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push eax
lea eax, [ebp - 0x1c]
push str._____s_I64d_n
push eax
call fcn.10022510
add esp, 0x14
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_OutputDebugStringW
cmp dword [ebp - 8], 8
jb 0x10060c84
push dword [ebp - 0x1c]
call fcn.10022bb0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10060caa
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10060ca6
cmp esi, dword [eax + 8]
jne 0x10060ca6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10060c96
mov esi, eax
jmp 0x10060cc0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10060cc0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10060cb4
cmp esi, dword [edi + 0x28]
jne 0x10060c42
push str.end_n_n
call sub.KERNEL32.dll_OutputDebugStringW
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
je 0x10060cf9
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x10060cf5
cmp edi, dword [eax + 8]
jne 0x10060cf5
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10060ce5
mov edi, eax
jmp 0x10060d0f
mov edi, eax
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x10060d0f
mov eax, dword [ecx]
mov edi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10060d03
cmp edi, dword [ebx]
jne 0x10060c10
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 0x18]
call fcn.10025dc0
lea ecx, [esi + 0x10]
call fcn.10025e30
mov eax, dword [ebx]
mov ecx, ebx
push dword [eax + 4]
push ebx
call fcn.10060af0
push dword [ebx]
call fcn.10022bb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aaed
mov esp, ebp
pop ebp
ret
Function at 0x10063eb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xffffffffffffffff
lea eax, [esi + 0x54]
push eax
call fcn.10025c70
cmp byte [ebp + 0xc], 0
lea edi, [esi + 0x60]
je 0x10063f24
cmp dword [edi], 0
jne 0x10063f09
lea ecx, [esi + 0x94]
mov word [esi + 0x90], 0
call fcn.10026160
lea ecx, [esi + 0x9c]
call fcn.10026160
push esi
push 0
push 0x10063790
call fcn.1009f60e
add esp, 0xc
mov dword [esi + 0x5c], eax
push edi
call fcn.10026310
add esp, 4
lea ecx, [ebp - 8]
call fcn.10025de0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.10026300
add esp, 4
cmp dword [edi], 0
jne 0x10063f71
lea ecx, [esi + 0x94]
mov byte [esi + 0x90], 1
call fcn.10026180
cmp byte [esi + 0x91], 0
jne 0x10063f63
nop dword [eax]
push 0
call fcn.10026690
add esp, 4
cmp byte [esi + 0x91], 0
je 0x10063f50
mov ecx, esi
mov dword [esi + 0x5c], 0
call fcn.10061b50
lea ecx, [ebp - 8]
call fcn.10025de0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100a0fb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101053e8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100a0ff6
cmp byte [ebx], 0xa
jne 0x100a0ff6
or byte [edi + eax + 0x28], 4
jmp 0x100a0ffb
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100a10fa
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100a10dd
inc eax
cmp dl, 0xd
je 0x100a1027
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100a104d
cmp eax, ecx
jae 0x100a105b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100a100f
jmp 0x100a10fa
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a10d8
cmp dword [ebp - 0x10], 0
je 0x100a10d8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101053e8]
test byte [eax + edi + 0x28], 0x48
je 0x100a10b2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100a109d
mov byte [esi], dl
jmp 0x100a10ae
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101053e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100a10fa
cmp byte [ebp - 1], 0xa
jne 0x100a10c1
cmp esi, ebx
jne 0x100a10c1
mov byte [esi], 0xa
jmp 0x100a10f9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100a2624
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100a10fa
mov byte [esi], 0xd
jmp 0x100a10f9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101053e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100a10f7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100a10fa
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a1103
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101053e8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100a1149
cmp word [ebx], dx
jne 0x100a1149
or byte [eax + edi + 0x28], 4
jmp 0x100a114e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100a12b1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100a1291
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100a118f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100a11c5
cmp eax, edx
jae 0x100a11d3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100a116a
jmp 0x100a12b1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a128c
cmp dword [ebp - 0x18], 0
je 0x100a128c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101053e8]
test byte [eax + edi + 0x28], 0x48
je 0x100a1262
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100a1226
mov word [esi], cx
jmp 0x100a125d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101053e8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101053e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101053e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100a12b1
pop eax
cmp word [ebp - 4], ax
jne 0x100a1272
cmp esi, ebx
jne 0x100a1272
mov word [esi], ax
jmp 0x100a12ae
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100a2624
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100a12b1
push 0xd
pop eax
jmp 0x100a126d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101053e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100a12ab
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100a12b1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a3c46
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100a3c85
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100a3c85
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a3c85
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100a3c85
cmp dword [ecx + 0x74], 0xe
jbe 0x100a3c85
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100a99d5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100a68c4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a9a44
cmp esi, dword [ebp - 4]
je 0x100a9a3f
cmp dword [ebp + 0xc], 0
je 0x100a9a3f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100a9a1c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100a9527
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100a9a46
xor eax, eax
inc eax
jmp 0x100a9a46
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100a9aab
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ffa04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100a68c4
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100a68c4
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100a9b22
cmp word [ecx], dx
je 0x100a9b22
mov eax, dword [0x100ed3fc]
push edi
dec eax
push eax
push 0x100ed2e8
call fcn.100a9a4a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100a9b95
cmp word [eax], dx
je 0x100a9b95
mov eax, dword [edi]
test eax, eax
je 0x100a9b46
cmp word [eax], dx
je 0x100a9b46
lea eax, [ebp - 0x10]
push eax
call fcn.100a942d
jmp 0x100a9b4f
lea eax, [ebp - 0x10]
push eax
call fcn.100a94c8
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100a9bbf
mov eax, dword [0x100ed2e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100ecfd8
call fcn.100a9a4a
add esp, 0xc
test al, al
je 0x100a9bbf
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100a9b8a
cmp word [eax], di
je 0x100a9b8a
lea eax, [ebp - 0x10]
push eax
call fcn.100a942d
pop ecx
jmp 0x100a9bc1
lea eax, [ebp - 0x10]
push eax
call fcn.100a94c8
jmp 0x100a9b87
mov eax, dword [edi]
test eax, eax
je 0x100a9bac
cmp word [eax], dx
je 0x100a9bac
lea eax, [ebp - 0x10]
push eax
call fcn.100a93e2
pop ecx
jmp 0x100a9bbf
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100a9c8a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100a98cf
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100a9c8a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100a9c8a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100a9c8a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a9c17
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100aa312
test ebx, ebx
je 0x100a9c85
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100aa312
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a9c8a
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a9c8a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100b197a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100a9c8c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aaed
leave
ret
Function at 0x100aa115
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ee42c
push 0x100ee424
push str.FlsAlloc
push 0x1f
call fcn.100a9f40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100aa149
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b5288]
call esi
jmp 0x100aa14f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100aa193
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ee43c
push 0x100ee434
push str.FlsGetValue
push 0x21
call fcn.100a9f40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100aa1ca
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b5288]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100aa1d2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ee444
push 0x100ee43c
push str.FlsSetValue
push 0x22
call fcn.100a9f40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100aa20c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100b5288]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]