joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1228b2bc
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234bb8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x40]
call fcn.122ebbc0
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x6c]
call fcn.12289bf9
test eax, eax
je 0x1228b3b6
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.122ec4f0
push 0x331
push 0x12394f60
call fcn.1228ca90
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x40]
call fcn.122ec540
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
je 0x1228b35f
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x48], edx
jmp 0x1228b379
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.122ec520
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push 0x343
push 0x12394f80
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.1228cb39
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.122ec2c0
cmp dword [ebp - 0x44], 0
jbe 0x1228b480
cmp dword [ebp + 8], 0
je 0x1228b480
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x44]
jb 0x1228b480
mov eax, dword [ebp - 0x48]
and eax, 2
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.1228ae1d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.12212010
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x1228b474
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x1228b463
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.122ca640
add esp, 0xc
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.122cb390
add esp, 0xc
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.122b5d40
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.122ebd60
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1228b4ab
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234bba9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x44]
call fcn.122ebbc0
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.12289bf9
test eax, eax
je 0x1228b5ac
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.122ec4f0
push 0x36e
push 0x12394f90
call fcn.1228ca90
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x44]
call fcn.122ec540
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0
je 0x1228b555
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x4c], edx
jmp 0x1228b56f
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.122ec520
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push 0x380
push 0x12394fb0
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.1228cb39
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.122ec2c0
cmp dword [ebp - 0x48], 0
jbe 0x1228b67f
mov edx, dword [ebp - 0x4c]
and edx, 2
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.1228ae1d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.12212010
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x1228b673
mov edx, dword [ebp - 0x48]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x1228b662
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.122ca698
add esp, 4
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x1228b651
mov eax, dword [ebp - 0x48]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.122ca640
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.122cb390
add esp, 0xc
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.122b5d40
cmp dword [ebp + 8], 0
je 0x1228b68d
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x48]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.122ebd60
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1228db4f
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234bdf2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x40]
call fcn.122ebbc0
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x6c]
call fcn.1228ce3c
test eax, eax
je 0x1228dc49
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.122ec4f0
push 0x200
push 0x1239559c
call fcn.1228ca90
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x40]
call fcn.122ec540
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
je 0x1228dbf2
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x48], edx
jmp 0x1228dc0c
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.122ec520
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push 0x212
push 0x123955c4
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.1228cb39
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.122ec2c0
cmp dword [ebp - 0x44], 0
jbe 0x1228dd13
cmp dword [ebp + 8], 0
je 0x1228dd13
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x44]
jb 0x1228dd13
mov eax, dword [ebp - 0x48]
and eax, 2
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.1228d6a2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.12212010
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x1228dd07
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x1228dcf6
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.122ca640
add esp, 0xc
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.122cb390
add esp, 0xc
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.122b5d40
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.122ebd60
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1228dd3e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234be0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x44]
call fcn.122ebbc0
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.1228ce3c
test eax, eax
je 0x1228de3f
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.122ec4f0
push 0x23d
push 0x123955d8
call fcn.1228ca90
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x44]
call fcn.122ec540
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0
je 0x1228dde8
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x4c], edx
jmp 0x1228de02
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.122ec520
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push 0x24f
push 0x12395600
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.1228cb39
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.122ec2c0
cmp dword [ebp - 0x48], 0
jbe 0x1228df12
mov edx, dword [ebp - 0x4c]
and edx, 2
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.1228d6a2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.12212010
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x1228df06
mov edx, dword [ebp - 0x48]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x1228def5
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.122ca698
add esp, 4
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x1228dee4
mov eax, dword [ebp - 0x48]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.122ca640
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.122cb390
add esp, 0xc
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.122b5d40
cmp dword [ebp + 8], 0
je 0x1228df20
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x48]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.122ebd60
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1229092c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234c262
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push edi
mov dword [ebp - 0x88], ecx
cmp dword [ebp + 8], 0
je 0x12290964
mov eax, dword [ebp + 8]
push eax
call fcn.122ca717
add esp, 4
test eax, eax
jne 0x1229096b
xor eax, eax
jmp 0x12290b33
push 0x20
lea ecx, [ebp - 0x28]
call fcn.122a801a
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x20]
call fcn.12291970
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 0
je 0x12290a8f
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x34], 0
je 0x12290a8f
mov ecx, dword [ebp - 0x34]
and ecx, 1
test ecx, ecx
je 0x12290a79
mov word [ebp - 0x78], 0
mov ecx, 0xd
xor eax, eax
lea edi, [ebp - 0x76]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp - 0x38]
add edx, 0x41
mov word [ebp - 0x78], dx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x40]
call fcn.122b55a0
mov byte [ebp - 4], 2
push 0x12396648
lea ecx, [ebp - 0x40]
call fcn.122b6990
lea ecx, [ebp - 0x40]
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x68], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x12290a61
cmp dword [ebp - 0x64], 0
je 0x12290a61
mov edx, dword [ebp - 0x64]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x64]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
push str._04X__04X
lea ecx, [ebp - 0x60]
push ecx
call fcn.122cb738
add esp, 0x10
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x20]
call fcn.122919e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.122b5d40
mov eax, dword [ebp - 0x34]
shr eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
jmp 0x122909a2
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x30]
call fcn.12289ad0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.122919b0
push eax
lea ecx, [ebp - 0x20]
call fcn.122919d0
push eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.1228c0c6
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x30]
call fcn.1228a0e5
test eax, eax
je 0x12290afd
lea ecx, [ebp - 0x20]
call fcn.122919d0
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x20]
call fcn.122919b0
imul eax, eax, 0x38
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1229947c
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.12289b30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.12291a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.122a8050
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x12291d7b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234c402
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
push 0x123af7f8
lea ecx, [ebp - 0x18]
call fcn.122b55a0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x12291e4d
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x400000
ja 0x12291e43
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x20]
shr edx, 1
add edx, 1
push edx
lea ecx, [ebp - 0x18]
call fcn.122b6a10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.122ca640
add esp, 0xc
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.122b6ae0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x12291e71
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.122b5d40
mov eax, dword [ebp - 0x2c]
jmp 0x12291ef9
push 0x12396a7c
lea ecx, [ebp - 0x18]
call fcn.122b6f20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x12291ea2
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.122b5d40
mov eax, dword [ebp - 0x30]
jmp 0x12291ef9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
call fcn.122b8030
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
call fcn.12212010
push eax
call fcn.12291f07
add esp, 0xc
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.122b5d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.122b5d40
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1229422a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234c7c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.1229433a
add esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.12212020
test eax, eax
je 0x1229428e
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.122b5d40
mov eax, dword [ebp - 0x28]
jmp 0x1229432c
mov dword [ebp - 0x10], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x12294314
mov word [ebp - 0x20], 0xfeff
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x1c]
push edx
push 2
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x18]
call fcn.1221b470
shl eax, 1
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.12212010
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.122b5d40
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x12295d44
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234c8df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push edi
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 4], 0xffffffff
je 0x12295d7f
mov eax, 1
jmp 0x12295e6b
mov word [ebp - 0x8c], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x8a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jae 0x12295dc4
push 0x12397b34
push 0x12397b58
lea ecx, [ebp - 0x8c]
push ecx
call fcn.122cb738
add esp, 0xc
jmp 0x12295ddd
push str.TSandboxDrvCDOSL
push 0x12397b98
lea edx, [ebp - 0x8c]
push edx
call fcn.122cb738
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x94]
call fcn.122a801a
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xa0]
cmp dword [edx + 4], 0xffffffff
jne 0x12295e49
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.122a8050
mov eax, dword [ebp - 0x98]
jmp 0x12295e6b
mov dword [ebp - 0x9c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.122a8050
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1229b7b6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1229b7f4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1229b840
cmp dword [ebp + 0x10], 0
je 0x1229b80f
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.122ca717
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0x10], edx
jmp 0x1229b816
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1229b846
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1229b884
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1229b8a6
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc