joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019dd
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
mov eax, dword [fcn.00401a44]
mov edx, dword [0x4030dc]
sub edx, eax
push edx
push dword [0x4030d8]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.004018c5
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0040191f
mov eax, edi
add eax, 0x1ce00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov edx, edi
inc edx
imul eax, edx
push eax
lea eax, [0x4030e4]
mov edx, edi
dec edx
and eax, edx
push eax
call fcn.00401a44
add esp, 0x18
xor eax, eax
pop edi
leave
ret

Function at 0x4019dd
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor esi, esi
mov edi, esi
mov edi, 0xfffffffb
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x10e], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xa]
push eax
push 1
push 1
lea eax, [ebp - 0x10e]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
lea eax, [ebp - 0xa]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
movsx eax, byte [ebp - 0xa]
sub eax, 0x41
pop edi
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x39670205
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x5b822b61
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4087f0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448f3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
mov ecx, eax
test ecx, ecx
je 0x4089a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.cWM0OTlQUaRxJbGTR4
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004038c0
test al, al
jne 0x40885c
push 0x13
push str.cWM0OTlQUaRxJbGTR4
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40889a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408970
lea esp, [esp]
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
test eax, eax
je 0x4089a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.NnpwheRMNHAyUT0DQM
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004038c0
test al, al
jne 0x40890b
push 0x13
push str.NnpwheRMNHAyUT0DQM
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
add esp, 0x10
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408946
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4088c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40898f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013f0
int3
Function at 0x10004715
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebx
push edi
push esi
mov al, byte [0x100be1a8]
test al, al
je 0x1000484b
mov ecx, 0x100be190
call fcn.10022d6e
push 0x64
push 0x69d42fb0
push 0x1d88
push 0x100be190
call fcn.100040e3
add esp, 0x10
mov al, byte [0x100be1d0]
test al, al
je 0x100048a0
mov ecx, 0x100be1b0
call fcn.10022db8
push 0x3a
push 0x1717
push 0xbabea
push 0x100be1b0
call fcn.100040e3
add esp, 0x10
mov al, byte [0x100be1f8]
test al, al
je 0x10004905
mov ecx, 0x100be1e0
call fcn.10022d6e
push 0x64
push 0x6b006070
push 0x1ddc
push 0x100be1e0
call fcn.100040e3
add esp, 0x10
mov al, byte [0x100be220]
test al, al
je 0x1000495a
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, 0x100be200
call fcn.10022db8
push 0x3a
push 0x1758
push 0xbccee
push 0x100be200
call fcn.100040e3
add esp, 0x10
mov al, byte [0x100be248]
test al, al
je 0x100049bf
mov ecx, 0x100be230
call fcn.10022e02
push 0xd9ac
push 0x6b43b0a
push 0x57990
push 0x100be230
call fcn.100040e3
sub esp, 0x18
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x14], 4
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
pop esi
pop edi
pop ebx
ret
push 0x100be1a8
call fcn.100233c4
add esp, 4
test eax, eax
je 0x10004725
movaps xmm0, xmmword [0x100ae0b0]
movaps xmmword [0x100be190], xmm0
mov dword [0x100be1a0], 0x715a41e3
mov word [0x100be1a4], 0x182
push 0x1001d6d8
call fcn.100013b0
add esp, 4
push 0x100be1a8
call fcn.1002346b
add esp, 4
jmp 0x10004725
push 0x100be1d0
call fcn.100233c4
add esp, 4
test eax, eax
je 0x10004755
movaps xmm0, xmmword [0x100ae0c0]
movaps xmmword [0x100be1b0], xmm0
movsd xmm0, qword [0x100ae0d0]
movsd qword [0x100be1c0], xmm0
mov dword [0x100be1c8], 0x483841a2
mov word [0x100be1cc], 0x182
push 0x1001d6ee
call fcn.100013b0
add esp, 4
push 0x100be1d0
call fcn.1002346b
add esp, 4
jmp 0x10004755
push 0x100be1f8
call fcn.100233c4
add esp, 4
test eax, eax
je 0x10004785
movaps xmm0, xmmword [0x100ae0b0]
movaps xmmword [0x100be1e0], xmm0
mov dword [0x100be1f0], 0x715a41e3
mov word [0x100be1f4], 0x182
push 0x1001d700
call fcn.100013b0
add esp, 4
push 0x100be1f8
call fcn.1002346b
add esp, 4
jmp 0x10004785
push 0x100be220
call fcn.100233c4
add esp, 4
test eax, eax
je 0x100047b5
movaps xmm0, xmmword [0x100ae0c0]
movaps xmmword [0x100be200], xmm0
movsd xmm0, qword [0x100ae0d0]
movsd qword [0x100be210], xmm0
mov dword [0x100be218], 0x483841a2
mov word [0x100be21c], 0x182
push 0x1001d716
call fcn.100013b0
add esp, 4
push 0x100be220
call fcn.1002346b
add esp, 4
jmp 0x100047b5
push 0x100be248
call fcn.100233c4
add esp, 4
test eax, eax
je 0x100047f1
mov byte [0x100be246], 1
movaps xmm0, xmmword [0x100ae0e0]
movaps xmmword [0x100be230], xmm0
mov dword [0x100be240], 0x465b6bc3
mov word [0x100be244], 0x6aab
push 0x1001d728
call fcn.100013b0
add esp, 4
push 0x100be248
call fcn.1002346b
add esp, 4
jmp 0x100047f1
Function at 0x1000556a
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
mov al, byte [0x100be568]
test al, al
je 0x1000567e
mov ecx, 0x100be550
call fcn.10022d6e
push 0x71
push 0x9896f640
push 0x2274
push 0x100be550
call fcn.100040e3
add esp, 0x10
mov al, byte [0x100be590]
test al, al
je 0x100056d3
mov ecx, 0x100be570
call fcn.10022db8
push 0x47
push 0x2145
push 0xd9b26
push 0x100be570
call fcn.100040e3
add esp, 0x10
mov al, byte [0x100be5b8]
test al, al
je 0x10005738
mov ecx, 0x100be5a0
call fcn.10022d6e
push 0x71
push 0x9a0a1b40
push 0x22c8
push 0x100be5a0
call fcn.100040e3
add esp, 0x10
mov al, byte [0x100be5e0]
test al, al
je 0x1000578d
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, 0x100be5c0
call fcn.10022db8
push 0x47
push 0x2195
push 0xdbc2a
push 0x100be5c0
call fcn.100040e3
add esp, 0x10
mov al, byte [0x100be608]
test al, al
je 0x100057f2
mov ecx, 0x100be5f0
call fcn.10022e02
push 0xd9b9
push 0x9a2e838
push 0x65e14
push 0x100be5f0
call fcn.100040e3
add esp, 0x10
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
pop esi
pop edi
ret
push 0x100be568
call fcn.100233c4
add esp, 4
test eax, eax
je 0x10005579
movaps xmm0, xmmword [0x100ae180]
movaps xmmword [0x100be550], xmm0
mov dword [0x100be560], 0x715a41e3
mov word [0x100be564], 0x182
push 0x1001d8d6
call fcn.100013b0
add esp, 4
push 0x100be568
call fcn.1002346b
add esp, 4
jmp 0x10005579
push 0x100be590
call fcn.100233c4
add esp, 4
test eax, eax
je 0x100055a9
movaps xmm0, xmmword [0x100ae190]
movaps xmmword [0x100be570], xmm0
movsd xmm0, qword [0x100ae1a0]
movsd qword [0x100be580], xmm0
mov dword [0x100be588], 0x483841a2
mov word [0x100be58c], 0x182
push 0x1001d8ec
call fcn.100013b0
add esp, 4
push 0x100be590
call fcn.1002346b
add esp, 4
jmp 0x100055a9
push 0x100be5b8
call fcn.100233c4
add esp, 4
test eax, eax
je 0x100055d9
movaps xmm0, xmmword [0x100ae180]
movaps xmmword [0x100be5a0], xmm0
mov dword [0x100be5b0], 0x715a41e3
mov word [0x100be5b4], 0x182
push 0x1001d8fe
call fcn.100013b0
add esp, 4
push 0x100be5b8
call fcn.1002346b
add esp, 4
jmp 0x100055d9
push 0x100be5e0
call fcn.100233c4
add esp, 4
test eax, eax
je 0x10005609
movaps xmm0, xmmword [0x100ae190]
movaps xmmword [0x100be5c0], xmm0
movsd xmm0, qword [0x100ae1a0]
movsd qword [0x100be5d0], xmm0
mov dword [0x100be5d8], 0x483841a2
mov word [0x100be5dc], 0x182
push 0x1001d914
call fcn.100013b0
add esp, 4
push 0x100be5e0
call fcn.1002346b
add esp, 4
jmp 0x10005609
push 0x100be608
call fcn.100233c4
add esp, 4
test eax, eax
je 0x10005641
mov byte [0x100be606], 1
movaps xmm0, xmmword [0x100ae1b0]
movaps xmmword [0x100be5f0], xmm0
mov dword [0x100be600], 0x465b6bc3
mov word [0x100be604], 0x6aab
push 0x1001d926
call fcn.100013b0
add esp, 4
push 0x100be608
call fcn.1002346b
add esp, 4
jmp 0x10005641
Function at 0x10022d6e
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x15], 0
je 0x10022db6
push ebx
push edi
push esi
sub esp, 8
movsd xmm0, qword [0x100aeb50]
movsd qword [esp], xmm0
xor eax, eax
xor esi, esi
xor edx, edx
xor edi, edi
mov ebx, eax
and ebx, 7
mov bl, byte [esp + ebx]
xor byte [ecx + eax], bl
add edx, 1
adc edi, 0
cmp eax, 0x14
sbb esi, 0
mov eax, edx
mov esi, edi
jb 0x10022d8f
mov byte [ecx + 0x15], 0
add esp, 8
pop esi
pop edi
pop ebx
ret

Function at 0x10022db8
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x1d], 0
je 0x10022e00
push ebx
push edi
push esi
sub esp, 8
movsd xmm0, qword [0x100aeb60]
movsd qword [esp], xmm0
xor eax, eax
xor esi, esi
xor edx, edx
xor edi, edi
mov ebx, eax
and ebx, 7
mov bl, byte [esp + ebx]
xor byte [ecx + eax], bl
add edx, 1
adc edi, 0
cmp eax, 0x1c
sbb esi, 0
mov eax, edx
mov esi, edi
jb 0x10022dd9
mov byte [ecx + 0x1d], 0
add esp, 8
pop esi
pop edi
pop ebx
ret

Function at 0x10022e02
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x16], 0
je 0x10022e4a
push ebx
push edi
push esi
sub esp, 8
movsd xmm0, qword [0x100aeb70]
movsd qword [esp], xmm0
xor eax, eax
xor esi, esi
xor edx, edx
xor edi, edi
mov ebx, eax
and ebx, 7
mov bl, byte [esp + ebx]
xor byte [ecx + eax], bl
add edx, 1
adc edi, 0
cmp eax, 0x15
sbb esi, 0
mov eax, edx
mov esi, edi
jb 0x10022e23
mov byte [ecx + 0x16], 0
add esp, 8
pop esi
pop edi
pop ebx
ret
Function at 0x10075b00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0x100b3d7c
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
test edi, edi
je 0x10075b3e
mov dword [edi], 0
call fcn.1007bdc0
mov dword [edi + 4], eax
mov dword [esp], 0
call fcn.1007bdc0
mov dword [esp + 4], eax
mov edi, esp
lea eax, [esp + 0x80]
lea ecx, [esp + 8]
push edi
push eax
push esi
push ecx
call fcn.100752a0
add esp, 0x10
movzx eax, byte [esp + 8]
cmp eax, 2
je 0x10075b81
test eax, eax
jne 0x10075b8b
lea ecx, [esp + 0x10]
push edi
call fcn.10075d20
jmp 0x10075baa
test byte [ebx], 1
je 0x10075bac
mov eax, dword [ebx + 8]
jmp 0x10075baf
mov dword [esp + 0x30], 0x14
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push 0x100b3d8d
push eax
push ecx
call fcn.100768f0
add esp, 0xc
jmp 0x10075bc0
lea eax, [ebx + 2]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
je 0x10075bc8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10072f90
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x11
jne 0x10075c44
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.1007bc20
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x28], 0
call fcn.1007bdc0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
push eax
push ecx
push ebx
push edx
call fcn.100752a0
add esp, 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
cmp al, 2
jne 0x10075c67
xor eax, eax
jmp 0x10075bc0
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.1007bc20
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
jmp 0x10075b7a
jmp 0x10075b75
Function at 0x10075f80
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, dword [ebp + 0xc]
mov ebx, edi
sar ebx, 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov esi, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x10075ffe
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x10075ffe
mov esi, dword [ebp + 0x10]
mov dword [esi], 0
call fcn.1007bdc0
mov dword [esi + 4], eax
xor eax, eax
jmp 0x1007602b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.10072f90
mov esi, eax
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov dword [eax], esi
call edi
mov esi, dword [eax]
call fcn.1007bc20
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], esi
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100767f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0x100b3d7c
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
test esi, esi
je 0x1007682f
mov dword [esi], 0
call fcn.1007bdc0
mov dword [esi + 4], eax
test byte [edi], 1
je 0x10076839
mov eax, dword [edi + 8]
jmp 0x1007683c
lea eax, [edi + 2]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x100768e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10072f90
add esp, 4
mov esi, eax
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov dword [eax], esi
call ebx
cmp dword [eax], 0x11
jne 0x100768b9
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.1007bc20
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], 0
call fcn.1007bdc0
mov dword [esp + 4], eax
mov eax, esp
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push eax
push ecx
push edi
push edx
call fcn.100752a0
add esp, 0x10
cmp byte [esp + 0x20], 2
jne 0x100768d4
xor eax, eax
jmp 0x100768e2
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.1007bc20
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
lea eax, [esp + 0x28]
jmp 0x100768d8
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.10075d20
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10076a40
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
push esi
push 0x21c
call sub.msvcrt.dll_malloc
add esp, 4
mov edi, eax
push eax
push 0x10e
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x10f
jb 0x10076a95
mov ebx, eax
add eax, eax
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x10076a83
push edi
call fcn.100ad6c2
add esp, 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10076a9b
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov esi, edi
test eax, eax
jne 0x10076a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10072f90
add esp, 4
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
xor eax, eax
test esi, esi
je 0x10076a91
push esi
call fcn.100ad6c2
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x10077750
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007782f
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
test cl, 1
jne 0x10077848
mov ecx, eax
and ecx, 0x400
je 0x10077848
sub esp, 0x1c
movaps xmm0, xmmword [0x100b3d00]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x1007786b
mov esi, eax
lea eax, [esp + 8]
push 0x28
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x10077808
mov eax, dword [esp + 0x28]
mov edx, eax
and edx, 0xfffffffe
xor ecx, ecx
test bl, 0x92
sete cl
or ecx, edx
mov dword [esp + 0x28], ecx
xor edi, edi
cmp ecx, eax
je 0x10077826
push 0x28
lea eax, [esp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x10077826
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10072f90
add esp, 4
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
mov edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10077889
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10072f90
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
jmp 0x10077882
mov edx, eax
and edx, 0xfffffffe
xor ecx, ecx
test bl, 0x92
sete cl
or ecx, edx
xor edi, edi
cmp ecx, eax
je 0x10077889
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10077889
jmp 0x1007782f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10072f90
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
mov edi, 0xffffffff
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10077ee0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [ebp + 8]
movaps xmm0, xmmword [0x100b3d30]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x10077f98
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
sar eax, 0x1f
mov dword [esp + 0x24], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x10077f6d
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
xor edi, edi
test eax, eax
jne 0x10077f8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.10072f90
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
mov edi, 0xffffffff
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x10077fb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.10072f90
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
mov edi, 0xffffffff
mov eax, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x1007ad20
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
call fcn.10082fd0
test al, al
je 0x1007ad67
mov esi, dword [fcn.1007aff0]
push 2
call esi
add esp, 4
push ebp
push ebx
push edi
push str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0x__n
push eax
call fcn.1007a340
add esp, 0x14
push 2
call esi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.100830c0