joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c86020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 8], ecx
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x42
push str....._base_files_file_win.cc
push str.Read
push esi
call fcn.01c7b570
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.01c84470
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x1c860fa
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x1c860fa
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c87ce0
test al, al
jne 0x1c8612c
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], ebx
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push esi
push eax
push edi
push dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1c8611a
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x1c86146
lea ecx, [esp + 0x28]
call fcn.01c87d80
lea ecx, [esp + 0x30]
call fcn.01c844f0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x1c860f1
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.01cef720
jmp 0x1c860ac
int3

Function at 0x1c86150
Capabilities:
Read 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 [0x1d17014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x5f
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.01c7b570
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.01c84470
test ebx, ebx
js 0x1c86216
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.01c87ce0
test al, al
jne 0x1c8621b
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push 0
push eax
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1c8622f
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x1c86241
lea ecx, [esp + 0x10]
call fcn.01c87d80
lea ecx, [esp + 0x20]
call fcn.01c844f0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x1c861f6
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::ReadAtCurrentPos
call fcn.01cef720
jmp 0x1c861ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x1c861ed
int3
Function at 0x1c86250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x30], xmm0
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.01c7b570
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.01c84470
xor edi, edi
dec edi
cmp dword [ebp + 0xc], 0
js 0x1c86320
cmp dword [ebp + 0x14], 0
js 0x1c86320
mov edi, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c87ce0
test al, al
jne 0x1c86340
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.01c87d80
lea ecx, [esp + 0x30]
call fcn.01c844f0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.01c97fe3
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.01cef720
jmp 0x1c862d7
Function at 0x1c88890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov ebx, dword [ebp + 8]
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp ebx, 0x30
ja 0x1c889bd
mov edi, edx
mov esi, ecx
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x20]
movdqu xmmword [eax], xmm0
movdqu xmmword [eax - 0x10], xmm0
movdqu xmmword [eax - 0x20], xmm0
mov ecx, dword [ecx + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
lea eax, [esi + 0xfc]
mov dword [ebp - 0x44], eax
call dword [section..00cfg]
lea eax, [ebp - 0x40]
push esi
push eax
push dword [ebp - 0x44]
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x44]
call ecx
add esp, 0xc
test ebx, ebx
je 0x1c88961
xor eax, eax
mov cl, byte [edi + eax]
xor byte [ebp + eax - 0x40], cl
inc eax
cmp ebx, eax
jne 0x1c88955
lea edi, [esi + 0xf4]
mov eax, dword [0x1d44f50]
bt eax, 0x19
jae 0x1c889c1
push esi
push 0x100
lea eax, [ebp - 0x40]
push eax
call fcn.01c23500
add esp, 0xc
mov ecx, 0x1c21180
mov eax, 0x1c21d10
test edi, edi
je 0x1c88994
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
lea eax, [ebp - 0x20]
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x44]
movups xmmword [eax], xmm0
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x1c889a9
bt eax, 9
jae 0x1c889e2
push esi
push 0x100
lea eax, [ebp - 0x40]
push eax
call fcn.01c24020
add esp, 0xc
xor eax, eax
mov ecx, 0x1c240d0
jmp 0x1c8898e
push esi
push 0x100
lea eax, [ebp - 0x40]
push eax
call fcn.01cefa10
add esp, 0xc
mov ecx, 0x1cef910
mov eax, 0x1cf01a0
jmp 0x1c8898e

Function at 0x1c89880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1d44fb0]
mov ecx, dword [0x1d33130]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c898ab
mov ecx, 0x1d44fa8
pop ebp
jmp fcn.01c83bf0
push 0x1d44fb0
call fcn.01c97191
add esp, 4
cmp dword [0x1d44fb0], 0xffffffff
jne 0x1c898a0
xor eax, eax
mov dword [0x1d44fac], eax
mov dword [0x1d44fa8], eax
mov ecx, 0x1d44fa8
push eax
call fcn.01c598f0
push 0x1d44fb0
call fcn.01c9720b
add esp, 4
jmp 0x1c898a0
Function at 0x1c8b0d0
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 0x1c8b150
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x1c8b139
lea eax, [edi + 1]
cmp eax, 2
jb 0x1c8b11b
mov dword [esi], edi
call fcn.01c7b5a0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov word [esi + 4], 0x101
inc eax
cmp eax, 1
jbe 0x1c8b156
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.01c7b5a0
push dword [esi]
call fcn.01c7c8a0
add esp, 4
mov dword [esi], 0
jmp 0x1c8b10c
mov word [esi + 4], 0x101
int3
Function at 0x1c8f560
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [eax], 0x1c69b50
push 0
push eax
push 0x1c69a00
push 0x1d45044
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1c8f5d9
xor esi, esi
cmp dword [0x1d45048], 0
jne 0x1c8f5c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x1d4504c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1c8f5c5
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.01cab250
int3

Function at 0x1c94040
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 0x1c94078
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 + 0x1d0fa70]
inc esi
cmp ecx, esi
jne 0x1c94060
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1ca65e6
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01ca6789
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1ca675e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1ca675e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1ca670d
jg 0x1ca663f
test eax, eax
je 0x1ca6703
push 1
push 0x1000
call fcn.01c766c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1ca6665
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1ca66fa
push 0x8000
push ebx
call fcn.01cb671d
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1ca6691
jg 0x1ca668c
cmp ecx, 0x1000
jb 0x1ca6691
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.01cadc07
add esp, 0x10
cmp eax, 0xffffffff
je 0x1ca66d6
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1ca668c
jl 0x1ca66bd
test ecx, ecx
jne 0x1ca667e
push dword [ebp - 0xc]
push ebx
call fcn.01cb671d
push esi
call fcn.01c76620
add esp, 0xc
xor edi, edi
jmp 0x1ca676f
cmp byte [edi + 0x24], 0
je 0x1ca66ed
cmp dword [edi + 0x20], 5
jne 0x1ca66ed
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1ca66f8
mov edi, dword [edi + 0x18]
jmp 0x1ca66fa
xor edi, edi
push esi
call fcn.01c76620
pop ecx
jmp 0x1ca676f
test ecx, ecx
jg 0x1ca66cf
jl 0x1ca670d
test eax, eax
jae 0x1ca66cf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01cb682c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1ca6730
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1ca66cf
jmp 0x1ca6767
push ebx
call fcn.01ca9b1a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1ca66cf
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1ca676f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1ca676c
mov edi, dword [edi + 0x18]
jmp 0x1ca676f
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.01cb682c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1ca966c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1cfc35c
push esi
call fcn.01cb775f
pop ecx
pop ecx
test eax, eax
jne 0x1ca969a
xor al, al
jmp 0x1ca9717
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.01ca93fd
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1ca96d4
push dword [ebp - 0x210]
call fcn.01c76620
xor al, al
jmp 0x1ca9715
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1ca96da
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1ca96fa
push edx
call fcn.01ca95bd
pop ecx
test al, al
je 0x1ca96c5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1ca9708
mov bl, 1
push dword [ebp - 0x210]
call fcn.01c76620
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01c97fe3
leave
ret
Function at 0x1caae0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1d339f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1caae4f
cmp byte [ebx], 0xa
jne 0x1caae4f
or byte [eax + edi + 0x28], 4
jmp 0x1caae54
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1caaf52
mov al, byte [edx]
cmp al, 0x1a
je 0x1caaf34
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1caae83
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1caaea8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1caaeb2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1caae65
jmp 0x1caaf52
push 0
lea eax, [ebp - 0xc]
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 0x1caaf2f
cmp dword [ebp - 0xc], 0
je 0x1caaf2f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1d339f8]
test byte [eax + edi + 0x28], 0x48
je 0x1caaf09
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1caaef4
mov byte [esi], dl
jmp 0x1caaf05
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1d339f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1caaf52
cmp byte [ebp - 1], 0xa
jne 0x1caaf18
cmp esi, ebx
jne 0x1caaf18
mov byte [esi], 0xa
jmp 0x1caaf51
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01cb682c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1caaf52
mov byte [esi], 0xd
jmp 0x1caaf51
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1d339f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1caaf4e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1caaf52
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1caaf5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1d339f8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1caaf9e
cmp word [esi], dx
jne 0x1caaf9e
or byte [edi + eax + 0x28], 4
jmp 0x1caafa3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1cab0dc
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1cab0bc
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1caafe5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1cab01b
cmp eax, edx
jae 0x1cab027
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1caafbd
jmp 0x1cab0dc
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1cab0b8
cmp dword [ebp - 0x14], 0
je 0x1cab0b8
mov eax, dword [ebx*4 + 0x1d339f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1cab090
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1cab0d6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1d339f8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1d339f8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1d339f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1cab0d9
pop ebx
cmp word [ebp - 4], bx
jne 0x1cab0a1
cmp esi, dword [ebp + 0xc]
jne 0x1cab0a1
mov word [esi], bx
jmp 0x1cab0d9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01cb682c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1cab0dc
push 0xd
jmp 0x1cab0d5
mov ecx, dword [ebx*4 + 0x1d339f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1cab0d3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1cab0dc
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1cb2e20
Capabilities:
Parse pe header

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

Function at 0x1cb3f16
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1cfd600
push 0x1cfd5f8
push 0x1cfd600
push 0x1e
call fcn.01cb4472
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1cb3f4a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1cb3f50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1cb3f94
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1cfd624
push 0x1cfd61c
push 0x1cfd624
push 0x20
call fcn.01cb4472
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1cb3fcb
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 0x1cba401
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 0x1cba49e
push ebx
push esi
call fcn.01cba4ef
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.01cba34a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1cba44b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1cba49d
push edi
push eax
call fcn.01c42d50
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1cba46b
call fcn.01c76620
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1cba49c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.01cba34a
add esp, 0x20
test eax, eax
jne 0x1cba48a
push edi
call fcn.01c76620
jmp 0x1cba492
push ebx
call fcn.01c76620
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 0x1cba4a1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1cba4b2
pop esi
ret
push ebx
push edi
push esi
call fcn.01cba4ef
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.01c42d50
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1cba4da
push ebx
push esi
push edi
call fcn.01c9aa40
add esp, 0xc
push 0
call fcn.01c76620
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1cba531
Capabilities:
Set environment variable

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

Function at 0x1cbd4f0
Capabilities:
Read file on windows

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

Function at 0x1cc4190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x1cdb730
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret
Function at 0x1cd96a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 8
call fcn.01c97121
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
xor ecx, ecx
push ecx
push ecx
push eax
push 0x1cd96f0
push ecx
push ecx
call fcn.01ca5ffa
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x1cd96df
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1cdc270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x57
test ecx, ecx
je 0x1cdc2f5
mov edi, edx
test edx, edx
je 0x1cdc2f5
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 0x1cdc2ed
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 0x1cdc2ed
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 0x1cdc2f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1ce1c10
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 [0x1d17014]
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 0x1ce1c62
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.01ce1570
test al, al
jne 0x1ce1c4f
add esi, 0x58
cmp esi, ebx
jne 0x1ce1c3a
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x1ce1c62
cmp byte [esi + 0x1b], 0
jns 0x1ce1c79
mov eax, dword [esi + 0x10]
jmp 0x1ce1c7c
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
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 0x1ce1c65
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
jmp 0x1ce1c65