joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1cbb4c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [ebp + 8]
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov esi, edi
jns 0x1cbb4e0
mov esi, dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1cbb573
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
movzx eax, byte [edi + 0xb]
test al, al
js 0x1cbb514
and eax, 0x7f
mov ecx, edi
jmp 0x1cbb519
mov ecx, dword [edi]
mov eax, dword [edi + 4]
add eax, eax
nop dword [eax + eax]
test eax, eax
je 0x1cbb53b
movzx edx, word [ecx + eax - 2]
add eax, 0xfffffffe
cmp edx, 0x5c
je 0x1cbb536
cmp edx, 0x2f
jne 0x1cbb520
cmp eax, 0xfffffffe
jne 0x1cbb5a5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x1cbb5ea
cmp byte [ebp - 0x15], 0
jns 0x1cbb55f
push dword [ebp - 0x20]
call fcn.01cc3180
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test al, 0x10
jne 0x1cbb58e
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_conflicts_with_an_existing_file.___n
call fcn.01d1f600
add esp, 0xc
xor ebx, ebx
jmp 0x1cbb55f
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_exists___n
call fcn.01d1f600
add esp, 0xc
mov bl, 1
jmp 0x1cbb55f
sar eax, 1
lea edx, [ebp - 0x11]
lea ecx, [ebp - 0x2c]
push edx
push eax
push 0
push edi
call fcn.01cb9120
movsd xmm0, qword [ebp - 0x2c]
movsd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call fcn.01cbb4c0
add esp, 4
test al, al
jne 0x1cbb53b
push str.Failed_to_create_one_of_the_parent_directories
call fcn.01d1f600
add esp, 4
jmp 0x1cbb652
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1cbb643
mov dword [ebp - 0x30], eax
lea edi, [ebp - 0x2c]
mov ecx, edi
push esi
call fcn.01cf1750
cmp byte [ebp - 0x21], 0
jns 0x1cbb60e
mov edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
cmp byte [ebp - 0x21], 0
jns 0x1cbb638
push dword [ebp - 0x2c]
mov edi, eax
call fcn.01cc3180
mov eax, edi
add esp, 4
test al, al
mov eax, dword [ebp - 0x30]
jne 0x1cbb54e
push eax
push esi
push str.Failed_to_create_directory__ls__last_error_is__d_n
call fcn.01d1f600
add esp, 0xc
xor ebx, ebx
jmp 0x1cbb54e
Function at 0x1cc2bc0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x12c
mov esi, dword [ebp + 8]
movzx eax, byte [ebp + 0xc]
mov ecx, dword [0x1d8f008]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x138], 0xffffffff
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x130], 0xffffffff
xor edi, edi
mov ebx, 3
test al, al
je 0x1cc2c81
lea eax, [ebp - 0x120]
push 0x110
push 0
push eax
call fcn.01cc71b0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x1d7a610]
movups xmmword [esp], xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call ebx
push 3
push 1
push edx
push eax
call ebx
push 3
push 0x20
push edx
push eax
call ebx
mov dword [ebp - 0x128], 6
mov dword [ebp - 0x124], 0
mov word [ebp - 0x18], 0
lea ecx, [ebp - 0x12c]
push edx
push eax
push 0x23
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ebx, 0x80003
test eax, eax
jne 0x1cc2cca
cmp byte [esi + 0xb], 0
jns 0x1cc2c89
mov esi, dword [esi]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x1d872e0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, esi
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x138], 0xc
push 0
call fcn.01d58e00
add esp, 4
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], 1
lea edi, [ebp - 0x138]
cmp byte [esi + 0xb], 0
js 0x1cc2c87
jmp 0x1cc2c89

Function at 0x1cd22d5
Capabilities:
Parse pe header

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

Function at 0x1cd500f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1d6e9c0
push esi
call fcn.01ce3a06
pop ecx
pop ecx
test eax, eax
jne 0x1cd503d
xor al, al
jmp 0x1cd50ba
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.01cd4d9e
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1cd5077
push dword [ebp - 0x210]
call fcn.01cf8a40
xor al, al
jmp 0x1cd50b8
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1cd507d
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1cd509d
push edx
call fcn.01cd4f61
pop ecx
test al, al
je 0x1cd5068
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1cd50ab
mov bl, 1
push dword [ebp - 0x210]
call fcn.01cf8a40
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01cc3f9d
leave
ret
Function at 0x1cd69cb
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 + 0x1d94030]
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 0x1cd6a0b
cmp byte [ebx], 0xa
jne 0x1cd6a0b
or byte [edi + eax + 0x28], 4
jmp 0x1cd6a10
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 0x1cd6b0f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1cd6af2
inc eax
cmp dl, 0xd
je 0x1cd6a3c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1cd6a62
cmp eax, ecx
jae 0x1cd6a70
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 0x1cd6a24
jmp 0x1cd6b0f
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 0x1cd6aed
cmp dword [ebp - 0x10], 0
je 0x1cd6aed
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1d94030]
test byte [eax + edi + 0x28], 0x48
je 0x1cd6ac7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1cd6ab2
mov byte [esi], dl
jmp 0x1cd6ac3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1d94030]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1cd6b0f
cmp byte [ebp - 1], 0xa
jne 0x1cd6ad6
cmp esi, ebx
jne 0x1cd6ad6
mov byte [esi], 0xa
jmp 0x1cd6b0e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01cd5faa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1cd6b0f
mov byte [esi], 0xd
jmp 0x1cd6b0e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1d94030]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1cd6b0c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1cd6b0f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1cd6b18
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 + 0x1d94030]
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 0x1cd6b5e
cmp word [ebx], dx
jne 0x1cd6b5e
or byte [eax + edi + 0x28], 4
jmp 0x1cd6b63
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 0x1cd6cc6
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 0x1cd6ca6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1cd6ba4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1cd6bda
cmp eax, edx
jae 0x1cd6be8
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 0x1cd6b7f
jmp 0x1cd6cc6
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 0x1cd6ca1
cmp dword [ebp - 0x18], 0
je 0x1cd6ca1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1d94030]
test byte [eax + edi + 0x28], 0x48
je 0x1cd6c77
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 0x1cd6c3b
mov word [esi], cx
jmp 0x1cd6c72
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1d94030]
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 + 0x1d94030]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1d94030]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1cd6cc6
pop eax
cmp word [ebp - 4], ax
jne 0x1cd6c87
cmp esi, ebx
jne 0x1cd6c87
mov word [esi], ax
jmp 0x1cd6cc3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01cd5faa
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1cd6cc6
push 0xd
pop eax
jmp 0x1cd6c82
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1d94030]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1cd6cc0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1cd6cc6
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1cdf510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1cdf53d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1cdf53d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1ce0606
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x1d6fc14
push str.FlsAlloc
push 0x1f
call fcn.01ce0ab9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1ce063a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1ce0640
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1ce0684
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1d6fc38
push str.FlsGetValue
push 0x21
call fcn.01ce0ab9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1ce06bb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1ce06c3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1d6fc4c
push str.FlsSetValue
push 0x22
call fcn.01ce0ab9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1ce06fd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1ce46f7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.01cdfe0a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.01cdfe0a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1ce476e
cmp word [ecx], dx
je 0x1ce476e
mov eax, dword [0x1d7060c]
push edi
dec eax
push eax
push 0x1d704f8
call fcn.01ce48e7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1ce47e1
cmp word [eax], dx
je 0x1ce47e1
mov eax, dword [edi]
test eax, eax
je 0x1ce4792
cmp word [eax], dx
je 0x1ce4792
lea eax, [ebp - 0x10]
push eax
call fcn.01ce4948
jmp 0x1ce479b
lea eax, [ebp - 0x10]
push eax
call fcn.01ce4c43
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1ce480b
mov eax, dword [0x1d704f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1d701e8
call fcn.01ce48e7
add esp, 0xc
test al, al
je 0x1ce480b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1ce47d6
cmp word [eax], di
je 0x1ce47d6
lea eax, [ebp - 0x10]
push eax
call fcn.01ce4948
pop ecx
jmp 0x1ce480d
lea eax, [ebp - 0x10]
push eax
call fcn.01ce4c43
jmp 0x1ce47d3
mov eax, dword [edi]
test eax, eax
je 0x1ce47f8
cmp word [eax], dx
je 0x1ce47f8
lea eax, [ebp - 0x10]
push eax
call fcn.01ce4d85
pop ecx
jmp 0x1ce480b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1ce48d6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.01ce4e77
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1ce48d6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1ce48d6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1ce48d6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1ce4863
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.01ce08fc
test ebx, ebx
je 0x1ce48d1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.01ce08fc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1ce48d6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1ce48d6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.01cd5e09
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1ce48d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01cc3f9d
leave
ret
Function at 0x1ce4f7d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.01cdfe0a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1ce4fec
cmp esi, dword [ebp - 4]
je 0x1ce4fe7
cmp dword [ebp + 0xc], 0
je 0x1ce4fe7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1ce4fc4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.01ce5046
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1ce4fee
xor eax, eax
inc eax
jmp 0x1ce4fee
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1ce6426
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1ce64c3
push ebx
push esi
call fcn.01ce6514
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.01ce632a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1ce6470
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1ce64c2
push edi
push eax
call fcn.01cf89f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1ce6490
call fcn.01cf8a40
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1ce64c1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.01ce632a
add esp, 0x20
test eax, eax
jne 0x1ce64af
push edi
call fcn.01cf8a40
jmp 0x1ce64b7
push ebx
call fcn.01cf8a40
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1ce64c6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1ce64d7
pop esi
ret
push ebx
push edi
push esi
call fcn.01ce6514
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.01cf89f0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1ce64ff
push ebx
push esi
push edi
call fcn.01cc6c30
add esp, 0xc
push 0
call fcn.01cf8a40
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1ce6556
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01ce67c1

Function at 0x1ce8425
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1ce8468
call fcn.01cd4c75
mov dword [eax], 0xf
call fcn.01cd4c62
mov dword [eax], 0xd
call fcn.01ce1862
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01cc3f9d
leave
ret
test eax, eax
jne 0x1ce846f
inc eax
jmp 0x1ce845c
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1ce845a
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1ce845c
Function at 0x1cf0a00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [ecx - 8], esp
mov dword [ecx + 0xc], 0xffffffff
mov dword [ecx + 8], 0x1d8bf38
mov dword [ecx + 4], 0x1cc51f0
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
test eax, eax
je 0x1cf0a56
cmp eax, 1
je 0x1cf0a5d
mov eax, dword [ebp - 0x1c]
mov dword fs:[0], eax
xor eax, eax
inc eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.01d1cc00
jmp 0x1cf0a40
call fcn.01d1e4c0
call fcn.01cba790
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.__enable_elf_protection
push eax
call fcn.01cc789b
add esp, 8
mov esi, eax
call fcn.01d1ee00
test esi, esi
jne 0x1cf0a95
test al, al
jne 0x1cf0a95
call fcn.01d1ee10
test al, al
jne 0x1cf0a40
jmp 0x1cf0ad4
mov dword [ebp - 0x10], 0
call fcn.01d1ee00
test al, al
je 0x1cf0aca
call fcn.01cf0bd0
mov byte [ebp - 0x25], al
call fcn.01cb57b0
cmp byte [ebp - 0x25], 0
je 0x1cf0a40
call fcn.01cb5f10
jmp 0x1cf0a40
call fcn.01cf0d10
mov byte [ebp - 0x25], al
jmp 0x1cf0aad
call fcn.01d1cba0
call fcn.01d1cc90
jmp 0x1cf0a40

Function at 0x1cf0f40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
call fcn.01cb9690
add esp, 4
test eax, eax
je 0x1cf1011
mov esi, eax
mov ecx, eax
call fcn.01cf3760
lea eax, [ebp - 0x14]
mov dword [eax], 0
push eax
push 0x40
push 0x80
push section..crthunk
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1cf1018
push 0x1d7ab3a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
xor edi, edi
mov ecx, esi
push edi
push 0x80
push section..crthunk
push 0x1cf0e90
push edi
push str.NtMapViewOfSection
push 0x1c20000
push dword [ebp - 0x18]
call ebx
test eax, eax
js 0x1cf101f
lea eax, [ebp - 0x14]
push eax
push 0x20
push 0x80
push section..crthunk
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push 1
call ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0xe
jmp 0x1cf0ffd
mov edi, 0xf
jmp 0x1cf0feb
mov dword [0x1d942cc], eax
mov edi, 0x10
jmp 0x1cf0feb
Function at 0x1cf3510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x1d3ccc0
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret