joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100015d0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
sub esp, 0x108
push eax
push ecx
lea edx, [esp + 0xc]
push str._s_u
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001640
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp]
inc eax
push eax
push esi
push 1
push 0
push 0x10018420
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x108
ret

Function at 0x10001650
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
sub esp, 0x108
push eax
push ecx
lea edx, [esp + 0xc]
push str._s_u
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100016c3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp]
push edx
push esi
push 1
push 0
push str.LastMountedFile
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x108
ret

Function at 0x100016d0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
sub esp, 0x108
push eax
push ecx
lea edx, [esp + 0xc]
push str._s_u
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001732
mov edx, dword [esp]
push 0x10018420
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x108
ret

Function at 0x10001740
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
sub esp, 0xc
push esi
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push 0x80000001
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100017b1
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0
push str.bufferedIO2
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100017a6
mov eax, dword [esp + 4]
xor edx, edx
test eax, eax
setne dl
mov esi, edx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x100017c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
sub esp, 0xc
push ebx
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push 0x80000001
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000182a
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0
push str.KeepHistory
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000181f
mov eax, dword [esp + 4]
test eax, eax
setne bl
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0xc
ret

Function at 0x10001a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov edx, dword [0x1001c000]
xor eax, eax
cmp edx, 4
mov edx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
setl al
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push edx
mov dword [esp + 0x10], 1
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001aad
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0
push str.NumberOfDrives
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x10001ac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push 0x80000001
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001b1b
mov ecx, dword [esp]
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
push 0
push 0
push str.EjectUnmounts
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
test eax, eax
setne al
add esp, 0xc
ret

Function at 0x10001b30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
mov edx, dword [0x1001c000]
xor eax, eax
cmp edx, 4
mov edx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
setl al
lea ecx, [esp]
push ecx
push 0xf003f
push 0
push edx
mov dword [esp + 0x14], 1
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001bb4
mov edx, dword [esp]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
push str.NumberOfDrives
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.NumberOfDrives
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret
Function at 0x10001bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001c1e
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 4]
push eax
push 0
push 0
push str.Installed
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x10002270
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov edx, dword [0x1001c000]
push esi
xor eax, eax
xor esi, esi
cmp edx, 4
mov edx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
setl al
lea ecx, [esp + 8]
push ecx
push 0x20019
push esi
push edx
mov dword [esp + 0x14], 1
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100022ec
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push esi
push esi
push str.NumberOfDrives
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 4]
push ecx
call sym.ElbyVCD.dll_VCCDSetDrives
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100022fa
mov edx, dword [esp + 4]
mov dword [eax], edx
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x10002310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x330
push ebx
mov ebx, dword [esp + 0x338]
push esi
push edi
mov edi, dword [esp + 0x344]
push edi
push 0x1397
mov ecx, 0x1c
lea eax, [esp + 0x1c]
mov edx, ebx
xor esi, esi
call fcn.10001070
add esp, 8
test eax, eax
je 0x10002356
test byte [esp + 0x28], 1
je 0x10002362
cmp dword [0x1001c000], 5
jge 0x10002362
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x330
ret
mov eax, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
push edi
push eax
lea ecx, [esp + 0x38]
push str._s_u
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
lea eax, [esp + 0x3c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000245d
cmp dword [0x1001c000], 4
jge 0x10002408
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x138]
push edx
push 0
push 0
push 0x10018420
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100023db
mov esi, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1000245d
lea edx, [esp + 0x134]
push edx
push edi
push ebx
call sym.ElbyVCD.dll_VCCDOpenDevice
add esp, 0xc
pop edi
mov esi, eax
pop esi
pop ebx
add esp, 0x330
ret
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x138]
push ecx
push 0
push 0
push str.LastMountedFile
push edx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000243a
mov esi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1000245d
lea ecx, [esp + 0x134]
push ecx
push edi
push ebx
call sym.ElbyVCD.dll_VCCDOpenDeviceW
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x330
ret

Function at 0x10002680
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x110
push ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x104
push edx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp byte [esp + 0x10], 0x5c
je 0x100026ba
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x100026c4
xor al, al
pop ebx
add esp, 0x110
ret
lea ecx, [esp + 4]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x100026f8
mov ecx, dword [esp + 8]
cmp ecx, ebx
je 0x100026f8
xor edx, edx
mov eax, 0x800
div ecx
test edx, edx
jne 0x100026f8
mov bl, 1
mov al, bl
pop ebx
add esp, 0x110
ret
Function at 0x10003150
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
lea eax, [esi + 4]
push eax
push 0x50
lea ecx, [esp + 0xc]
push ecx
push 0x100186bb
push str.Version
push str.CloneCD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 1
jb 0x100031a7
push 0xa
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.1000bd01
add esp, 0xc
cmp eax, 1
mov dword [esi], eax
jb 0x100031a7
cmp eax, 3
ja 0x100031a7
mov eax, 1
pop esi
add esp, 0x50
ret
xor eax, eax
pop esi
add esp, 0x50
ret

Function at 0x10003460
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp], eax
jne 0x10003490
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000348d
xor eax, eax
xor edx, edx
add esp, 8
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x100034a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
push ebx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edx
xor bl, bl
call fcn.10009c80
add esp, 0x20
test al, al
je 0x10003503
mov eax, dword [esp + 4]
mov ecx, 0x800
mul ecx
push 0
mov dword [esp + 0x14], edx
lea edx, [esp + 0x14]
push edx
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0xc]
push eax
push 0x24
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x37]
pop ebx
add esp, 0x34
ret
mov al, bl
pop ebx
add esp, 0x34
ret
Function at 0x10003ee0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x10003f18
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push ebx
xor ebx, ebx
mov bl, byte [ecx]
mov edx, eax
shr edx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
xor bx, word [edx*2 + 0x10018770]
inc ecx
dec esi
mov eax, ebx
jne 0x10003ef2
pop ebx
pop esi
ret
mov ax, word [esp + 0x10]
pop esi
ret

Function at 0x10004ddb
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
jmp 0x10004de1
dec edx
test dl, 3
jne 0x10004de0
test edx, edx
jbe 0x10004dfa
mov ecx, dword [esp + 8]
xor eax, eax
xor dword [eax + esi], ecx
add eax, 4
cmp eax, edx
jb 0x10004df0
pop esi
ret 8

Function at 0x1000d133
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000d223
mov eax, 0x94
call fcn.1000b9c0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000d298
mov ecx, dword [esi + 0x10]
mov dword [0x1001d270], ecx
mov eax, dword [esi + 4]
mov dword [0x1001d27c], eax
mov edx, dword [esi + 8]
mov dword [0x1001d280], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1001d274], esi
je 0x1000d19e
or esi, 0x8000
mov dword [0x1001d274], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1001d278], eax
call fcn.1000d3e5
test eax, eax
pop ecx
je 0x1000d298
call fcn.1000ff73
test eax, eax
jne 0x1000d1cb
call fcn.1000d436
jmp 0x1000d298
call fcn.100124b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1001e948], eax
call fcn.1001238e
mov dword [0x1001d0dc], eax
call fcn.10011e6f
test eax, eax
jl 0x1000d21c
call fcn.100122ec
test eax, eax
jl 0x1000d217
call fcn.100120b9
test eax, eax
jl 0x1000d217
push 0
call fcn.10011d22
test eax, eax
pop ecx
jne 0x1000d217
inc dword [0x1001d0d8]
jmp 0x1000d2a9
call fcn.1001206d
call fcn.1000fd5c
jmp 0x1000d1c1
test eax, eax
jne 0x1000d253
cmp dword [0x1001d0d8], eax
jle 0x1000d298
dec dword [0x1001d0d8]
cmp dword [0x1001d2ac], eax
jne 0x1000d242
call fcn.10011e60
call fcn.1001206d
call fcn.1000fd5c
call fcn.1000d436
jmp 0x1000d2a9
cmp eax, 2
jne 0x1000d29c
push 0x8c
push 1
call fcn.1000c05a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000d298
push esi
push dword [0x1001b5a4]
call dword [0x1001d25c]
test eax, eax
push esi
je 0x1000d292
call fcn.1000fd79
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000d2a9
call fcn.1000b945
pop ecx
xor eax, eax
jmp 0x1000d2ac
cmp eax, 3
jne 0x1000d2a9
push 0
call fcn.1000ff44
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10011d8c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10019430
call fcn.1000e15c
push 8
call fcn.1000d608
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1001d2b0], esi
jne 0x10011dc0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1001d2ac], esi
mov al, byte [ebp + 0x10]
mov byte [0x1001d2a8], al
cmp dword [ebp + 0xc], edi
jne 0x10011e0a
cmp dword [0x1001d908], edi
je 0x10011dfa
mov eax, dword [0x1001d904]
sub eax, 4
mov dword [0x1001d904], eax
cmp eax, dword [0x1001d908]
jb 0x10011dfa
mov eax, dword [eax]
cmp eax, edi
je 0x10011ddb
call eax
jmp 0x10011ddb
push 0x1001b02c
mov eax, 0x1001b024
call fcn.10011d0a
pop ecx
push 0x1001b038
mov eax, 0x1001b030
call fcn.10011d0a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10011e3b
cmp dword [ebp + 0x10], edi
jne 0x10011e49
mov dword [0x1001d2b0], esi
push dword [ebp + 8]
call fcn.10011cc8
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10011e48
push 8
call fcn.1000d553
pop ecx
ret
call fcn.1000e197
ret

Function at 0x100126b7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001b854]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1001b910]
je 0x100126ec
inc eax
cmp eax, 0x13
jb 0x100126dd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1001b910]
jne 0x10012812
mov eax, dword [0x1001d0e4]
cmp eax, 1
je 0x100127ea
cmp eax, edx
jne 0x1001271c
cmp dword [0x1001d0e8], 1
je 0x100127ea
cmp ecx, 0xfc
je 0x10012812
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10012752
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10011b40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1000fa00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10012786
mov eax, edi
push eax
call fcn.1000fa00
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10019848
push edi
call fcn.10013860
add esp, 0x10
push edi
call fcn.1000fa00
push dword [esi + 0x1001b914]
mov ebx, eax
call fcn.1000fa00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000b9c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10011b40
push edi
push ebx
call fcn.10011b50
push 0x10019828
push ebx
call fcn.10011b50
push dword [esi + 0x1001b914]
push ebx
call fcn.10011b50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10015672
add esp, 0x2c
jmp 0x10012812
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1001b914]
push dword [esi]
call fcn.1000fa00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10012fe9
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10012c4a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1001b854]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10012c7b
xor eax, eax
jmp 0x10012e04
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1001d800]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10012cb7
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1001576b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10012d92
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10012dd0
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x10012d1b
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10012d0c
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x10012cec
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10012d5b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10012d64
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10012cdd
jmp 0x10012d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10012dff
cmp dword [ebp - 0x6c], edi
je 0x10012dd0
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x10012dc5
call fcn.1000fa8b
mov dword [eax], 9
call fcn.1000fa94
mov dword [eax], esi
jmp 0x10012dfa
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10012dba
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x10012d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x10012d66
push dword [ebp - 0x6c]
call fcn.1000fa9d
pop ecx
jmp 0x10012dfa
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10012de8
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x10012de8
xor eax, eax
jmp 0x10012e02
call fcn.1000fa8b
mov dword [eax], 0x1c
call fcn.1000fa94
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10012e02
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10012fe9
add ebp, 0x3a0
leave
ret
Function at 0x1001329f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000b9c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001333a
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1001d270]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1001333a
cmp eax, 1
je 0x1001335b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001333a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10013307
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10013336
xor eax, eax
inc eax
jmp 0x1001337a
cmp edi, eax
jae 0x1001333e
xor eax, eax
jmp 0x1001337a
cmp eax, esi
jae 0x10013345
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1001d270]
jmp 0x1001335e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret