joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001130
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x80000020
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000116f
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10001174
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov eax, ecx
push esi
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001180
sub eax, esi
cmp eax, 1
pop esi
jbe 0x100011a9
cmp byte [eax + ecx - 1], 0xa
jne 0x100011b5
cmp byte [eax + ecx - 2], 0xd
je 0x100011b5
mov byte [eax + ecx - 1], 0xd
mov byte [eax + ecx], 0xa
inc eax
jmp 0x100011b5
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
mov eax, 2
mov edx, dword [esp + 0x14]
test edx, edx
je 0x100011bf
mov eax, edx
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
je 0x10001169
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop ecx
ret

Function at 0x100027b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x3f0
push edi
mov edi, dword [esp + 0x3f8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100027c3
sub eax, edx
jne 0x100027d8
xor eax, eax
pop edi
add esp, 0x3f0
ret
push esi
add eax, 0x105
push 1
push eax
call fcn.1000bd94
mov esi, eax
add esp, 8
test esi, esi
je 0x100028ef
cmp byte [edi + 1], 0x3a
jne 0x10002888
push 3
push edi
push esi
call fcn.1000bc70
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002810
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x10002834
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10002823
mov ax, word [0x10017738]
mov word [edi], ax
push 0x3e8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
push esi
je 0x100028e7
call fcn.1000b9ec
add esp, 4
mov edi, str.NTFS
lea esi, [esp + 0x10]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x100028a3
pop esi
mov eax, 4
pop edi
add esp, 0x3f0
ret
push 0x1001772c
push edi
call fcn.1000bbe0
add esp, 8
push esi
call fcn.1000b9ec
add esp, 4
xor esi, esi
jmp 0x10002834
mov edi, 0x10017728
lea esi, [esp + 0x10]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x100028c5
pop esi
mov eax, 1
pop edi
add esp, 0x3f0
ret
mov edi, str.FAT32
lea esi, [esp + 0x10]
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x100028ef
pop esi
mov eax, 2
pop edi
add esp, 0x3f0
ret
call fcn.1000b9ec
add esp, 4
pop esi
xor eax, eax
pop edi
add esp, 0x3f0
ret
Function at 0x10002bb0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
mov dword [esp + 4], 0
je 0x10002bd5
mov eax, dword [0x1001f820]
test eax, eax
jne 0x10002c03
call fcn.100029d0
cmp eax, 0xffffffff
jne 0x10002bdb
or eax, 0xffffffff
pop ebp
pop ecx
ret
mov eax, dword [0x1001f824]
mov ecx, dword [0x1001d884]
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
test eax, eax
mov dword [0x1001f820], eax
jne 0x10002c03
mov eax, 0xfffffffa
pop ebp
pop ecx
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
push ebx
push eax
call edi
test eax, eax
jne 0x10002c3e
mov eax, dword [0x1001f820]
lea edx, [esp + 0xc]
push edx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x10002c39
mov ecx, dword [esp + 0xc]
inc ecx
cmp ecx, 0x186a0
jne 0x10002c3e
mov ebx, 0xfffffff9
call fcn.10002970
cmp eax, 0xffffffff
jne 0x10002c4f
pop edi
pop ebx
or eax, eax
pop ebp
pop ecx
ret
mov edx, dword [0x1001f828]
push esi
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x10002c70
push eax
jmp 0x10002c72
push 0xffffffffffffffff
push esi
call edi
test esi, esi
jne 0x10002c84
pop esi
pop edi
pop ebx
mov eax, 0xfffffffb
pop ebp
pop ecx
ret
test eax, eax
je 0x10002ca8
cmp eax, 0x80
je 0x10002ca8
cmp eax, 0x102
jne 0x10002cb9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
mov eax, 0xfffffffc
pop ebp
pop ecx
ret
push ebx
push ebp
call fcn.10002a30
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp ebx, 0xfffffff9
je 0x10002cd2
mov edx, dword [0x1001f820]
lea ecx, [esp + 0x10]
push ecx
push 1
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x10003140
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0
push 3
push 0
push 7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x10003179
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
movzx eax, al
xor eax, 0xffffffff
shr eax, 4
and eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100055d0
Capabilities:
Check mutex on windows

Disassembly:
call fcn.10004cc0
cmp eax, 0xffffffff
jne 0x100055dd
or eax, eax
ret
mov eax, dword [0x1001f834]
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
jne 0x10005604
mov eax, 0xfffffffb
pop esi
ret
test eax, eax
je 0x10005624
cmp eax, 0x80
je 0x10005624
cmp eax, 0x102
jne 0x10005642
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffc
pop esi
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10005480
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
Function at 0x10008570
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
mov ecx, dword [esp + 0x148]
push ebx
push ebp
lea eax, [esp + 0xc]
push eax
push ecx
xor ebx, ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x100085a3
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
push esi
push edi
jmp 0x100085b0
mov edi, 0x1001808c
lea esi, [esp + 0x40]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000860c
mov edi, 0x100180bc
lea esi, [esp + 0x40]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000860c
push 0x144
call fcn.1000bbc2
add esp, 4
test eax, eax
je 0x1000862b
test ebx, ebx
lea edi, [eax + 4]
mov ecx, 0x50
lea esi, [esp + 0x14]
mov dword [eax], 0
rep movsd dword es:[edi], dword [esi]
jne 0x10008603
mov ebx, eax
test ebp, ebp
je 0x1000860a
mov dword [ebp], eax
mov ebp, eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100085b0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x144
ret
Function at 0x1000b8f7
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1000b932

Function at 0x1000bc70
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga
Inspect section memory permissions

Disassembly:
clc
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1000b8c7
push eax
push esi
push dword [ebp + 8]
call fcn.1000b87c
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000b8c7
push eax
push esi
push dword [ebp + 8]
call fcn.1000b87c
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000b8b7
dec esi
jmp 0x1000bd53
inc ebp
adc byte [ecx - 0x3a], 0x45
xor dword [ebx - 0x3a], 0xc6628245
inc ebp
sbb dword [ebx - 0x3a], 0x45
test byte [ecx - 0x3a], bh
inc ebp
test dword [edx - 0x3a], esi
inc ebp
xchg byte [ebx - 0x3a], ah
inc ebp
xchg dword [edx - 0x3a], edi
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
Function at 0x1000bf2a
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1000bf6b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000bf66
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1000bf50
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1000bf58
cmp edx, ebx
jne 0x1000c0a6
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000bf27
add eax, dword [eax + 4]
jmp 0x1000bf14
mov dword [ebp + 0xc], ebx
jmp 0x1000bf76
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000bf8e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000bfac
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000c00a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000bff1
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000bffa
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000c004
add ecx, eax
or byte [ecx], 4
inc eax
invalid
inc ebp

Function at 0x1000c007
Capabilities:
Inspect section memory permissions

Disassembly:
mov esp, 0x45ffdc76
or al, 0x8b
test dword [eax - 1], edi
invalid

Function at 0x1000c0df
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.1000b8c7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000b87c
invalid
Function at 0x10011f45
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1001f290]
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 0x10011f76
xor eax, eax
jmp 0x100120ff
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 + 0x100200e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10011fb2
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10014b88
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1001208d
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100120cb
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 0x10012016
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10012007
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 0x10011fe7
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 0x10012056
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1001205f
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10011fd8
jmp 0x10012061
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x100120fa
cmp dword [ebp - 0x6c], edi
je 0x100120cb
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x100120c0
call fcn.1000d011
mov dword [eax], 9
call fcn.1000d01a
mov dword [eax], esi
jmp 0x100120f5
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 0x100120b5
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x10012061
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x10012061
push dword [ebp - 0x6c]
call fcn.1000d023
pop ecx
jmp 0x100120f5
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100120e3
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x100120e3
xor eax, eax
jmp 0x100120fd
call fcn.1000d011
mov dword [eax], 0x1c
call fcn.1000d01a
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x100120fd
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.100109a9
add ebp, 0x3a0
leave
ret
Function at 0x1001229f
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 0x10012473
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x100200e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x10012473
test cl, 0x48
je 0x1001230a
cmp byte [eax + 5], 0xa
je 0x1001230a
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 0x1001235c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10012344
call fcn.1000d011
mov dword [eax], 9
call fcn.1000d01a
mov dword [eax], esi
jmp 0x10012354
cmp eax, 0x6d
je 0x10012473
push eax
call fcn.1000d023
pop ecx
or eax, 0xffffffff
jmp 0x10012475
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1001246e
test eax, eax
je 0x10012383
cmp byte [ebx], 0xa
jne 0x10012383
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1001238c
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 0x10012468
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x10012458
cmp al, 0xd
je 0x100123be
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1001244a
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x100123d8
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x100123d3
add dword [ebp + 0x10], 2
jmp 0x1001242c
mov dword [ebp + 0x10], eax
jmp 0x10012446
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 0x10012400
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10012446
cmp dword [ebp - 0xc], 0
je 0x10012446
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10012421
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1001242c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x10012449
cmp ebx, dword [ebp + 0xc]
jne 0x10012431
cmp byte [ebp - 1], 0xa
jne 0x10012431
mov byte [ebx], 0xa
jmp 0x10012449
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001272a
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1001244a
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x100123a2
jmp 0x10012468
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x10012468
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 0x10012475
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013cc1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001f290]
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 + 0x1001f688]
je 0x10013cf6
inc eax
cmp eax, 0x13
jb 0x10013ce7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1001f688]
jne 0x10013e1c
mov eax, dword [0x1001f8d0]
cmp eax, 1
je 0x10013df4
cmp eax, edx
jne 0x10013d26
cmp dword [0x1001f8d4], 1
je 0x10013df4
cmp ecx, 0xfc
je 0x10013e1c
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 0x10013d5c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10010880
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10010f50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10013d90
mov eax, edi
push eax
call fcn.10010f50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001b190
push edi
call fcn.1000bc70
add esp, 0x10
push edi
call fcn.10010f50
push dword [esi + 0x1001f68c]
mov ebx, eax
call fcn.10010f50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000d140
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10010880
push edi
push ebx
call fcn.10010890
push 0x1001b170
push ebx
call fcn.10010890
push dword [esi + 0x1001f68c]
push ebx
call fcn.10010890
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10015d16
add esp, 0x2c
jmp 0x10013e1c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1001f68c]
push dword [esi]
call fcn.10010f50
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.100109a9
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10015b41
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x10015b5a
or eax, 0xffffffff
jmp 0x10015bbb
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10015bb7
push 0x3d
push esi
call fcn.100161f9
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x10015bb7
cmp esi, eax
je 0x10015bb7
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x1001f89c]
sete cl
cmp eax, dword [0x1001f8a0]
mov dword [ebp - 8], ecx
jne 0x10015b9d
mov edi, eax
call fcn.10015ae0
mov dword [0x1001f89c], eax
cmp eax, ebx
jne 0x10015bf6
cmp dword [ebp + 0xc], ebx
je 0x10015bbf
cmp dword [0x1001f8a4], ebx
je 0x10015bbf
call fcn.100136bb
test eax, eax
je 0x10015bf6
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x10015bc8
xor eax, eax
jmp 0x10015bba
push 4
call fcn.1000bbc2
cmp eax, ebx
pop ecx
mov dword [0x1001f89c], eax
je 0x10015bb7
mov dword [eax], ebx
cmp dword [0x1001f8a4], ebx
jne 0x10015bf6
push 4
call fcn.1000bbc2
cmp eax, ebx
pop ecx
mov dword [0x1001f8a4], eax
je 0x10015bb7
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x1001f89c]
call fcn.10015a93
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x10015c57
cmp dword [esi], ebx
je 0x10015c57
lea esi, [esi + edi*4]
push dword [esi]
call fcn.1000b9ec
cmp dword [ebp - 8], ebx
pop ecx
jne 0x10015c3a
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x10015c98
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x10015c31
mov eax, edi
shl eax, 2
push eax
push dword [0x1001f89c]
call fcn.1000e043
cmp eax, ebx
pop ecx
pop ecx
je 0x10015c98
jmp 0x10015c93
cmp dword [ebp - 8], ebx
jne 0x10015d03
cmp edi, ebx
jge 0x10015c66
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x1001f89c]
call fcn.1000e043
cmp eax, ebx
pop ecx
pop ecx
je 0x10015bb7
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x1001f89c], eax
cmp dword [ebp + 0xc], ebx
je 0x10015ced
push dword [ebp - 4]
call fcn.10010f50
inc eax
inc eax
push eax
call fcn.1000bbc2
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x10015ced
push dword [ebp - 4]
push esi
call fcn.10010880
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x10015ce6
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.1000b9ec
pop ecx
cmp dword [ebp - 8], ebx
je 0x10015cfb
push dword [ebp - 4]
call fcn.1000b9ec
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x10015bba
push dword [ebp - 4]
call fcn.1000b9ec
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x10015bc4