joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a9b0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
movups xmm0, xmmword [edx]
movups xmmword [edi + 0x44], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [edi + 0x54], xmm0
movq xmm0, qword [esi]
movq qword [edi + 0x64], xmm0
mov eax, dword [esi + 8]
mov dword [edi + 0x6c], eax
mov dword [edi + 0x74], 0x61707865
mov dword [edi + 0x78], 0x3320646e
mov dword [edi + 0x7c], 0x79622d32
mov dword [edi + 0x80], 0x6b206574
movzx ecx, byte [edx + 3]
shl ecx, 8
movzx eax, byte [edx + 2]
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x84], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x88], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x8c], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x90], ecx
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x94], ecx
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x98], ecx
movzx ecx, byte [edx + 0x1b]
movzx eax, byte [edx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x9c], ecx
movzx ecx, byte [edx + 0x1f]
movzx eax, byte [edx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa0], ecx
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xa8], ecx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xac], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xb0], ecx
movq xmm0, qword [esi]
movq qword [edi + 0x64], xmm0
mov eax, dword [esi + 8]
mov dword [edi + 0x6c], eax
pop edi
pop esi
pop ebp
ret
Function at 0x987840
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x9f0274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.009afc00
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20c]
add esp, 0xc
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x987880
mov edx, 0x9fc480
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x987897
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x9878b0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
nop dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0xa0000000
lea eax, [ebp - 0x20c]
push eax
call dword [0x9fe7d8]
mov edi, eax
cmp edi, 0xffffffff
jne 0x98791a
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jl 0x9878d0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009aeb72
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ebx
call fcn.009b222d
add esp, 4
mov esi, eax
lea eax, [ebp - 0x210]
push 0
push eax
push dword [ebp - 0x214]
push esi
push edi
call dword [0x9fe86c]
test eax, eax
je 0x987992
cmp dword [ebp - 0x210], 0x100
jbe 0x987992
cmp byte [esi], 0x4d
jne 0x987992
cmp byte [esi + 1], 0x5a
jne 0x987992
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x987992
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x987992
cmp dword [eax + esi + 0x28], 0x1000
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 0x214]
push 0
push esi
call fcn.009afc00
push esi
call fcn.009b2212
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009aeb72
mov esp, ebp
pop ebp
ret
Function at 0x98f190
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x98f470
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x9f0274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.009afc00
mov edi, dword [ebp + 8]
add esp, 0xc
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x98f4a0
mov edx, dword [ebp + 0xc]
sub esi, ecx
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x98f4b1
sub ecx, ebx
mov dword [ebp - 0x70], 0x67452301
push ecx
push edx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], 0xefcdab89
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x98badcfe
push eax
movlpd qword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0x10325476
call fcn.0098f2d0
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0098f2d0
lea eax, [ebp - 0x78]
push eax
call fcn.0098f060
xor eax, eax
mov dword [0x9fd25c], 0
add esp, 0x1c
mov dword [0x9fd260], 0
mov dword [0x9fd264], 0
cmp eax, 0xa
mov dword [0x9fd268], 0
mov dword [0x9fd26c], 0
mov dword [0x9fd270], 0
mov dword [0x9fd274], 0
mov dword [0x9fd278], 0
mov dword [0x9fd27c], 0
mov dword [0x9fd280], 0
jae 0x98f5e2
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 0xa
jl 0x98f569
xor ebx, ebx
nop dword [eax + eax]
movzx eax, byte [ebp + ebx - 0x20]
push eax
lea eax, [ebp - 0x10]
push 0x9e60dc
push eax
call fcn.0098f5f0
lea edx, [ebp - 0x10]
add esp, 0xc
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x98f5a0
mov edi, 0x9fd25c
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x98f5b0
mov ecx, edx
inc ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x10
jl 0x98f580
mov ecx, dword [ebp - 4]
mov eax, 0x9fd25c
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009aeb72
mov esp, ebp
pop ebp
ret
call fcn.009aea97
int3

Function at 0x98f630
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x9f0274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
test edi, edi
je 0x98f6a0
push 1
lea eax, [ebx + esi]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.009909a0
inc esi
add esp, 0xc
cmp esi, edi
jb 0x98f686
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.0098f6c0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.009aeb72
mov esp, ebp
pop ebp
ret
Function at 0x98f830
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x9b547f
Capabilities:
Parse pe header

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

Function at 0x9bc7e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.009aec00
mov eax, dword [0x9f0274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.009c0b55
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x9bc825
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x9bc981
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.009cac70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x9fdd00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.009be688
mov ecx, dword [esi*4 + 0x9fdd00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x9bc97a
cmp eax, dword [ecx + edi + 0x24]
jne 0x9bc97a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x9bc97a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.009be688
add esp, 0x14
test edx, edx
jl 0x9bc97a
jg 0x9bc8f0
test eax, eax
jb 0x9bc97a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x9bc97a
jl 0x9bc90a
cmp dword [ebp - 0x1008], eax
ja 0x9bc97a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x9bc928
test ebx, ebx
je 0x9bc961
cmp ecx, edi
jae 0x9bc961
mov al, byte [ecx]
cmp al, 0xd
jne 0x9bc942
lea eax, [edi - 1]
cmp ecx, eax
jae 0x9bc94e
cmp byte [ecx + 1], 0xa
jne 0x9bc94e
inc ecx
jmp 0x9bc94e
movzx eax, al
movsx eax, byte [eax + 0x9fa920]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x9bc928
cmp edx, ebx
jne 0x9bc928
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x9bc97f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.009aeb72
leave
ret

Function at 0x9c1284
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9eb124
push 0x9eb11c
push str.FlsAlloc
push 0x1f
call fcn.009c1103
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c12b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x9ce344]
call esi
jmp 0x9c12be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x9c1302
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9eb134
push 0x9eb12c
push str.FlsGetValue
push 0x21
call fcn.009c1103
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c1339
push dword [ebp + 8]
mov ecx, esi
call dword [0x9ce344]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x9c1341
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9eb13c
push 0x9eb134
push str.FlsSetValue
push 0x22
call fcn.009c1103
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c137b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x9ce344]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x9c150f
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 + 0x9fdd00]
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 0x9c154f
cmp byte [ebx], 0xa
jne 0x9c154f
or byte [edi + eax + 0x28], 4
jmp 0x9c1554
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 0x9c1653
mov dl, byte [eax]
cmp dl, 0x1a
je 0x9c1636
inc eax
cmp dl, 0xd
je 0x9c1580
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x9c15a6
cmp eax, ecx
jae 0x9c15b4
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 0x9c1568
jmp 0x9c1653
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 0x9c1631
cmp dword [ebp - 0x10], 0
je 0x9c1631
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x9fdd00]
test byte [eax + edi + 0x28], 0x48
je 0x9c160b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x9c15f6
mov byte [esi], dl
jmp 0x9c1607
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x9fdd00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x9c1653
cmp byte [ebp - 1], 0xa
jne 0x9c161a
cmp esi, ebx
jne 0x9c161a
mov byte [esi], 0xa
jmp 0x9c1652
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.009be6a6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x9c1653
mov byte [esi], 0xd
jmp 0x9c1652
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x9fdd00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x9c1650
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x9c1653
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x9c165c
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 + 0x9fdd00]
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 0x9c16a2
cmp word [ebx], dx
jne 0x9c16a2
or byte [eax + edi + 0x28], 4
jmp 0x9c16a7
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 0x9c180a
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 0x9c17ea
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x9c16e8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x9c171e
cmp eax, edx
jae 0x9c172c
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 0x9c16c3
jmp 0x9c180a
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 0x9c17e5
cmp dword [ebp - 0x18], 0
je 0x9c17e5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x9fdd00]
test byte [eax + edi + 0x28], 0x48
je 0x9c17bb
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 0x9c177f
mov word [esi], cx
jmp 0x9c17b6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x9fdd00]
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 + 0x9fdd00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x9fdd00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x9c180a
pop eax
cmp word [ebp - 4], ax
jne 0x9c17cb
cmp esi, ebx
jne 0x9c17cb
mov word [esi], ax
jmp 0x9c1807
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.009be6a6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x9c180a
push 0xd
pop eax
jmp 0x9c17c6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x9fdd00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x9c1804
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x9c180a
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 0x9c27ae
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x9f0274]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x9c27f9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.009c2949
test al, al
jne 0x9c27f3
sub edx, 2
cmp edx, edi
jne 0x9c27d9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x9c281b
lea eax, [edi + 2]
cmp edx, eax
je 0x9c281b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.009c26fa
add esp, 0x10
jmp 0x9c2915
push esi
lea ecx, [ebp - 0x255]
call fcn.009c2949
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x9c285e
push dword [ebp - 0x25c]
jmp 0x9c280b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x9c289b
cmp word [ebp - 0x226], 0
je 0x9c28bc
cmp word [ebp - 0x226], ax
jne 0x9c289b
cmp word [ebp - 0x224], 0
je 0x9c28bc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.009c26fa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x9c2908
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x9c2875
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x9c28f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x9c2915
push 0x9c245b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.009b2d20
add esp, 0x10
jmp 0x9c28e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009aeb72
leave
ret

Function at 0x9c34a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x9c34b1
pop esi
ret
push ebx
push edi
push esi
call fcn.009c3469
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.009beefd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x9c34d9
push ebx
push esi
push edi
call fcn.009af680
add esp, 0xc
push 0
call fcn.009beec3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x9c38a9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009c34ee
Function at 0x9c9bc5
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.009c9b41
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x9c9d34
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x9c9d34
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x9c9ce9
jg 0x9c9c21
test eax, eax
je 0x9c9cdf
push 1
push 0x1000
call fcn.009c2124
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x9c9c44
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x9c9cd6
push 0x8000
push ebx
call fcn.009bb600
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x9c9c6d
jg 0x9c9c68
cmp ecx, 0x1000
jb 0x9c9c6d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.009c5746
add esp, 0x10
cmp eax, 0xffffffff
je 0x9c9cb2
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 0x9c9c68
jl 0x9c9c99
test ecx, ecx
jne 0x9c9c5a
push dword [ebp - 0xc]
push ebx
call fcn.009bb600
push esi
call fcn.009beec3
add esp, 0xc
xor ebx, ebx
jmp 0x9c9d42
cmp byte [edi + 0x24], 0
je 0x9c9cc9
cmp dword [edi + 0x20], 5
jne 0x9c9cc9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x9c9cd4
mov ebx, dword [edi + 0x18]
jmp 0x9c9cd6
xor ebx, ebx
push esi
call fcn.009beec3
pop ecx
jmp 0x9c9d42
test ecx, ecx
jg 0x9c9cab
jl 0x9c9ce9
test eax, eax
jae 0x9c9cab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.009be6a6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x9c9d09
cmp byte [edi + 0x1c], 0
je 0x9c9cab
jmp 0x9c9d3a
push ebx
call fcn.009c3c7e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x9c9cab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x9c9d42
cmp byte [edi + 0x1c], 0
je 0x9c9d3f
mov ebx, dword [edi + 0x18]
jmp 0x9c9d42
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.009be6a6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret