joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002250
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x10011c98]
sub esp, 0xa8
test eax, eax
jne 0x100023bc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10002281
cmp dword [esp + 0x18], 4
jae 0x1000228a
xor eax, eax
add esp, 0xa8
ret
mov eax, dword [esp + 0x24]
cmp eax, 2
jne 0x10002382
lea ecx, [esp]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100022f5
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100022eb
mov ecx, dword [esp]
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
cmp ecx, 5
jae 0x1000230f
mov eax, 4
mov dword [0x10011c98], eax
add esp, 0xa8
ret
jbe 0x10002354
cmp ecx, 6
mov eax, 8
mov dword [0x10011c98], eax
ja 0x10002343
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
jae 0x10002343
cmp ecx, 1
jb 0x100023bc
mov eax, 9
mov dword [0x10011c98], eax
add esp, 0xa8
ret
mov eax, 0xa
mov dword [0x10011c98], eax
add esp, 0xa8
ret
mov eax, dword [esp + 0x1c]
cmp eax, 1
jae 0x1000236e
mov eax, 5
mov dword [0x10011c98], eax
add esp, 0xa8
ret
cmp eax, 2
sbb eax, eax
add eax, 7
mov dword [0x10011c98], eax
add esp, 0xa8
ret
cmp eax, 1
jne 0x100023b7
mov eax, dword [esp + 0x1c]
cmp eax, 0xa
jbe 0x100023a1
mov eax, 3
mov dword [0x10011c98], eax
add esp, 0xa8
ret
xor ecx, ecx
test eax, eax
seta cl
inc ecx
mov eax, ecx
mov dword [0x10011c98], eax
add esp, 0xa8
ret
mov eax, dword [0x10011c98]
add esp, 0xa8
ret

Function at 0x100023e0
Capabilities:
Get disk information

Disassembly:
sub esp, 8
test cl, cl
jne 0x100023f1
cmp al, 3
jae 0x100023f1
xor eax, eax
add esp, 8
ret
cmp al, 0x1a
jae 0x100023eb
movzx eax, al
add eax, 0x41
push eax
lea ecx, [esp + 4]
push str._c:_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 5
neg eax
sbb eax, eax
inc eax
add esp, 8
ret
Function at 0x100025e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xa8
push ebp
mov ebp, dword [esp + 0xb0]
mov al, byte [ebp + 0x1ac]
test al, al
mov byte [ebp + 0x1ae], 0
jne 0x10002609
xor eax, eax
pop ebp
add esp, 0xa8
ret
push ebx
push esi
movzx eax, al
push edi
add eax, 0x41
push eax
lea ecx, [esp + 0x14]
push str._c:_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0xc
push 1
call edi
push 0x50
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
mov ebx, eax
push 0x50
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov esi, eax
test esi, esi
je 0x100026bb
lea edx, [esp + 0x18]
push str.CDFS
push edx
call fcn.1000c7fe
add esp, 8
test eax, eax
je 0x100026b4
push 3
lea eax, [esp + 0x1c]
push 0x1000e338
push eax
call fcn.1000c867
add esp, 0xc
test eax, eax
je 0x100026b4
lea ecx, [esp + 0x18]
push str.ArcUDF
push ecx
call fcn.1000c7fe
add esp, 8
test eax, eax
je 0x100026b4
lea edx, [esp + 0x18]
push str.incdfs
push edx
call fcn.1000c7fe
add esp, 8
test eax, eax
jne 0x100026bb
mov byte [ebp + 0x1ae], 1
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0xa8
ret

Function at 0x10003250
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push esi
mov esi, eax
mov eax, dword [0x10011cb4]
test eax, eax
jne 0x100032f3
xor ecx, ecx
mov eax, ecx
shl eax, 0x18
test eax, eax
jns 0x10003274
add eax, eax
xor eax, 0x4c11db7
jmp 0x10003276
shl eax, 1
test eax, eax
jns 0x10003283
add eax, eax
xor eax, 0x4c11db7
jmp 0x10003285
shl eax, 1
test eax, eax
jns 0x10003292
add eax, eax
xor eax, 0x4c11db7
jmp 0x10003294
shl eax, 1
test eax, eax
jns 0x100032a1
add eax, eax
xor eax, 0x4c11db7
jmp 0x100032a3
shl eax, 1
test eax, eax
jns 0x100032b0
add eax, eax
xor eax, 0x4c11db7
jmp 0x100032b2
shl eax, 1
test eax, eax
jns 0x100032bf
add eax, eax
xor eax, 0x4c11db7
jmp 0x100032c1
shl eax, 1
test eax, eax
jns 0x100032ce
add eax, eax
xor eax, 0x4c11db7
jmp 0x100032d0
shl eax, 1
test eax, eax
jns 0x100032dd
add eax, eax
xor eax, 0x4c11db7
jmp 0x100032df
shl eax, 1
mov dword [ecx*4 + 0x10011cb0], eax
inc ecx
cmp ecx, 0x100
jl 0x10003262
test edx, edx
mov ecx, dword [esp + 8]
not esi
mov eax, esi
jle 0x1000331b
push edi
movzx edi, byte [ecx]
mov esi, eax
shr esi, 0x18
xor esi, edi
mov edi, dword [esi*4 + 0x10011cb0]
shl eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x10003300
pop edi
not eax
pop esi
ret
Function at 0x100055ea
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100056da
mov eax, 0x94
call fcn.10009050
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000574f
mov ecx, dword [esi + 0x10]
mov dword [0x10012360], ecx
mov eax, dword [esi + 4]
mov dword [0x1001236c], eax
mov edx, dword [esi + 8]
mov dword [0x10012370], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10012364], esi
je 0x10005655
or esi, 0x8000
mov dword [0x10012364], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10012368], eax
call fcn.10007292
test eax, eax
pop ecx
je 0x1000574f
call fcn.10005aa2
test eax, eax
jne 0x10005682
call fcn.100072e3
jmp 0x1000574f
call fcn.10008fc5
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10013964], eax
call fcn.10008ea3
mov dword [0x100120ec], eax
call fcn.10008984
test eax, eax
jl 0x100056d3
call fcn.10008e01
test eax, eax
jl 0x100056ce
call fcn.10008bce
test eax, eax
jl 0x100056ce
push 0
call fcn.1000877c
test eax, eax
pop ecx
jne 0x100056ce
inc dword [0x100120e8]
jmp 0x10005760
call fcn.10008b82
call fcn.1000588b
jmp 0x10005678
test eax, eax
jne 0x1000570a
cmp dword [0x100120e8], eax
jle 0x1000574f
dec dword [0x100120e8]
cmp dword [0x1001239c], eax
jne 0x100056f9
call fcn.100088ba
call fcn.10008b82
call fcn.1000588b
call fcn.100072e3
jmp 0x10005760
cmp eax, 2
jne 0x10005753
push 0x8c
push 1
call fcn.100088c9
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000574f
push esi
push dword [0x10011110]
call dword [0x10012104]
test eax, eax
push esi
je 0x10005749
call fcn.100058a8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10005760
call fcn.100051dd
pop ecx
xor eax, eax
jmp 0x10005763
cmp eax, 3
jne 0x10005760
push 0
call fcn.10005a73
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10007901
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov byte [ebp - 1], 0x36
and dword [ebp - 0x1c], 0
jmp 0x10007918
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 7
jge 0x10007961
and dword [ebp - 0x20], 0
jmp 0x1000792b
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 7
jge 0x1000795f
and dword [ebp - 0x24], 0
jmp 0x1000793e
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 7
jge 0x1000795d
movsx eax, byte [ebp - 1]
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x1d
add eax, ecx
mov byte [ebp - 1], al
jmp 0x10007937
jmp 0x10007924
jmp 0x10007911
and dword [ebp - 0x28], 0
jmp 0x1000796e
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 8
jge 0x100079b0
and dword [ebp - 0x18], 0
jmp 0x10007981
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 8
jge 0x100079ae
movsx eax, byte [ebp - 1]
cmp eax, 0x58
jge 0x100079a2
movsx eax, byte [ebp - 1]
mov ecx, dword [ebp - 0x28]
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov byte [ebp - 1], al
jmp 0x100079ac
movsx eax, byte [ebp - 1]
sub eax, dword [ebp - 0x18]
mov byte [ebp - 1], al
jmp 0x1000797a
jmp 0x10007967
mov dword [ebp - 0x10], 6
imul eax, dword [ebp - 0x10], 0x61
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx - 0x61]
mov dword [ebp - 0x10], eax
push 0x3e
pop eax
mov word [ebp - 8], ax
and dword [ebp - 0x30], 0
jmp 0x100079d9
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 8
jge 0x100079ea
mov eax, dword [ebp - 0x10]
sub eax, 0x64
mov dword [ebp - 0x10], eax
jmp 0x100079d2
cmp dword [ebp - 0x10], 0x74
jge 0x100079fb
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov dword [ebp - 0x10], eax
jmp 0x100079ea
movsx eax, word [ebp - 8]
imul eax, eax, 0x168
movsx ecx, word [ebp - 8]
add eax, ecx
movsx ecx, word [ebp - 8]
sub ecx, 0x92e
movsx edx, word [ebp - 8]
sub ecx, edx
lea eax, [eax + ecx - 0x168]
mov word [ebp - 8], ax
and dword [ebp - 0x48], 0
invalid
inc ebp
mov ah, 3
Function at 0x100082a4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x10011acc]
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 0x100082d5
xor eax, eax
jmp 0x1000845e
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 + 0x10012820]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10008311
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1000b400
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100083ec
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1000842a
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 0x10008375
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10008366
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 0x10008346
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 0x100083b5
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x100083be
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10008337
jmp 0x100083c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10008459
cmp dword [ebp - 0x6c], edi
je 0x1000842a
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1000841f
call fcn.100070d1
mov dword [eax], 9
call fcn.100070da
mov dword [eax], esi
jmp 0x10008454
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 0x10008414
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x100083c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x100083c0
push dword [ebp - 0x6c]
call fcn.100070e3
pop ecx
jmp 0x10008454
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10008442
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x10008442
xor eax, eax
jmp 0x1000845c
call fcn.100070d1
mov dword [eax], 0x1c
call fcn.100070da
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1000845c
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000a060
add ebp, 0x3a0
leave
ret
Function at 0x100087e6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1000ea30
call fcn.10006e14
push 8
call fcn.100074b5
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100123a0], esi
jne 0x1000881a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1001239c], esi
mov al, byte [ebp + 0x10]
mov byte [0x10012398], al
cmp dword [ebp + 0xc], edi
jne 0x10008864
cmp dword [0x10012928], edi
je 0x10008854
mov eax, dword [0x10012924]
sub eax, 4
mov dword [0x10012924], eax
cmp eax, dword [0x10012928]
jb 0x10008854
mov eax, dword [eax]
cmp eax, edi
je 0x10008835
call eax
jmp 0x10008835
push 0x10011038
mov eax, 0x10011030
call fcn.10008764
pop ecx
push 0x10011040
mov eax, 0x1001103c
call fcn.10008764
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10008895
cmp dword [ebp + 0x10], edi
jne 0x100088a3
mov dword [0x100123a0], esi
push dword [ebp + 8]
call fcn.10008722
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x100088a2
push 8
call fcn.10007400
pop ecx
ret
call fcn.10006e4f
ret

Function at 0x1000920c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10011acc]
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 + 0x10011898]
je 0x10009241
inc eax
cmp eax, 0x13
jb 0x10009232
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10011898]
jne 0x10009367
mov eax, dword [0x100120f4]
cmp eax, 1
je 0x1000933f
cmp eax, edx
jne 0x10009271
cmp dword [0x100120f8], 1
je 0x1000933f
cmp ecx, 0xfc
je 0x10009367
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 0x100092a7
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10009a40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10009b40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100092db
mov eax, edi
push eax
call fcn.10009b40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000ee58
push edi
call fcn.10009910
add esp, 0x10
push edi
call fcn.10009b40
push dword [esi + 0x1001189c]
mov ebx, eax
call fcn.10009b40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10009050
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10009a40
push edi
push ebx
call fcn.10009a50
push 0x1000ee38
push ebx
call fcn.10009a50
push dword [esi + 0x1001189c]
push ebx
call fcn.10009a50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000b8ef
add esp, 0x2c
jmp 0x10009367
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1001189c]
push dword [esi]
call fcn.10009b40
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.1000a060
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000b8ef
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001258c], ebx
push esi
push edi
jne 0x1000b96f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000b9aa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1001258c], eax
je 0x1000b9aa
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10012590], eax
call esi
cmp dword [0x10012360], 2
mov dword [0x10012594], eax
jne 0x1000b96f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1001259c], eax
je 0x1000b96f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10012598], eax
mov eax, dword [0x10012598]
test eax, eax
je 0x1000b9b4
call eax
test eax, eax
je 0x1000b99b
lea ecx, [ebp - 4]
push ecx
push reloc.ADVAPI32.dll_LookupPrivilegeValueA
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001259c]
test eax, eax
je 0x1000b99b
test byte [ebp - 8], 1
jne 0x1000b9b4
cmp dword [0x1001236c], 4
jb 0x1000b9ae
or byte [ebp + 0x12], 0x20
jmp 0x1000b9d3
xor eax, eax
jmp 0x1000b9e3
or byte [ebp + 0x12], 4
jmp 0x1000b9d3
mov eax, dword [0x10012590]
test eax, eax
je 0x1000b9d3
call eax
mov ebx, eax
test ebx, ebx
je 0x1000b9d3
mov eax, dword [0x10012594]
test eax, eax
je 0x1000b9d3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001258c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c19c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10009050
mov eax, dword [0x10011acc]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1000be82
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x1000c2cf
push 2
push esi
push dword [ebp + 8]
call fcn.1000be82
add esp, 0xc
cmp eax, ebx
je 0x1000c2cf
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1000c26f
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1000af20
push 0x8000
push dword [ebp + 8]
call fcn.1000d12c
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1000c225
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.100082a4
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000c245
sub edi, eax
test edi, edi
jg 0x1000c21d
jmp 0x1000c25d
call fcn.100070da
cmp dword [eax], 5
jne 0x1000c25a
call fcn.100070d1
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1000d12c
pop ecx
pop ecx
jmp 0x1000c2b7
jge 0x1000c2b7
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000be82
push dword [ebp + 8]
call fcn.1000b57e
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x1000c2b7
call fcn.100070d1
mov dword [eax], 0xd
call fcn.100070da
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.1000be82
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1000c2d1
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.1000a060
leave
ret
Function at 0x1000c2dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1000c4b1
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10012820]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1000c4b1
test cl, 0x48
je 0x1000c348
cmp byte [eax + 5], 0xa
je 0x1000c348
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000c39a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1000c382
call fcn.100070d1
mov dword [eax], 9
call fcn.100070da
mov dword [eax], esi
jmp 0x1000c392
cmp eax, 0x6d
je 0x1000c4b1
push eax
call fcn.100070e3
pop ecx
or eax, 0xffffffff
jmp 0x1000c4b3
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1000c4ac
test eax, eax
je 0x1000c3c1
cmp byte [ebx], 0xa
jne 0x1000c3c1
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1000c3ca
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1000c4a6
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1000c496
cmp al, 0xd
je 0x1000c3fc
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1000c488
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1000c416
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1000c411
add dword [ebp + 0x10], 2
jmp 0x1000c46a
mov dword [ebp + 0x10], eax
jmp 0x1000c484
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000c43e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000c484
cmp dword [ebp - 0xc], 0
je 0x1000c484
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1000c45f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1000c46a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1000c487
cmp ebx, dword [ebp + 0xc]
jne 0x1000c46f
cmp byte [ebp - 1], 0xa
jne 0x1000c46f
mov byte [ebx], 0xa
jmp 0x1000c487
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000be82
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1000c488
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1000c3e0
jmp 0x1000c4a6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1000c4a6
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1000c4b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c6c4
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.10009050
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000c75f
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 [0x10012360]
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 0x1000c75f
cmp eax, 1
je 0x1000c780
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 0x1000c75f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1000c72c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1000c75b
xor eax, eax
inc eax
jmp 0x1000c79f
cmp edi, eax
jae 0x1000c763
xor eax, eax
jmp 0x1000c79f
cmp eax, esi
jae 0x1000c76a
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 [0x10012360]
jmp 0x1000c783
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