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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x1d08010]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x7f
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.01c76570
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.01c7f630
xor edi, edi
dec edi
cmp dword [ebp + 0xc], 0
js 0x1c820e8
cmp dword [ebp + 0x14], 0
js 0x1c820e8
mov edi, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c87510
test al, al
jne 0x1c82108
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
lea esi, [esp + 0xc]
mov dword [esi], 0xffffffff
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [esi]
lea ecx, [esp + 0x28]
call fcn.01c875b0
lea ecx, [esp + 0x30]
call fcn.01c7f6b0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.01c938a3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea ecx, [esp + 0x28]
push 0
push dword [ebp + 0x14]
push edi
push str.File::Write
call fcn.01ce4c80
jmp 0x1c8209f

Function at 0x1c823c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x1c8243e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x1c82427
lea eax, [edi + 1]
cmp eax, 2
jb 0x1c8240b
mov dword [esi], edi
call fcn.01c765a0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 0
inc eax
cmp eax, 1
jbe 0x1c82442
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.01c765a0
push dword [esi]
call fcn.01c79e30
add esp, 4
mov dword [esi], 0
jmp 0x1c823fc
mov byte [esi + 4], 0
int3
Function at 0x1c85e00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1d1cbf8]
mov ecx, dword [0x1d0c258]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c85e2b
mov ecx, 0x1d1cbf0
pop ebp
jmp fcn.01c81a20
push 0x1d1cbf8
call fcn.01c92957
add esp, 4
cmp dword [0x1d1cbf8], 0xffffffff
jne 0x1c85e20
xor eax, eax
mov dword [0x1d1cbf4], eax
mov dword [0x1d1cbf0], eax
mov ecx, 0x1d1cbf0
push eax
call fcn.01c5ac50
push 0x1d1cbf8
call fcn.01c929cd
add esp, 4
jmp 0x1c85e20
Function at 0x1c8af90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x1d08010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [eax], 0x1c66030
push 0
push eax
push 0x1c65ee0
push 0x1d1cc84
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1c8b009
xor esi, esi
cmp dword [0x1d1cc88], 0
jne 0x1c8aff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x1d1cc8c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1c8aff5
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c938a3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.01ca5f3a
int3

Function at 0x1c8f6f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x1c8f728
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x1d00ed0]
inc esi
cmp ecx, esi
jne 0x1c8f710
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1ca172f
Capabilities:
Parse pe header

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

Function at 0x1ca44e8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1d08010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1ced3b0
push esi
call fcn.01cb1936
pop ecx
pop ecx
test eax, eax
jne 0x1ca4516
xor al, al
jmp 0x1ca4593
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.01ca4277
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1ca4550
push dword [ebp - 0x210]
call fcn.01c724c0
xor al, al
jmp 0x1ca4591
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1ca4556
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1ca4576
push edx
call fcn.01ca443a
pop ecx
test al, al
je 0x1ca4541
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1ca4584
mov bl, 1
push dword [ebp - 0x210]
call fcn.01c724c0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01c938a3
leave
ret
Function at 0x1ca5acd
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 + 0x1d0cb30]
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 0x1ca5b0d
cmp byte [ebx], 0xa
jne 0x1ca5b0d
or byte [edi + eax + 0x28], 4
jmp 0x1ca5b12
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 0x1ca5c11
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1ca5bf4
inc eax
cmp dl, 0xd
je 0x1ca5b3e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1ca5b64
cmp eax, ecx
jae 0x1ca5b72
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 0x1ca5b26
jmp 0x1ca5c11
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 0x1ca5bef
cmp dword [ebp - 0x10], 0
je 0x1ca5bef
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1d0cb30]
test byte [eax + edi + 0x28], 0x48
je 0x1ca5bc9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1ca5bb4
mov byte [esi], dl
jmp 0x1ca5bc5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1d0cb30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1ca5c11
cmp byte [ebp - 1], 0xa
jne 0x1ca5bd8
cmp esi, ebx
jne 0x1ca5bd8
mov byte [esi], 0xa
jmp 0x1ca5c10
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01cb0a6d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1ca5c11
mov byte [esi], 0xd
jmp 0x1ca5c10
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1d0cb30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1ca5c0e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1ca5c11
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1ca5c1a
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 + 0x1d0cb30]
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 0x1ca5c60
cmp word [ebx], dx
jne 0x1ca5c60
or byte [eax + edi + 0x28], 4
jmp 0x1ca5c65
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 0x1ca5dc8
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 0x1ca5da8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1ca5ca6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1ca5cdc
cmp eax, edx
jae 0x1ca5cea
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 0x1ca5c81
jmp 0x1ca5dc8
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 0x1ca5da3
cmp dword [ebp - 0x18], 0
je 0x1ca5da3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1d0cb30]
test byte [eax + edi + 0x28], 0x48
je 0x1ca5d79
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 0x1ca5d3d
mov word [esi], cx
jmp 0x1ca5d74
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1d0cb30]
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 + 0x1d0cb30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1d0cb30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1ca5dc8
pop eax
cmp word [ebp - 4], ax
jne 0x1ca5d89
cmp esi, ebx
jne 0x1ca5d89
mov word [esi], ax
jmp 0x1ca5dc5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01cb0a6d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1ca5dc8
push 0xd
pop eax
jmp 0x1ca5d84
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1d0cb30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1ca5dc2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1ca5dc8
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 0x1cad210
Capabilities:
Parse pe header

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

Function at 0x1cae2f6
Capabilities:
Allocate thread local storage

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

Function at 0x1cae374
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1cee670
push str.FlsGetValue
push 0x21
call fcn.01cae7a9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1cae3ab
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 0x1cae3b3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1cee684
push str.FlsSetValue
push 0x22
call fcn.01cae7a9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1cae3ed
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 0x1cb2627
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1d08010]
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.01cadafa
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.01cadafa
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 0x1cb269e
cmp word [ecx], dx
je 0x1cb269e
mov eax, dword [0x1cef044]
push edi
dec eax
push eax
push 0x1ceef30
call fcn.01cb2817
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1cb2711
cmp word [eax], dx
je 0x1cb2711
mov eax, dword [edi]
test eax, eax
je 0x1cb26c2
cmp word [eax], dx
je 0x1cb26c2
lea eax, [ebp - 0x10]
push eax
call fcn.01cb2878
jmp 0x1cb26cb
lea eax, [ebp - 0x10]
push eax
call fcn.01cb2b73
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1cb273b
mov eax, dword [0x1ceef2c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1ceec20
call fcn.01cb2817
add esp, 0xc
test al, al
je 0x1cb273b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1cb2706
cmp word [eax], di
je 0x1cb2706
lea eax, [ebp - 0x10]
push eax
call fcn.01cb2878
pop ecx
jmp 0x1cb273d
lea eax, [ebp - 0x10]
push eax
call fcn.01cb2b73
jmp 0x1cb2703
mov eax, dword [edi]
test eax, eax
je 0x1cb2728
cmp word [eax], dx
je 0x1cb2728
lea eax, [ebp - 0x10]
push eax
call fcn.01cb2cb5
pop ecx
jmp 0x1cb273b
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 0x1cb2806
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.01cb2da7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1cb2806
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1cb2806
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1cb2806
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1cb2793
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.01cae5ec
test ebx, ebx
je 0x1cb2801
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.01cae5ec
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1cb2806
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 0x1cb2806
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.01cbb006
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1cb2808
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01c938a3
leave
ret
Function at 0x1cb2ead
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.01cadafa
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 0x1cb2f1c
cmp esi, dword [ebp - 4]
je 0x1cb2f17
cmp dword [ebp + 0xc], 0
je 0x1cb2f17
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1cb2ef4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.01cb2f76
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1cb2f1e
xor eax, eax
inc eax
jmp 0x1cb2f1e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1cb4506
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 0x1cb45a3
push ebx
push esi
call fcn.01cb45f4
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.01cb440a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1cb4550
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1cb45a2
push edi
push eax
call fcn.01c43c80
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1cb4570
call fcn.01c724c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1cb45a1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.01cb440a
add esp, 0x20
test eax, eax
jne 0x1cb458f
push edi
call fcn.01c724c0
jmp 0x1cb4597
push ebx
call fcn.01c724c0
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 0x1cb45a6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1cb45b7
pop esi
ret
push ebx
push edi
push esi
call fcn.01cb45f4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.01c43c80
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1cb45df
push ebx
push esi
push edi
call fcn.01c96300
add esp, 0xc
push 0
call fcn.01c724c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1cb4636
Capabilities:
Set environment variable

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

Function at 0x1cb6dc0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1d08010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1cb6e03
call fcn.01ca414e
mov dword [eax], 0xf
call fcn.01ca413b
mov dword [eax], 0xd
call fcn.01caf552
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01c938a3
leave
ret
test eax, eax
jne 0x1cb6e0a
inc eax
jmp 0x1cb6df7
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 0x1cb6df5
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1cb6df7

Function at 0x1cbe410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x1cd44f0
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret
Function at 0x1cd5b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x1d08010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x57
test ecx, ecx
je 0x1cd5b85
mov edi, edx
test edx, edx
je 0x1cd5b85
mov esi, ecx
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
movups xmmword [eax + 0xc], xmm0
movups xmmword [eax], xmm0
push 0x1c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1cd5b7d
test byte [ebp - 0x18], 0xf0
lea ebx, [ebp - 0x30]
mov dword [ebx], 0
mov eax, 4
mov ecx, 0x40
cmove ecx, eax
push ebx
push ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1cd5b7d
mov eax, dword [edi]
mov dword [esi], eax
push ebx
push dword [ebp - 0x30]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
jmp 0x1cd5b85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c938a3
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1cda400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x1d08010]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
cmp esi, ebx
je 0x1cda452
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.01cd9ce0
test al, al
jne 0x1cda43f
add esi, 0x58
cmp esi, ebx
jne 0x1cda42a
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x1cda452
cmp byte [esi + 0x1b], 0
jns 0x1cda469
mov eax, dword [esi + 0x10]
jmp 0x1cda46c
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c938a3
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x1cda455
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
jmp 0x1cda455
Function at 0x1cda5c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x1d08010]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov edi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
cmp edi, ebx
je 0x1cda61d
mov dword [ebp - 0x24], ecx
lea esi, [ebp - 0x20]
mov ecx, edi
push esi
call fcn.01cd9ce0
test al, al
jne 0x1cda5ff
add edi, 0x58
cmp edi, ebx
jne 0x1cda5ea
mov edi, ebx
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x24]
cmp edi, dword [esi + 0x2c]
je 0x1cda620
mov eax, dword [edi + 0x50]
cmp eax, dword [ebp + 8]
jne 0x1cda634
cmp byte [edi + 0x1b], 0
jns 0x1cda642
mov eax, dword [edi + 0x10]
jmp 0x1cda645
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c938a3
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
cmp eax, 1
sete cl
lea ebx, [ecx + ecx*2]
inc ebx
jmp 0x1cda620
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1cda620
shr eax, 3
and eax, 2
mov ebx, eax
jne 0x1cda620
mov byte [esi + 0x24], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor ebx, ebx
jmp 0x1cda620