joyce8/EMBER2024-capa huggingface dataset:
Function at 0x124affc
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x12969ca
call fcn.01160118
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], 0x102b9b4
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 1
mov dword [esi + 0x50], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x54], ebx
mov byte [ebp - 4], 3
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov byte [ebp - 4], 4
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov byte [ebp - 4], 5
fldz
fstp qword [esi + 0x18]
mov dword [esi + 8], ebx
fldz
mov dword [esi + 0xc], ebx
fstp qword [esi + 0x20]
mov byte [esi + 0x4c], bl
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x1296b63
call fcn.01160118
push ecx
push ebx
push esi
push dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x18], ebx
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x102bac0
mov dword [esi + 4], 0x102ba80
mov dword [esi + 8], 0x102ba58
mov dword [esi + 0xc], 0x102ba30
mov dword [esi + 0x10], 0x102ba0c
mov dword [esi + 0x14], 0x102b9e8
call fcn.0105d453
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x24], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x28], ebx
mov byte [ebp - 4], 3
push dword [ebp + 8]
lea ecx, [esi + 0x2c]
call fcn.0105d453
mov byte [ebp - 4], 4
mov dword [esi + 0x30], ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x34], ebx
mov byte [ebp - 4], 6
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1252241
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
mov eax, 0x1297408
call fcn.01160118
push ecx
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], 0x102be98
mov dword [esi + 4], 0x102be88
mov dword [esi + 8], 0x102be74
mov dword [esi + 0xc], 0x102be50
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [ebp - 0x10], esi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [ebp - 4], eax
fldz
fstp qword [esi + 0x48]
fldz
fstp qword [esi + 0x50]
mov ecx, dword [0x12ce0a0]
mov dword [esi + 0x58], ecx
mov byte [ebp - 4], 1
fld1
lea ecx, [esi + 0x70]
fstp qword [esi + 0x60]
mov dword [esi + 0x5c], 1
mov dword [esi + 0x68], eax
call fcn.011c8c40
mov byte [ebp - 4], 2
lea ecx, [esi + 0x88]
call fcn.01251880
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1254d28
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x12976ea
call fcn.01160118
push ecx
push esi
mov esi, ecx
and dword [esi], 0
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea ecx, [esi + 4]
call fcn.01254c92
xor eax, eax
inc eax
mov byte [ebp - 4], al
and dword [esi + 0x3c], 0
push 2
pop ecx
push 4
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
pop eax
mov dword [esi + 8], 0xd
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], 0x43535449
mov dword [esi + 0x18], 0x2000
mov dword [esi + 0x1c], 0x14
mov dword [esi + 0x24], 6
mov dword [esi + 0x28], 0x43585a4c
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x125505e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x12977d0
call fcn.01160118
sub esp, 0x220
mov eax, dword [0x12cf8c8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x220], eax
jne 0x1255098
mov eax, 0x80004003
jmp 0x125520b
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
mov dword [ebp - 0x21c], eax
jl 0x1255205
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x21c], 0x80004005
call fcn.01045e8e
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x228]
call fcn.01044f5e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0107bf40
cmp eax, ebx
jl 0x125510c
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
call fcn.01045001
cmp eax, ebx
jge 0x1255133
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0104508a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0104508a
mov eax, esi
jmp 0x125520b
mov ecx, dword [ebp - 0x220]
push ebx
push dword [ebp - 0x228]
call fcn.01044d39
mov ebx, eax
test ebx, ebx
jle 0x12551e7
push ecx
lea eax, [ebp - 0x224]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call fcn.0105258e
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.01045ebe
mov ecx, esi
call fcn.0104502b
mov eax, dword [ebp - 0x228]
mov eax, dword [eax - 8]
mov ecx, dword [ebp - 0x220]
mov ecx, dword [ecx]
add eax, ebx
lea eax, [ecx + eax*2 + 2]
push eax
mov ecx, esi
call fcn.010524eb
push dword [esi]
lea ecx, [ebp - 0x220]
call fcn.01257a53
mov byte [ebp - 4], 3
mov eax, dword [edi]
lea ecx, [ebp - 0x22c]
push ecx
push dword [ebp - 0x220]
push edi
call dword [eax + 0xc]
test eax, eax
mov dword [ebp - 0x21c], eax
jl 0x12551d7
cmp dword [ebp - 0x22c], 0xffffffff
je 0x12551d7
and dword [ebp - 0x21c], 0
mov byte [ebp - 4], 1
push dword [ebp - 0x220]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0104508a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0104508a
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0115fe1a
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1255d26
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
push esi
xor ecx, ecx
lea esi, [ebx + 0x430]
xor eax, eax
cmp dword [esi], ecx
je 0x1255d3f
cmp dword [esi + 4], ecx
jne 0x1255d6e
push edi
lea edi, [ebx + 0x228]
cmp word [edi], cx
je 0x1255d6d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1255d61
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x22
push edi
mov ecx, esi
call fcn.0125683c
xor ecx, ecx
pop edi
cmp dword [esi], ecx
je 0x1255d84
cmp dword [esi + 4], ecx
je 0x1255d84
cmp eax, ecx
jl 0x1255d84
push esi
lea ecx, [ebx + 4]
call fcn.01255ca6
pop esi
pop ebx
ret

Function at 0x12576c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
jne 0x12576f0
push 0x800
mov dword [esi + 0xc], 0x400
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [esi + 0x14], eax
mov edx, dword [esi + 0x14]
cmp edx, edi
je 0x12577d0
cmp dword [esi + 8], 0x80000000
jne 0x12577d0
mov eax, dword [esi + 0x1c]
cmp eax, 1
mov dword [ebp - 4], edi
jne 0x125775d
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
shl eax, 1
cmp ecx, 0xffffffff
jne 0x1257730
mov ecx, dword [esi]
mov edi, dword [ecx]
lea ebx, [ebp - 4]
push ebx
push eax
push edx
push ecx
call dword [edi + 0xc]
jmp 0x125774c
push edi
lea edi, [ebp - 4]
push edi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
test eax, eax
mov dword [esi + 0x24], eax
jl 0x12577d0
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [esi + 0x10], eax
jmp 0x12577d0
cmp eax, edi
jne 0x12577c9
mov edi, dword [esi + 0xc]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.011602e0
mov ebx, esp
test ebx, ebx
je 0x12577d0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x125778f
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push edi
push ebx
push eax
call dword [ecx + 0xc]
jmp 0x12577ac
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
test eax, eax
mov dword [esi + 0x24], eax
jl 0x12577d0
push dword [esi + 0xc]
push dword [esi + 0x14]
push dword [ebp - 4]
push ebx
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x1257758
mov dword [esi + 0x24], 0x80004005
mov eax, dword [esi + 0x14]
mov dword [esi + 0x18], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x12577e3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
push edi
je 0x12578d1
cmp dword [esi + 8], 0x40000000
jne 0x12578d1
mov eax, dword [esi + 0x1c]
cmp eax, 1
jne 0x1257856
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 4]
shl edi, 1
cmp eax, 0xffffffff
mov ebx, 0x80004005
lea edx, [ebp - 4]
jne 0x1257832
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push edi
push dword [esi + 0x14]
push eax
call dword [ecx + 0x10]
jmp 0x1257849
push 0
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, ebx
cmp edi, dword [ebp - 4]
mov dword [esi + 0x24], eax
je 0x12578c7
mov dword [esi + 0x24], ebx
jmp 0x12578c7
test eax, eax
jne 0x12578c0
mov eax, dword [esi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.011602e0
mov edi, esp
test edi, edi
je 0x12578c7
xor ebx, ebx
push ebx
push ebx
mov byte [edi], 0
push dword [esi + 0xc]
push edi
push dword [esi + 0x10]
push dword [esi + 0x14]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
jne 0x12578a2
mov ecx, dword [esi]
mov edx, dword [ecx]
lea ebx, [ebp - 4]
push ebx
push eax
push edi
push ecx
call dword [edx + 0x10]
mov dword [esi + 0x24], eax
jmp 0x12578c7
push ebx
lea edx, [ebp - 4]
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x125789d
mov dword [esi + 0x24], 0x80004005
mov eax, dword [esi + 0x14]
and dword [esi + 0x10], 0
mov dword [esi + 0x18], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1257d20
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1257d51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1257d51
test eax, eax
jle 0x1257d53
and eax, 0xffff
or eax, 0x80070000
jmp 0x1257d53
xor eax, eax
pop ebp
ret 4
Function at 0x1264de8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
call fcn.01264d9f
xor ecx, ecx
mov edx, eax
shrd edx, ecx, 0xb
shr ecx, 0xb
mov esi, edx
inc esi
shl esi, 0xb
sub esi, eax
cmp dword [ebx], 0
jne 0x1264e18
mov eax, 0x80004003
jmp 0x1264e93
push edi
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 8], edi
je 0x1264e61
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push dword [ebp - 8]
jne 0x1264e8a
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, 0x80004005
jmp 0x1264e92
xor edi, edi
test esi, esi
mov byte [ebp - 1], 0
jbe 0x1264e90
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1264e5a
inc edi
cmp edi, esi
jb 0x1264e6b
jmp 0x1264e90
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1266b05
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x12d4848]
test eax, eax
push ebx
push esi
push edi
jne 0x1266b74
lea eax, [ebp - 8]
push eax
mov esi, 0x102ceec
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x1266b64
add eax, 3
and eax, 0xfffffffc
call fcn.011602e0
mov ebx, esp
test ebx, ebx
je 0x1266b64
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1266b64
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1007ab8
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1266b68
xor eax, eax
jmp 0x1266b74
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0xa]
mov dword [0x12d4848], eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1269236
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x126924b
cmp dword [ebp + 0xc], ebx
jne 0x1269255
mov eax, 0x80004003
jmp 0x12693dc
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x1269261
call fcn.01259479
push esi
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x12692a4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1269291
call esi
jmp 0x126929d
call esi
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x12693d1
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x12692d7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12692c4
call esi
jmp 0x12692d0
call esi
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x12693d0
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
jne 0x12692f2
mov ebx, 0x80004003
jmp 0x12693d0
push ebx
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x126932a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1269314
call esi
jmp 0x1269320
call esi
and eax, 0xffff
or eax, 0x80070000
mov esi, dword [ebp + 8]
mov ebx, eax
jmp 0x12693c9
mov esi, dword [ebp + 8]
mov byte [esi + edi], bl
xor edx, edx
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
add eax, esi
mov cl, byte [eax]
cmp cl, 0xa
je 0x126935c
cmp cl, 0xd
je 0x126935c
cmp cl, bl
je 0x126935c
cmp edx, ebx
jne 0x12693bd
cmp cl, 9
je 0x12693bd
cmp cl, 0x20
je 0x12693bd
mov edx, eax
jmp 0x12693bd
cmp edx, ebx
mov byte [eax], bl
je 0x12693bb
cmp byte [edx], 0x23
je 0x12693bb
mov eax, dword [0x12d1c68]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push edx
push dword [ebp + 0xc]
call fcn.01268755
test al, al
je 0x12693b3
cmp dword [ebp + 0x10], ebx
je 0x12693b3
mov eax, dword [0x12d1c68]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.012580f4
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.012688fe
lea ecx, [ebp - 0x14]
call fcn.01257fdd
lea ecx, [ebp + 0x14]
call fcn.01257fdd
xor edx, edx
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jbe 0x1269335
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
lea ecx, [ebp - 4]
call fcn.01082628
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x126982f
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x1269980
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x1269980
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x1269980
cmp dword [ebp + 0x14], esi
je 0x1269980
push ebx
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [edi], esi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x12698b5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12698a0
call esi
mov edi, eax
jmp 0x126997b
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x126997b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x12698ef
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12698da
call esi
mov edi, eax
jmp 0x1269972
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1269972
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x1269927
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x1269915
call edi
mov edi, eax
jmp 0x1269964
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1269964
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
push esi
push dword [ebp + 0x14]
mov ebx, eax
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.0126a3e3
mov edi, eax
cmp edi, esi
jl 0x1269959
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
shl eax, 3
mov dword [ecx], eax
cmp ebx, esi
je 0x1269964
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp + 8], esi
je 0x1269972
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
jmp 0x1269985
mov eax, 0x80070057
pop edi
pop esi
leave
ret 0x10
Function at 0x1269b40
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.msvcrt.dll_fgetc
cmp eax, 0xff
pop ecx
jne case.0x1269c4b.217
push dword [ebp + 8]
call sub.msvcrt.dll_fgetc
cmp eax, 0xd8
pop ecx
jne case.0x1269c4b.217
cmp dword [0x12d488c], 0x14
jge case.0x1269c4b.217
xor esi, esi
push dword [ebp + 8]
call sub.msvcrt.dll_fgetc
pop ecx
mov ecx, eax
cmp ecx, 0xff
mov dword [ebp - 0xc], ecx
jne 0x1269ba4
cmp esi, 6
jge case.0x1269c4b.217
inc esi
cmp esi, 7
jl 0x1269b7a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [0x12d488c]
push dword [ebp + 8]
lea eax, [eax + eax*2]
mov dword [eax*4 + 0x12d4894], ecx
call sub.msvcrt.dll_fgetc
push dword [ebp + 8]
mov ebx, eax
call sub.msvcrt.dll_fgetc
mov esi, ebx
shl esi, 8
or esi, eax
cmp esi, 2
pop ecx
pop ecx
mov dword [ebp - 8], eax
jl case.0x1269c4b.217
mov eax, dword [0x12d488c]
lea eax, [eax + eax*2]
push esi
mov dword [eax*4 + 0x12d4898], esi
call sub.msvcrt.dll_malloc
mov edi, eax
test edi, edi
pop ecx
je case.0x1269c4b.217
mov eax, dword [0x12d488c]
push dword [ebp + 8]
lea eax, [eax + eax*2]
mov dword [eax*4 + 0x12d4890], edi
mov al, byte [ebp - 8]
mov byte [edi + 1], al
lea eax, [esi - 2]
push eax
mov byte [edi], bl
lea ebx, [edi + 2]
push 1
push ebx
call sub.msvcrt.dll_fread
lea ecx, [esi - 2]
add esp, 0x10
cmp eax, ecx
jne case.0x1269c4b.217
mov edx, dword [0x12d488c]
mov ecx, dword [ebp - 0xc]
inc edx
lea eax, [ecx - 0xc0]
cmp eax, 0x3e
mov dword [0x12d488c], edx
ja case.0x1269c4b.196
movzx eax, byte [eax + 0x1269d76]
jmp dword [eax*4 + 0x1269d5a]
cmp dword [ebp - 4], 0
jne case.0x1269c4b.224
test byte [ebp + 0xc], 1
je case.0x1269c4b.224
push esi
call fcn.01269990
mov dword [ebp - 4], 1
mov edx, dword [0x12d488c]
jmp case.0x1269c4b.196
test byte [ebp + 0xc], 1
je case.0x1269c4b.224
mov ecx, dword [ebx]
mov eax, 0x102d0ec
cmp ecx, dword [eax]
je case.0x1269c4b.196
dec edx
lea eax, [edx + edx*2]
push dword [eax*4 + 0x12d4890]
mov dword [0x12d488c], edx
call sub.msvcrt.dll_free
pop ecx
jmp 0x1269c6b
push ecx
mov eax, edi
call fcn.01269a53
cmp edx, 0x14
jl 0x1269b78
jmp case.0x1269c4b.217
test byte [ebp + 0xc], 2
je 0x1269d52
mov ebx, dword [ebp + 8]
push ebx
call sub.msvcrt.dll_ftell
push 2
push 0
push ebx
mov edi, eax
call sub.msvcrt.dll_fseek
add esp, 0x10
test eax, eax
jne case.0x1269c4b.217
push ebx
call sub.msvcrt.dll_ftell
push 0
push edi
push ebx
mov esi, eax
call sub.msvcrt.dll_fseek
add esp, 0x10
test eax, eax
jne case.0x1269c4b.217
sub esi, edi
push esi
call sub.msvcrt.dll_malloc
mov edi, eax
test edi, edi
pop ecx
je case.0x1269c4b.217
push ebx
xor ebx, ebx
push esi
inc ebx
push ebx
push edi
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, esi
jne case.0x1269c4b.217
mov ecx, dword [0x12d488c]
lea eax, [ecx + ecx*2]
shl eax, 2
mov dword [eax + 0x12d4890], edi
inc ecx
mov dword [eax + 0x12d4898], esi
mov dword [eax + 0x12d4894], 0x123
mov dword [0x12d488c], ecx
mov dword [0x12d4888], ebx
xor eax, eax
inc eax
jmp 0x1269b9d
Function at 0x126a9ba
Capabilities:
Decompress data using quicklz

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
shr eax, 0x10
movzx eax, ax
push esi
push edi
mov edx, eax
shr edx, 5
mov esi, eax
mov edi, eax
mov ebx, eax
shr ebx, 1
and ebx, 3
mov dword [ebp - 8], edx
not eax
mov dword [ecx + 4], edx
and eax, 1
push 4
mov dword [ecx + 0x14], eax
movzx eax, word [ebp + 8]
pop edx
sub edx, ebx
mov ebx, eax
shr ebx, 9
and ebx, 1
mov dword [ecx + 0x20], ebx
mov ebx, eax
shr ebx, 8
and ebx, 1
mov dword [ecx + 0x24], ebx
mov ebx, eax
shr ebx, 6
and ebx, 3
mov dword [ecx + 0x28], ebx
mov ebx, eax
shr ebx, 4
and ebx, 3
mov dword [ecx + 0x2c], ebx
mov ebx, eax
shr ebx, 3
and ebx, 1
mov dword [ebp - 4], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x30], ebx
mov edx, eax
shr edx, 0xc
mov ebx, eax
shr ebx, 2
mov dword [ebp + 8], edx
mov dword [ecx + 0x18], edx
and ebx, 1
mov edx, eax
push 3
shr esi, 4
shr edi, 3
shr edx, 0xa
mov dword [ecx + 0x34], ebx
pop ebx
and esi, 1
and edi, 1
and edx, 3
and eax, ebx
cmp dword [ebp - 8], 0x7ff
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x38], eax
jne 0x126aaa6
cmp dword [ebp + 8], 0xf
je 0x126aaa6
cmp dword [ebp + 8], 0
je 0x126aaa6
cmp edx, ebx
je 0x126aaa6
test esi, esi
jne 0x126aa98
cmp dword [ebp - 4], ebx
jne 0x126aaa6
cmp edi, 1
jne 0x126aa98
cmp dword [ebp - 4], ebx
je 0x126aaa6
mov dword [ecx + 0x3c], 1
call fcn.0126a8c2
jmp 0x126aaaf
and dword [ecx + 0x3c], 0
call fcn.0126a879
mov eax, dword [ecx + 0x3c]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x126c26d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x102dab8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x126c2c5
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100685a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x126c2b8
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x126c2c7
xor eax, eax
pop esi
leave
ret 4