joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cd780
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1151bfb0], 1
push ebx
push esi
push edi
mov edi, 0x861110
mov ebx, 0x861260
mov esi, 0x790b10
jne 0x100cd8a7
cmp dword [0x1151bfb4], 0
push dword [0x1151bfc4]
push dword [0x1151bfc0]
jne 0x100cd831
call edi
mov ecx, eax
call ebx
mov eax, dword [eax + 0x28]
add eax, dword [0x1151bfbc]
push eax
call edi
mov ecx, eax
call ebx
mov eax, dword [eax + 0x24]
add eax, dword [0x1151bfb8]
push eax
call esi
add esp, 0x10
test al, al
je 0x100cd8a7
push 1
mov eax, 0x791070
call eax
add esp, 4
test al, al
je 0x100cd8a7
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push 0x83703d
call esi
lea eax, [ebp - 4]
mov byte [0x83703d], 0
push eax
push dword [ebp - 4]
push 1
push 0x83703d
call esi
mov dword [0x1151bfb4], 1
jmp 0x100cd8a0
call edi
mov ecx, eax
call ebx
mov eax, dword [eax + 0x28]
add eax, dword [0x1151bfbc]
push eax
call edi
mov ecx, eax
call ebx
mov eax, dword [eax + 0x24]
add eax, dword [0x1151bfb8]
push eax
call esi
add esp, 0x10
test al, al
je 0x100cd8a7
push 1
mov eax, 0x791070
call eax
add esp, 4
test al, al
je 0x100cd8a7
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push 0x83703d
call esi
lea eax, [ebp - 4]
mov byte [0x83703d], 0xc
push eax
push dword [ebp - 4]
push 1
push 0x83703d
call esi
mov dword [0x1151bfb4], 0
mov eax, 0x83c080
call eax
xor ebx, ebx
mov esi, 0x1151be68
nop
cmp dword [esi - 0xc], 0
je 0x100cd905
mov eax, dword [0x1151bfb4]
cmp eax, dword [esi]
jne 0x100cd905
call edi
mov ecx, eax
mov eax, 0x861260
call eax
mov edi, dword [eax + 0x28]
mov eax, 0x861110
call eax
mov ecx, eax
mov eax, 0x861260
call eax
push dword [esi - 0x14]
push dword [esi - 0x18]
mov ecx, dword [eax + 0x24]
mov eax, dword [esi - 0x1c]
add eax, edi
push eax
mov eax, dword [esi - 0x20]
add eax, ecx
push eax
mov eax, 0x790b10
call eax
add esp, 0x10
test al, al
jne 0x100cd91a
mov edi, 0x861110
add esi, 0x24
inc ebx
cmp esi, 0x1151bfd0
jl 0x100cd8b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0xec]
pop edi
pop esi
pop ebx
mov dword [eax + 0x11c], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x100d02f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10129040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100d0337
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ee369
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x18]
push 0
push eax
push 6
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
mov eax, 0x1112
cmp word [ebp - 0x20], ax
jne 0x100d0450
cmp dword [ebp - 0x1e], 0x36
jne 0x100d0450
cmp byte [ebp + 0x10], 0
mov eax, 0x10302af4
push esi
push 0
mov esi, 0x10302b24
cmove esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x14]
xor eax, dword [0x10302b54]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [0x10302b58]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [0x10302b5c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
xor eax, dword [0x10302b60]
push 0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x14]
xor eax, dword [0x10302b54]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [0x10302b58]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [0x10302b5c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
xor eax, dword [0x10302b60]
push 0
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x14]
xor eax, dword [0x10302b54]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [0x10302b58]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [0x10302b5c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 8]
xor eax, dword [0x10302b60]
push edi
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ee369
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop ebx
xor ecx, ebp
pop edi
call fcn.100ee369
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100db580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10129040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10303708], 0
je 0x100db5db
lea ecx, [ebp - 0x408]
call fcn.10004fb0
push ecx
lea eax, [ebp - 0x40c]
push eax
push 0x103036cb
lea ecx, [ebp - 0x408]
call fcn.100050e0
test al, al
je 0x100db5e9
mov eax, dword [0x10303708]
cmp eax, dword [ebp - 0x40c]
jne 0x100db5e9
push ecx
call fcn.100db610
call 0x100db8d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ee369
mov esp, ebp
pop ebp
ret
push 0x10
push str.Error
push str.CheckSumFile_CRC_error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100e0cd0
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x114a0550], 3
push ebx
push esi
push edi
mov edi, ecx
jne 0x100e0d0c
cmp dword [0x114a0538], 0
je 0x100e0d0c
mov dword [ebp - 7], 0
lea ecx, [ebp - 8]
mov edx, 5
mov dword [ebp - 8], 0x51bf05c1
mov byte [ebp - 4], 0
call fcn.100e16c0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x114a0554], 0
mov dword [0x114a0550], 0
call esi
mov dword [0x114a054c], eax
call esi
mov dword [0x114a0548], eax
mov eax, dword [edi + 0x48]
mov dword [0x114a03bc], eax
mov eax, dword [edi + 0x4c]
mov dword [0x114a03b8], eax
mov eax, dword [edi + 0x50]
mov dword [0x114a0544], 0
mov dword [0x114a0540], 0
mov dword [0x114a053c], 0
mov dword [0x114a0538], 0
cmp eax, 3
ja 0x100e0d79
mov dword [0x114a03b4], eax
mov eax, dword [edi + 0x54]
xor ecx, ecx
mov dword [0x114a0528], eax
mov eax, dword [edi + 0x58]
mov dword [0x114a03f0], eax
mov eax, dword [edi + 0x5c]
mov dword [0x114a03ec], eax
mov eax, dword [edi + 0x60]
mov dword [0x114a03e8], eax
mov eax, dword [edi + 0x64]
mov dword [0x114a041c], eax
mov eax, dword [edi + 0x68]
mov dword [0x114a040c], eax
mov eax, dword [edi + 0x6c]
mov dword [0x114a0418], eax
mov eax, dword [edi + 0x70]
mov dword [0x114a03f8], eax
mov eax, dword [edi + 0x74]
mov dword [0x114a03f4], eax
mov eax, dword [edi + 0x78]
mov dword [0x114a04f4], eax
mov eax, dword [edi + 0x7c]
mov dword [0x114a04f0], eax
mov eax, dword [edi + 0x80]
mov dword [0x114a04ec], eax
mov eax, dword [edi + 0x84]
mov dword [0x114a0408], eax
mov eax, dword [edi + 0x88]
mov dword [0x114a0400], eax
mov al, byte [edi + 0x44]
mov byte [0x106ff615], al
mov eax, dword [0x7bc4f04]
mov word [eax + 0x7e], cx
mov eax, dword [0x7bc4f04]
mov byte [eax + 0x30c], cl
mov eax, dword [edi + 0x90]
mov ecx, dword [edi + 0x94]
mov dword [0x114a03d0], eax
mov dword [0x114a03d4], ecx
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x9c]
mov dword [0x114a03d8], eax
mov dword [0x114a03dc], ecx
mov eax, dword [edi + 0xa0]
mov ecx, dword [edi + 0xa4]
mov dword [0x114a0410], eax
mov eax, dword [0x8128ac8]
mov dword [0x114a0414], ecx
movzx eax, byte [eax + 0xb]
and eax, 7
cmp eax, 6
ja case.default.0x100e0e6a
jmp dword [eax*4 + 0x100e0f2c]
cmp dword [0x10303714], 0xffff
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
sbb bl, bl
push 1
and bl, 0xd
push 0x556c38
add bl, 2
call esi
mov byte [0x556c38], bl
jmp 0x100e0ef8
cmp dword [0x10303718], 0xffff
jmp 0x100e0e7b
cmp dword [0x1030371c], 0xffff
jmp 0x100e0e7b
cmp dword [0x10303720], 0xffff
jmp 0x100e0e7b
cmp dword [0x10303724], 0xffff
jmp 0x100e0e7b
cmp dword [0x10303728], 0xffff
jmp 0x100e0e7b
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x556c38
call esi
mov byte [0x556c38], 0xf
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push 0x556c38
call esi
mov dword [ebp - 8], 0xf304c1
lea ecx, [ebp - 8]
mov edx, 4
mov byte [ebp - 5], 0xf7
call fcn.100e16c0
call fcn.10070410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100e2400
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10129040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0xe609e8], 5
jne 0x100e262b
cmp dword [0x114a0554], 2
je 0x100e262b
cmp dword [0x114a0534], 0
je 0x100e24cf
mov byte [0x8793703], 0
cmp dword [0xe609e8], 5
jne 0x100e246d
mov eax, 0x8d2cf0
call eax
mov eax, 0x4d50f0
call eax
mov eax, 0x6d6f10
call eax
mov eax, 0x7dd230
call eax
mov eax, 0x634640
call eax
mov eax, 0x631610
call eax
mov dword [0xe609e8], 2
mov eax, 0x4db220
mov byte [0xe8cb4c], 0
mov word [0xe8cb4e], 0
mov byte [0xe8cb1e], 0
mov dword [0x87935a4], 0
mov dword [0x8793714], 0
call eax
mov edx, 0x4ef4c0
mov ecx, eax
call edx
mov eax, 0x63d680
call eax
mov dword [0x114a0534], 0
jmp 0x100e262b
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [0x10303730]
mov dword [0x114a0554], 1
mov dword [0x114a0550], 0
call esi
mov dword [0x114a054c], eax
call esi
mov dword [0x114a0548], eax
xor esi, esi
mov eax, dword [0xe8cb7c]
mov ecx, 0x402bc0
mov dword [0x114a0544], 0x7530
mov dword [0x114a0540], edi
mov dword [0x114a053c], 0
movzx eax, byte [eax + 8]
mov dword [0x114a0538], eax
nop
xor al, al
mov edi, 6
mov byte [ebp - 0x105], al
mov ebx, 4
lea eax, [ebp - 0x100]
sub edi, eax
nop word [eax + eax]
push esi
call ecx
mov ecx, eax
mov eax, 0x96a4c0
call eax
test eax, eax
je 0x100e25a7
cmp byte [eax + 0x30c], 0
je 0x100e25a7
movzx ecx, word [eax + 0x7e]
mov eax, ecx
mov byte [ebp - 0x10b], cl
shr eax, 8
mov byte [ebp - 0x10c], al
lea eax, [edi + ebx]
lea eax, [ebp + eax - 0x104]
cmp eax, 0x100
ja 0x100e25b5
mov ax, word [ebp - 0x10c]
mov word [ebp + ebx - 0x104], ax
add ebx, 2
inc byte [ebp - 0x105]
inc esi
mov ecx, 0x402bc0
cmp esi, 0x190
jb 0x100e2550
mov al, byte [ebp - 0x105]
push 0xffffffffffffffff
mov byte [ebp - 0x101], al
lea eax, [ebp - 0x104]
push ebx
push eax
push 0x14
mov byte [ebp - 0x104], 0xc1
mov byte [ebp - 0x103], bl
mov byte [ebp - 0x102], 0x14
call fcn.100dbbd0
add esp, 0x10
mov ecx, 0x402bc0
cmp esi, 0x190
jb 0x100e2530
mov dword [0x81f6b6c], 0
mov ecx, dword [0x8128ac8]
pop edi
pop esi
pop ebx
movq xmm0, qword [ecx]
movq qword [0x114a0568], xmm0
mov ax, word [ecx + 8]
mov word [0x114a0570], ax
mov al, byte [ecx + 0xa]
mov byte [0x114a0572], al
mov ecx, 0x102de7a0
call fcn.1008c840
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ee369
mov esp, ebp
pop ebp
ret
Function at 0x100e9c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x15
mov edi, 0x861110
call edi
mov esi, 0x85ec20
mov ecx, eax
call esi
test al, al
jne 0x100e9d4e
push 0x49
call edi
mov ecx, eax
call esi
test al, al
jne 0x100e9d4e
push 0x4f
call edi
mov ecx, eax
call esi
test al, al
jne 0x100e9d4e
push 0xe
call edi
mov ecx, eax
call esi
test al, al
jne 0x100e9d4e
push 8
call edi
mov ecx, eax
call esi
test al, al
jne 0x100e9d4e
push 7
call edi
mov ecx, eax
call esi
test al, al
jne 0x100e9d4e
push 0x41
call edi
mov ecx, eax
call esi
test al, al
jne 0x100e9d4e
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x102df2a8]
cmp eax, 0x5dc
jb 0x100e9d4e
cmp byte [0x102df2ad], 1
jne 0x100e9cf2
mov byte [0x102df2ad], 0
pop edi
mov dword [0xe8cb3c], 0
mov byte [0x1151d694], 0
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 7], 0
lea ecx, [ebp - 8]
mov edx, 5
mov dword [ebp - 8], 0xd6f305c1
mov byte [ebp - 4], 0
call fcn.100e16c0
call esi
mov dword [0x102df2a8], eax
mov byte [0x102df2ad], 1
mov dword [0xe8cb3c], 1
push 0x10
mov dword [0x1151d670], 0
mov byte [0x1151d680], 0x2a
mov byte [0x1151d694], 0
call edi
mov edx, 0x85f9a0
mov ecx, eax
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100eb520
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movsd xmm0, qword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
movsd qword [edi], xmm0
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100eb560
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 8]
cmp al, 0xff
je 0x100eb580
mov byte [esi], al
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100eb5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.100f0120
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100eb5e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x1149a588]
test edx, 0xffff0000
jne 0x100eb722
push edi
push 0x1011f890
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x100eb721
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0xc
jb 0x100eb721
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100eb721
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100eb717
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
push edi
push esi
cmp ecx, dword [ebx + 8]
jne 0x100eb6bd
mov dword [ebp - 8], eax
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
call eax
mov edx, dword [ebp - 8]
lea ecx, [edx*4 + 0xc]
cmp eax, ecx
jb 0x100eb720
xor edi, edi
test edx, edx
je 0x100eb717
nop dword [eax]
mov esi, dword [ebx + edi*4 + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, dword [ebx]
jb 0x100eb680
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], eax
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
call eax
mov edx, dword [ebp - 8]
lea ecx, [edx*8 + 0xc]
cmp eax, ecx
jb 0x100eb720
xor eax, eax
mov dword [ebp - 8], eax
test edx, edx
je 0x100eb717
nop
mov esi, dword [ebx + eax*8 + 0x10]
mov edi, dword [ebx + eax*8 + 0xc]
lea eax, [ebp - 4]
add esi, dword [ebp + 8]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
mov dword [edi], esi
push eax
push dword [ebp - 4]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebx]
jb 0x100eb6e0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100eb860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x10129040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.100f06a0
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.100cee90
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100eb990
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10126368
push 0x100eff50
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10129040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x13c], edx
push ecx
push str..PhysicalDrive_d
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x140], esi
cmp esi, 0xffffffff
je 0x100ebb37
mov dword [ebp - 0x124], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x134], xmm0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
push 0
lea eax, [ebp - 0x138]
push eax
push 8
lea eax, [ebp - 0x134]
push eax
push 0xc
lea eax, [ebp - 0x12c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100eba6f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100ebb37
push dword [ebp - 0x130]
call fcn.100ee985
mov edi, eax
mov dword [ebp - 0x144], edi
push dword [ebp - 0x130]
push 0
push edi
call fcn.100f06a0
add esp, 0x10
push 0
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x130]
push edi
push 0xc
lea eax, [ebp - 0x12c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100ebb27
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100ebb27
mov dword [ebp - 4], 0
add eax, edi
push eax
push 0x100
push dword [ebp - 0x13c]
call fcn.100f78eb
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.100ee98e
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100ebb39
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.100ee98e
add esp, 4
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100ee369
mov esp, ebp
pop ebp
ret
Function at 0x100ff234
Capabilities:
Parse pe header

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

Function at 0x10101275
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x105728d0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101012b5
cmp byte [ebx], 0xa
jne 0x101012b5
or byte [edi + eax + 0x28], 4
jmp 0x101012ba
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x101013b9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1010139c
inc eax
cmp dl, 0xd
je 0x101012e6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1010130c
cmp eax, ecx
jae 0x1010131a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x101012ce
jmp 0x101013b9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10101397
cmp dword [ebp - 0x10], 0
je 0x10101397
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x105728d0]
test byte [eax + edi + 0x28], 0x48
je 0x10101371
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1010135c
mov byte [esi], dl
jmp 0x1010136d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x105728d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101013b9
cmp byte [ebp - 1], 0xa
jne 0x10101380
cmp esi, ebx
jne 0x10101380
mov byte [esi], 0xa
jmp 0x101013b8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1010947d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101013b9
mov byte [esi], 0xd
jmp 0x101013b8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x105728d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101013b6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101013b9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101013c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x105728d0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10101408
cmp word [ebx], dx
jne 0x10101408
or byte [eax + edi + 0x28], 4
jmp 0x1010140d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10101570
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10101550
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1010144e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10101484
cmp eax, edx
jae 0x10101492
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10101429
jmp 0x10101570
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010154b
cmp dword [ebp - 0x18], 0
je 0x1010154b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x105728d0]
test byte [eax + edi + 0x28], 0x48
je 0x10101521
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x101014e5
mov word [esi], cx
jmp 0x1010151c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x105728d0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x105728d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x105728d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10101570
pop eax
cmp word [ebp - 4], ax
jne 0x10101531
cmp esi, ebx
jne 0x10101531
mov word [esi], ax
jmp 0x1010156d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1010947d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10101570
push 0xd
pop eax
jmp 0x1010152c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x105728d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1010156a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10101570
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret