joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446bf1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x45f540]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x446c9b
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x38], eax
call esi
mov dword [ebp - 0x34], eax
push 4
xor ebx, ebx
jmp 0x446d9d
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x446d4b
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x446d9e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x446d40
cmp dword [ebp - 0x24], 1
jne 0x446d40
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x44ef14
push eax
call fcn.00431797
add esp, 0xc
cmp eax, 1
jne 0x446d40
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
push 2
mov dword [ebp - 0x3c], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x446d9e
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x446d9e
lea ecx, [ebp - 0x18]
push ecx
push 0x446bdb
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x446d9e
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x40], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x446dc3
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.00446b52
cmp eax, ebx
pop ecx
jne 0x446dc5
inc edi
cmp edi, esi
jl 0x446dad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004301cd
leave
ret 4
Function at 0x446dd6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x45e594
je 0x446e92
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x446e7a
mov esi, dword [ebx + 4]
jmp 0x446e74
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x446e64
cmp dword [ebp - 0xc], 4
jne 0x446e64
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x446e5c
or dword [eax + 0x9c], ecx
jmp 0x446e64
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x446e28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x446e0b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x447286
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44b56e
call fcn.004317cc
sub esp, 0x124
mov eax, dword [0x45f540]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x447394
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x447368
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004021c0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00447286
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004019e0
test bl, bl
jne 0x447368
or dword [ebp - 4], 0xffffffff
jmp 0x4472d3
cmp esi, 0x103
je 0x447378
cmp esi, 0x3f2
jne 0x447388
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004301cd
leave
ret 8
Function at 0x4485d3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x448608
cmp edi, dword [esi + 0xc]
jge 0x448608
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x448608
cmp edi, dword [eax + 8]
jge 0x448608
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x44860a
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x44870e
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x448742
jmp fcn.0043d590
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4488ac
cmp eax, dword [edi + 0xc]
jge 0x4488ac
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x448804
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x448895
cmp dword [ebp + 0xc], ebx
je 0x448895
jmp 0x44882e
push 0x10
call fcn.0044849f
cmp eax, ebx
je 0x44881a
mov ecx, eax
call fcn.00448705
mov esi, eax
jmp 0x44881c
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x448845
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x448855
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x448867
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043d590
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00431bf0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4488a7
cmp ecx, dword [esi + 8]
jge 0x4488a7
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4488ad
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44896b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x448999
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4489b7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004488d5
jmp 0x4489b7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4489b7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004488d5
test edi, edi
mov eax, edi
jne 0x4489a1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5736ec]
test ecx, ecx
je 0x448a6a
jmp 0x44896a
ret 8
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x6a
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc7
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x5e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x47
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x25
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x25
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x6f
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd9
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4d
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 8
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xdc
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x82
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x7d
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xfd
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3f
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x100024d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [esi + 8]
call fcn.10002320
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x100024f9
mov ecx, dword [esi + 8]
mov dword [ecx + 0xc], eax
mov edi, dword [esi + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push edi
push 0x100022a0
push 0
push 0
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
je 0x1000253d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000253d
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
mov eax, dword [esi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 0xc
Function at 0x10002d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d9b78
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x10285294]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x638], edi
lea eax, [edi + 8]
mov dword [edi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], edi
jb 0x10002d8a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ecx
cmp dword [edi + 0x34], 8
jb 0x10002da7
mov eax, dword [edi + 0x20]
jmp 0x10002daa
lea eax, [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x10002dc4
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x10002dde
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
push ecx
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], ecx
call fcn.1008c84e
push eax
call fcn.100910e1
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10078730
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x10002e97
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.10078730
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x10002e88
test eax, eax
je 0x10002e88
add eax, eax
cmp eax, 0x412
jae 0x10002e83
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x10002e8e
call fcn.1005daa0
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x20]
call fcn.100026a0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x10002ec3
cmp dword [edi + 0x34], 8
jb 0x10002ea9
mov ecx, dword [edi + 0x20]
jmp 0x10002eac
lea ecx, [edi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10002ec3
push 1
push 0x1026de1c
lea ecx, [edi + 0x20]
call fcn.100042e0
cmp dword [edi + 0x30], 0
jne 0x10002ed8
push 3
push 0x1026de20
lea ecx, [edi + 0x20]
call fcn.100026f0
mov dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005d874
mov esp, ebp
pop ebp
ret
Function at 0x10002f00
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x48], 0
je 0x10002f1c
cmp dword [edi + 0x4c], 8
lea eax, [edi + 0x38]
jb 0x10002f15
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x10002f33
push eax
call fcn.1001f39e
add esp, 4
mov dword [edi + 0x68], 0
mov eax, dword [edi + 0x64]
lea esi, [edi + 0x50]
cmp eax, 8
jb 0x10002f49
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.100027f0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10002f5f
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x10002f7a
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.100027f0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10002f90
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x10002fab
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.100027f0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10002fc1
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [edi + 0x1c]
cmp eax, 8
jb 0x10002fdb
inc eax
lea ecx, [edi + 8]
push eax
push dword [edi + 8]
call fcn.100027f0
mov dword [edi + 0x1c], 7
cmp dword [edi + 0x1c], 8
mov dword [edi + 0x18], 0
jb 0x10002ffa
mov eax, dword [edi + 8]
xor ecx, ecx
pop edi
pop esi
mov word [eax], cx
ret
xor eax, eax
mov word [edi + 8], ax
pop edi
pop esi
ret
Function at 0x10006500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push edi
mov esi, edx
push 1
push 4
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.1008cc4f
add esp, 0x10
cmp eax, 1
jne 0x10006592
mov eax, dword [ebp - 4]
movzx ecx, al
shl ecx, 8
movzx eax, ah
add ecx, eax
movzx eax, byte [ebp - 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
add eax, ecx
mov dword [esi + 4], eax
cmp eax, 0x7a1200
ja 0x10006592
add eax, 0xc
push eax
mov dword [esi + 4], eax
call fcn.1001f34a
mov ecx, dword [ebp - 4]
mov dword [esi], eax
push edi
mov dword [eax], ecx
mov eax, dword [esi + 4]
sub eax, 4
push 1
push eax
mov eax, dword [esi]
add eax, 4
push eax
call fcn.1008cc4f
add esp, 0x14
cmp eax, 1
jne 0x10006592
mov eax, dword [esi]
pop edi
pop esi
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c610
Capabilities:
Terminate process

Disassembly:
test edx, edx
mov eax, str.undefined
push esi
cmovne eax, edx
mov esi, ecx
push eax
push str.libpng_error:__s
push 2
call fcn.1008c963
add esp, 4
push eax
call fcn.10006200
add esp, 0xc
push 0x10272504
push 2
call fcn.1008c963
add esp, 4
push eax
call fcn.10006200
add esp, 8
test esi, esi
je 0x1000c668
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1000c668
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1000c668
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1001a200
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1001a20b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.1001a220
Function at 0x1001e4eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001e500
xor eax, eax
pop ebp
ret
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
pop ebp
ret

Function at 0x1001e576
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x1108], eax
je 0x1001e5a7
mov dword [edi + 0x10e4], 0x3f3
xor ebx, ebx
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
xor eax, eax
jmp 0x1001e6e9
mov eax, dword [0x10298a90]
cmp eax, 0xffffffff
je 0x1001e5c8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001e5c8
mov dword [edi + 0x10e4], 0x3f4
jmp 0x1001e592
push edi
push 1
call fcn.100205d5
pop ecx
pop ecx
test eax, eax
jne 0x1001e5ea
xor ebx, ebx
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10e4], ebx
jmp 0x1001e59a
lea ecx, [edi + 0x10cc]
call fcn.100202e0
xor ebx, ebx
cmp dword [edi + 0x10f0], ebx
jne 0x1001e5a0
cmp dword [edi + 0x110c], ebx
jne 0x1001e6a5
push esi
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [edi + 0x110c], eax
call esi
push str.FDICopy
push dword [edi + 0x110c]
mov dword [edi + 0x1110], eax
call esi
push str.FDIIsCabinet
push dword [edi + 0x110c]
mov dword [edi + 0x1114], eax
call esi
push str.FDIDestroy
push dword [edi + 0x110c]
mov dword [edi + 0x1118], eax
call esi
mov dword [edi + 0x111c], eax
pop esi
cmp dword [edi + 0x1110], ebx
je 0x1001e687
cmp dword [edi + 0x1114], ebx
je 0x1001e687
cmp dword [edi + 0x1118], ebx
je 0x1001e687
test eax, eax
jne 0x1001e6a5
lea eax, [edi + 0x10cc]
mov dword [edi + 0x110c], ebx
mov dword [eax + 0x18], 0x3e8
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
jmp 0x1001e5a0
lea eax, [edi + 0x10cc]
push eax
push 1
push 0x1001f3f9
push 0x1001f37a
push 0x1001f423
push 0x1001f3cf
push 0x1001f3a3
push fcn.1001f39e
push fcn.1001f34a
call dword [edi + 0x1110]
xor ecx, ecx
mov dword [edi + 0x10f0], eax
add esp, 0x24
test eax, eax
setne cl
mov eax, ecx
pop edi
pop ebx
ret

Function at 0x1001e6ec
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x101da250
call fcn.1005d8ab
push dword [ebp + 8]
call fcn.1001e4eb
pop ecx
test eax, eax
je 0x1001e709
xor eax, eax
jmp 0x1001e775
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.1001dfef
push dword [ebp - 0x14]
and dword [ebp - 4], 0
call fcn.10020288
push 0x5c
push dword [ebp - 0x14]
call fcn.10078e81
add esp, 0xc
test eax, eax
jne 0x1001e736
push 0xf
pop esi
jmp 0x1001e76a
push dword [ebp - 0x14]
xor ecx, ecx
mov word [eax], cx
call fcn.1001e6ec
mov esi, eax
pop ecx
test esi, esi
jne 0x1001e76a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001e768
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x1001e76a
xor esi, esi
push dword [ebp - 0x14]
call fcn.1001f39e
pop ecx
mov eax, esi
call fcn.1005d885
ret