joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c80d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x1c812de
test cl, bh
push es
add byte [eax], al
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x1c80db3
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
mov byte [ebp - 0x74e], 0x8d
mov byte [ebp - 0x74d], 0xd5
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.01c7f248
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.01c7f248
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.01c7f1a9
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
jmp 0x1c811b0
cmp dword [ebp - 0x6fc], 1
jne 0x1c80e64
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.01c7f248
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.01c7f1a9
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x1c811b0
cmp dword [ebp - 0x6fc], 2
jne 0x1c80f21
and byte [ebp - 0x79c], 0
and byte [ebp - 0x79b], 0
mov byte [ebp - 0x79a], 0x10
and byte [ebp - 0x799], 0
invalid
invalid
invalid
movsd dword es:[edi], dword [esi]
clc
invalid
Function at 0x1c85230
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.01c9ce80
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1d32f1c]
cmp eax, 0xffffffff
je 0x1c85383
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x1c85383
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.01c9ed50
add esp, 0xc
mov ecx, dword [0x1d32f1c]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.01c69fb0
add esp, 8
test ebx, ebx
je 0x1c852ab
push ebx
call fcn.01c9ba6c
add esp, 4
mov eax, dword [0x1d3b488]
mov ecx, dword [0x1d340c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c85398
mov esi, dword [0x1d3b484]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1c853dd
lea eax, [ebp - 0x1410]
push 0xc00
push 0x1d3a884
push eax
call fcn.01c9ed50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
test al, 1
je 0x1c85373
mov dword [ebp - 0x1418], ecx
xor ebx, ebx
lea edi, [ebp - 0x1408]
xor eax, eax
jmp 0x1c8532c
inc ebx
add edi, 0xc
cmp ebx, 0x100
je 0x1c8536a
mov esi, dword [ebp + ebx*8 - 0x810]
test esi, esi
je 0x1c85320
cmp dword [edi - 8], 0
je 0x1c85320
mov ecx, dword [ebp + ebx*8 - 0x80c]
cmp ecx, dword [edi]
jne 0x1c85320
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x1c85320
mov dword [ebp + ebx*8 - 0x810], 0
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x1c85320
mov ecx, dword [ebp - 0x1418]
dec ecx
jne 0x1c85308
push 2
push dword [ebp - 0x1414]
call fcn.01c69fb0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c9ca53
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1d3b488
call fcn.01c9baa7
add esp, 4
cmp dword [0x1d3b488], 0xffffffff
jne 0x1c852cc
push 4
call fcn.01c9ba07
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.01c84360
mov dword [0x1d3b484], esi
push 0x1d3b488
call fcn.01c9bb1d
add esp, 4
jmp 0x1c852cc
mov ecx, esi
call fcn.01c84370
jmp 0x1c852e1

Function at 0x1c8b920
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dl, byte [0x1d45e1c]
test dl, 1
je 0x1c8b93f
call fcn.01c90840
pop ebp
jmp fcn.01c90860
test ecx, ecx
je 0x1c8b94e
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1c8b950
pop ebp
ret
int3
Function at 0x1c8bb30
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 [0x1d18014]
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 0x3e
push str....._base_files_file_win.cc
push str.Read
push esi
call fcn.01c7e760
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.01c86030
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x1c8bc0a
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x1c8bc0a
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c8d170
test al, al
jne 0x1c8bc3c
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 0x1c8bc2a
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x1c8bc56
lea ecx, [esp + 0x28]
call fcn.01c8d210
lea ecx, [esp + 0x30]
call fcn.01c86090
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.01c9ca53
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 0x1c8bc01
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.01ceae80
jmp 0x1c8bbbc
int3

Function at 0x1c8bc60
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 [0x1d18014]
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 0x5b
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.01c7e760
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.01c86030
test ebx, ebx
js 0x1c8bd26
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.01c8d170
test al, al
jne 0x1c8bd2b
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 0x1c8bd3f
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x1c8bd51
lea ecx, [esp + 0x10]
call fcn.01c8d210
lea ecx, [esp + 0x20]
call fcn.01c86090
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.01c9ca53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x1c8bd06
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::ReadAtCurrentPos
call fcn.01ceae80
jmp 0x1c8bcda
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x1c8bcfd
int3
Function at 0x1c8bd60
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 [0x1d18014]
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 0x7b
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.01c7e760
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.01c86030
xor edi, edi
dec edi
cmp dword [ebp + 0xc], 0
js 0x1c8be30
cmp dword [ebp + 0x14], 0
js 0x1c8be30
mov edi, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c8d170
test al, al
jne 0x1c8be50
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.01c8d210
lea ecx, [esp + 0x30]
call fcn.01c86090
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.01c9ca53
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.01ceae80
jmp 0x1c8bde7

Function at 0x1c8e7e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1d472d0]
mov ecx, dword [0x1d340c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c8e80b
mov ecx, 0x1d472c8
pop ebp
jmp fcn.01c853f0
push 0x1d472d0
call fcn.01c9baa7
add esp, 4
cmp dword [0x1d472d0], 0xffffffff
jne 0x1c8e800
xor eax, eax
mov dword [0x1d472cc], eax
mov dword [0x1d472c8], eax
mov ecx, 0x1d472c8
push eax
call fcn.01c63ff0
push 0x1d472d0
call fcn.01c9bb1d
add esp, 4
jmp 0x1c8e800

Function at 0x1c90000
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 0x1c9007e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x1c90067
lea eax, [edi + 1]
cmp eax, 2
jb 0x1c9004b
mov dword [esi], edi
call fcn.01c7e790
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x1c90082
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.01c7e790
push dword [esi]
call fcn.01c7fd20
add esp, 4
mov dword [esi], 0
jmp 0x1c9003c
mov byte [esi + 4], 1
int3
Function at 0x1c911c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, dword [ebp + 8]
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [esp + 0x48], eax
cmp ebx, 0x30
ja 0x1c912fd
mov edi, edx
mov esi, ecx
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x30]
movdqa xmmword [eax], xmm0
movdqa xmmword [eax - 0x10], xmm0
movdqa 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 [esp + 0xc], eax
call dword [section..00cfg]
lea eax, [esp + 0x10]
push esi
push eax
push dword [esp + 0x14]
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, [esp + 0x24]
push eax
push dword [esp + 0x14]
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, [esp + 0x34]
push eax
push dword [esp + 0x14]
call ecx
add esp, 0xc
test ebx, ebx
je 0x1c9129d
xor eax, eax
mov cl, byte [edi + eax]
xor byte [esp + eax + 0x10], cl
inc eax
cmp ebx, eax
jne 0x1c91291
lea edi, [esi + 0xf4]
mov eax, dword [0x1d47368]
bt eax, 0x19
jae 0x1c91301
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.01c23500
add esp, 0xc
mov ecx, 0x1c21180
mov eax, 0x1c21d10
test edi, edi
lea edx, [esp + 0x30]
mov ebx, dword [esp + 0xc]
je 0x1c912d9
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
movups xmm0, xmmword [edx]
movups xmmword [ebx], xmm0
xor esi, esi
inc esi
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.01c9ca53
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x1c912e8
bt eax, 9
jae 0x1c91323
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.01c24020
add esp, 0xc
xor eax, eax
mov ecx, 0x1c240d0
jmp 0x1c912cb
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.01cf1100
add esp, 0xc
mov ecx, 0x1cf1000
mov eax, 0x1cf1890
jmp 0x1c912cb
Function at 0x1c98c30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x1c74120
lea eax, [ebp - 0x14]
push 0
push eax
push 0x1c73fd0
push 0x1d47430
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1c98caa
xor esi, esi
cmp dword [0x1d47434], 0
jne 0x1c98c96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x1d47438]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1c98c96
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c9ca53
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.01cb0360
int3

Function at 0x1c990e0
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 0x1c99118
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 + 0x1d11540]
inc esi
cmp ecx, esi
jne 0x1c99100
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1cab6f6
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.01cab899
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1cab86e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1cab86e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1cab81d
jg 0x1cab74f
test eax, eax
je 0x1cab813
push 1
push 0x1000
call fcn.01c7cd30
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1cab775
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1cab80a
push 0x8000
push ebx
call fcn.01cbb72d
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 0x1cab7a1
jg 0x1cab79c
cmp ecx, 0x1000
jb 0x1cab7a1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.01cb2be9
add esp, 0x10
cmp eax, 0xffffffff
je 0x1cab7e6
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 0x1cab79c
jl 0x1cab7cd
test ecx, ecx
jne 0x1cab78e
push dword [ebp - 0xc]
push ebx
call fcn.01cbb72d
push esi
call fcn.01c7cc90
add esp, 0xc
xor edi, edi
jmp 0x1cab87f
cmp byte [edi + 0x24], 0
je 0x1cab7fd
cmp dword [edi + 0x20], 5
jne 0x1cab7fd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1cab808
mov edi, dword [edi + 0x18]
jmp 0x1cab80a
xor edi, edi
push esi
call fcn.01c7cc90
pop ecx
jmp 0x1cab87f
test ecx, ecx
jg 0x1cab7df
jl 0x1cab81d
test eax, eax
jae 0x1cab7df
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01cbb83c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1cab840
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1cab7df
jmp 0x1cab877
push ebx
call fcn.01caec2a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1cab7df
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 0x1cab87f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1cab87c
mov edi, dword [edi + 0x18]
jmp 0x1cab87f
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.01cbb83c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1cae77c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1cfd3c4
push esi
call fcn.01cbc76f
pop ecx
pop ecx
test eax, eax
jne 0x1cae7aa
xor al, al
jmp 0x1cae827
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.01cae50d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1cae7e4
push dword [ebp - 0x210]
call fcn.01c7cc90
xor al, al
jmp 0x1cae825
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1cae7ea
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1cae80a
push edx
call fcn.01cae6cd
pop ecx
test al, al
je 0x1cae7d5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1cae818
mov bl, 1
push dword [ebp - 0x210]
call fcn.01c7cc90
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01c9ca53
leave
ret
Function at 0x1caff1f
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 + 0x1d34988]
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 0x1caff5f
cmp byte [ebx], 0xa
jne 0x1caff5f
or byte [eax + edi + 0x28], 4
jmp 0x1caff64
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1cb0062
mov al, byte [edx]
cmp al, 0x1a
je 0x1cb0044
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1caff93
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1caffb8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1caffc2
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 0x1caff75
jmp 0x1cb0062
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 0x1cb003f
cmp dword [ebp - 0xc], 0
je 0x1cb003f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1d34988]
test byte [eax + edi + 0x28], 0x48
je 0x1cb0019
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1cb0004
mov byte [esi], dl
jmp 0x1cb0015
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1d34988]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1cb0062
cmp byte [ebp - 1], 0xa
jne 0x1cb0028
cmp esi, ebx
jne 0x1cb0028
mov byte [esi], 0xa
jmp 0x1cb0061
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01cbb83c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1cb0062
mov byte [esi], 0xd
jmp 0x1cb0061
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1d34988]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1cb005e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1cb0062
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1cb006b
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 + 0x1d34988]
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 0x1cb00ae
cmp word [esi], dx
jne 0x1cb00ae
or byte [edi + eax + 0x28], 4
jmp 0x1cb00b3
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 0x1cb01ec
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 0x1cb01cc
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1cb00f5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1cb012b
cmp eax, edx
jae 0x1cb0137
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 0x1cb00cd
jmp 0x1cb01ec
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 0x1cb01c8
cmp dword [ebp - 0x14], 0
je 0x1cb01c8
mov eax, dword [ebx*4 + 0x1d34988]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1cb01a0
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1cb01e6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1d34988]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1d34988]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1d34988]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1cb01e9
pop ebx
cmp word [ebp - 4], bx
jne 0x1cb01b1
cmp esi, dword [ebp + 0xc]
jne 0x1cb01b1
mov word [esi], bx
jmp 0x1cb01e9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01cbb83c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1cb01ec
push 0xd
jmp 0x1cb01e5
mov ecx, dword [ebx*4 + 0x1d34988]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1cb01e3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1cb01ec
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 0x1cb8f26
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1cfe658
push 0x1cfe650
push 0x1cfe658
push 0x1e
call fcn.01cb9482
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1cb8f5a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1cb8f60
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1cb8fa4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1cfe67c
push 0x1cfe674
push 0x1cfe67c
push 0x20
call fcn.01cb9482
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1cb8fdb
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]