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

Disassembly:
mov eax, 0x1291028
call fcn.01160168
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], 0x1025e34
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x10], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x14], ebx
mov byte [ebp - 4], 3
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x34], ebx
mov byte [ebp - 4], 6
mov dword [esi + 0x38], ebx
mov byte [ebp - 4], 7
mov byte [esi + 0x3c], bl
mov byte [esi + 0x3d], 1
mov byte [esi + 0x3e], bl
mov byte [esi + 0x3f], bl
mov dword [esi + 0x4c], ebx
mov byte [ebp - 4], 8
mov dword [esi + 0x50], ebx
mov byte [ebp - 4], 9
mov dword [esi + 0x54], ebx
mov byte [ebp - 4], 0xa
mov dword [esi + 0x58], ebx
mov byte [ebp - 4], 0xb
mov dword [esi + 0x5c], ebx
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x74]
mov dword [esi + 0x68], 0x140
mov dword [esi + 0x6c], 0xf0
mov dword [esi + 0x70], 0xac44
call fcn.01044ec9
mov byte [ebp - 4], 0xd
fldz
fstp qword [esi + 0x60]
mov dword [esi + 0x30], ebx
mov byte [esi + 0x40], 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

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

Disassembly:
mov eax, 0x1291028
call fcn.01160168
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], 0x1025e34
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x10], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x14], ebx
mov byte [ebp - 4], 3
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x34], ebx
mov byte [ebp - 4], 6
mov dword [esi + 0x38], ebx
mov byte [ebp - 4], 7
mov al, byte [ebp + 0xc]
mov byte [esi + 0x3c], al
mov al, byte [ebp + 8]
mov byte [esi + 0x3d], 1
mov byte [esi + 0x3e], al
mov byte [esi + 0x3f], bl
mov dword [esi + 0x4c], ebx
mov byte [ebp - 4], 8
mov dword [esi + 0x50], ebx
mov byte [ebp - 4], 9
mov dword [esi + 0x54], ebx
mov byte [ebp - 4], 0xa
mov dword [esi + 0x58], ebx
mov byte [ebp - 4], 0xb
mov dword [esi + 0x5c], ebx
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x74]
mov dword [esi + 0x68], 0x140
mov dword [esi + 0x6c], 0xf0
mov dword [esi + 0x70], 0xac44
call fcn.01044ec9
mov byte [ebp - 4], 0xd
fldz
fstp qword [esi + 0x60]
mov dword [esi + 0x30], ebx
mov byte [esi + 0x40], 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 0x12080a8
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ecx + 0x74]
cmp dword [eax - 8], 0
je 0x12080e3
cmp dword [ebp + 8], 0
jne 0x12080c6
mov eax, 0x80004003
jmp 0x12080e5
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x12080e3
mov eax, 0x80004005
jmp 0x12080e5
xor eax, eax
leave
ret 4

Function at 0x12117bd
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
add ecx, 0xffffff88
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x84]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x12117e7
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8

Function at 0x1217f19
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x12923f0
call fcn.01160168
push ecx
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [eax], 0x1013050
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [eax], 0x1026cd0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov byte [ebp - 4], 1
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov byte [ebp - 4], 2
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov byte [ebp - 4], 3
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x121d660
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x121d55d
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0xcc], eax
jne 0x121d697
mov eax, 0x80004005
jmp 0x121d6a8
push 1
push 2
mov ecx, esi
call fcn.0121d341
test eax, eax
jl 0x121d6a8
xor eax, eax
pop esi
leave
ret

Function at 0x1241b85
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
je 0x1241bc4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1241ba6
mov eax, 0xc9470064
jmp 0x1241bd9
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0124179b
test eax, eax
jl 0x1241bd9
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x1241bcb
mov eax, 0x80004003
jmp 0x1241bd9
push dword [ebp + 0x10]
call fcn.012059d0
test eax, eax
jl 0x1241bd9
xor eax, eax
leave
ret 0xc
Function at 0x124ae4f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1296755
call fcn.01160168
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 0x124c16f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x12968ee
call fcn.01160168
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.011af644
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.011af644
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 0x1251fdb
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
mov eax, 0x1297193
call fcn.01160168
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.011c8bff
mov byte [ebp - 4], 2
lea ecx, [esi + 0x88]
call fcn.0125161a
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 0x1254aa3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1297475
call fcn.01160168
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.01254a0d
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 0x1254dd9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x129755b
call fcn.01160168
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 0x1254e13
mov eax, 0x80004003
jmp 0x1254f86
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 0x1254f80
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x21c], 0x80004005
call fcn.01045d3e
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x228]
call fcn.01044ec9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0107bfb4
cmp eax, ebx
jl 0x1254e87
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
call fcn.01044f45
cmp eax, ebx
jge 0x1254eae
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.010454b8
mov eax, esi
jmp 0x1254f86
mov ecx, dword [ebp - 0x220]
push ebx
push dword [ebp - 0x228]
call fcn.01044ca4
mov ebx, eax
test ebx, ebx
jle 0x1254f62
push ecx
lea eax, [ebp - 0x224]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call fcn.01052598
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.01045d6e
mov ecx, esi
call fcn.01044f6f
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.010524f5
push dword [esi]
lea ecx, [ebp - 0x220]
call fcn.01257752
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 0x1254f52
cmp dword [ebp - 0x22c], 0xffffffff
je 0x1254f52
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.010454b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.010454b8
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0115fe73
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1255a5e
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 0x1255a77
cmp dword [esi + 4], ecx
jne 0x1255aa6
push edi
lea edi, [ebx + 0x228]
cmp word [edi], cx
je 0x1255aa5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1255a99
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x22
push edi
mov ecx, esi
call fcn.0125653b
xor ecx, ecx
pop edi
cmp dword [esi], ecx
je 0x1255abc
cmp dword [esi + 4], ecx
je 0x1255abc
cmp eax, ecx
jl 0x1255abc
push esi
lea ecx, [ebx + 4]
call fcn.012559de
pop esi
pop ebx
ret

Function at 0x12573c8
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 0x12573ef
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 0x12574cf
cmp dword [esi + 8], 0x80000000
jne 0x12574cf
mov eax, dword [esi + 0x1c]
cmp eax, 1
mov dword [ebp - 4], edi
jne 0x125745c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
shl eax, 1
cmp ecx, 0xffffffff
jne 0x125742f
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 0x125744b
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 0x12574cf
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [esi + 0x10], eax
jmp 0x12574cf
cmp eax, edi
jne 0x12574c8
mov edi, dword [esi + 0xc]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01160330
mov ebx, esp
test ebx, ebx
je 0x12574cf
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x125748e
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 0x12574ab
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 0x12574cf
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 0x1257457
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 0x12574e2
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 0x12575d0
cmp dword [esi + 8], 0x40000000
jne 0x12575d0
mov eax, dword [esi + 0x1c]
cmp eax, 1
jne 0x1257555
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 4]
shl edi, 1
cmp eax, 0xffffffff
mov ebx, 0x80004005
lea edx, [ebp - 4]
jne 0x1257531
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push edi
push dword [esi + 0x14]
push eax
call dword [ecx + 0x10]
jmp 0x1257548
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 0x12575c6
mov dword [esi + 0x24], ebx
jmp 0x12575c6
test eax, eax
jne 0x12575bf
mov eax, dword [esi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.01160330
mov edi, esp
test edi, edi
je 0x12575c6
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 0x12575a1
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 0x12575c6
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 0x125759c
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 0x1257a2a
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 0x1257a5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1257a5b
test eax, eax
jle 0x1257a5d
and eax, 0xffff
or eax, 0x80070000
jmp 0x1257a5d
xor eax, eax
pop ebp
ret 4
Function at 0x1264c2f
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.01264be6
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 0x1264c5f
mov eax, 0x80004003
jmp 0x1264cda
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 0x1264ca8
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 0x1264cd1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, 0x80004005
jmp 0x1264cd9
xor edi, edi
test esi, esi
mov byte [ebp - 1], 0
jbe 0x1264cd7
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 0x1264ca1
inc edi
cmp edi, esi
jb 0x1264cb2
jmp 0x1264cd7
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1266941
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 0x12669b0
lea eax, [ebp - 8]
push eax
mov esi, 0x102ceec
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x12669a0
add eax, 3
and eax, 0xfffffffc
call fcn.01160330
mov ebx, esp
test ebx, ebx
je 0x12669a0
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x12669a0
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 0x12669a4
xor eax, eax
jmp 0x12669b0
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 0x1269057
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 0x126906c
cmp dword [ebp + 0xc], ebx
jne 0x1269076
mov eax, 0x80004003
jmp 0x12691fd
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x1269082
call fcn.0125919e
push esi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x12690c5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12690b2
call esi
jmp 0x12690be
call esi
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x12691f2
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x12690f8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12690e5
call esi
jmp 0x12690f1
call esi
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x12691f1
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 0x1269113
mov ebx, 0x80004003
jmp 0x12691f1
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 0x126914b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1269135
call esi
jmp 0x1269141
call esi
and eax, 0xffff
or eax, 0x80070000
mov esi, dword [ebp + 8]
mov ebx, eax
jmp 0x12691ea
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 0x126917d
cmp cl, 0xd
je 0x126917d
cmp cl, bl
je 0x126917d
cmp edx, ebx
jne 0x12691de
cmp cl, 9
je 0x12691de
cmp cl, 0x20
je 0x12691de
mov edx, eax
jmp 0x12691de
cmp edx, ebx
mov byte [eax], bl
je 0x12691dc
cmp byte [edx], 0x23
je 0x12691dc
mov eax, dword [0x12d1c68]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push edx
push dword [ebp + 0xc]
call fcn.01268576
test al, al
je 0x12691d4
cmp dword [ebp + 0x10], ebx
je 0x12691d4
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.01257dfe
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0126871f
lea ecx, [ebp - 0x14]
call fcn.01257ce7
lea ecx, [ebp + 0x14]
call fcn.01257ce7
xor edx, edx
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jbe 0x1269156
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
lea ecx, [ebp - 4]
call fcn.01082732
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x1269650
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 0x12697a1
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x12697a1
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x12697a1
cmp dword [ebp + 0x14], esi
je 0x12697a1
push ebx
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
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 0x12696d6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12696c1
call esi
mov edi, eax
jmp 0x126979c
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x126979c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x1269710
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12696fb
call esi
mov edi, eax
jmp 0x1269793
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1269793
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 0x1269748
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x1269736
call edi
mov edi, eax
jmp 0x1269785
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1269785
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.0126a204
mov edi, eax
cmp edi, esi
jl 0x126977a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
shl eax, 3
mov dword [ecx], eax
cmp ebx, esi
je 0x1269785
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp + 8], esi
je 0x1269793
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 0x12697a6
mov eax, 0x80070057
pop edi
pop esi
leave
ret 0x10