joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a3f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be16d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x644064]
cmp eax, 0xffffffff
jne 0x47a424
xor ebx, ebx
jmp 0x47a42d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x47a516
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x47a450
cmp dword [ebx + 0xc], 0
je 0x47a4cf
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x47a49c
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x47a482
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x47a457
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x47a446
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x47a4b9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x47a4b9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea ecx, [ebx + 0x14]
call fcn.00479400
cmp dword [ebx + 0x18], 0
jne 0x47a4a0
xor eax, eax
jmp 0x47a442
push 0x4799f0
push 0x6484b8
call fcn.00479820
mov eax, dword [0x644064]
add esp, 8
cmp eax, 0xffffffff
je 0x47a4f4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x47a516
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ab10
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be225
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x14
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.004ce3fc
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
push 4
mov dword [ebp - 0x3c], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x47abbd
push 0x14
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.004ce3fc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov ecx, dword [ebp - 0x34]
mov dword [edi], ecx
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov dword [edi + 4], ecx
mov dword [ebp - 0x30], edx
jmp 0x47acbb
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1c
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x47ac85
cmp dword [ebp - 0x20], esi
jne 0x47ac71
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0047a690
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x50], xmm0
cmp byte [ecx + 0xd], 0
jne 0x47ac15
mov eax, dword [ebp - 0x24]
cmp eax, dword [ecx + 0x10]
jae 0x47ac71
cmp dword [ebp - 0x30], 0xccccccc
je 0x47ace3
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x44], eax
push 0x14
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], 0
call fcn.004ce3fc
mov ecx, dword [ebp - 0x24]
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x4c]
mov dword [eax], esi
push dword [ebp - 0x50]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.004216c0
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x47abe2
push 0x14
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004ce3fc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov ecx, dword [ebp - 0x34]
mov dword [edi], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 4], eax
mov dword [ebp - 0x30], ecx
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.00420e20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret
call fcn.00415bc0
int3
Function at 0x47c7e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be390
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x40
push 0
push esi
call fcn.004d0100
lea ecx, [esi + 0x40]
add esp, 0xc
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x60], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
movzx eax, byte [ebp + 0x1c]
push 0x200
mov dword [ebp - 4], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov byte [esi + 0x64], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x38], eax
call fcn.00405980
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4869a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
test eax, eax
push ebx
mov ebx, 0xb
cmovne ebx, eax
mov dword [ebp - 0x18], ebx
push esi
cmp ebx, 5
jb 0x486b8d
cmp ebx, 0xc
jbe 0x4869d1
pop esi
mov eax, 0xffffffd4
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
bsr eax, eax
bsr ecx, esi
add eax, 2
mov dword [ebp + 0xc], 0
inc ecx
mov dword [ebp + 0xc], 0
cmp ecx, eax
cmovb eax, ecx
cmp ebx, eax
jb 0x486b8d
push edi
push 0
push esi
mov edi, 0x3e
push 0x40000000
sub edi, ebx
push 0
mov dword [ebp - 0x14], edi
call fcn.004cef90
xor ecx, ecx
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], eax
lea eax, [edi - 0x14]
mov dword [ebp - 0x10], 0
bts ecx, eax
mov dword [ebp + 0xc], 0
cmp eax, 0x20
mov edi, 1
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 0x18]
cmovae edx, ecx
mov dword [ebp - 0x28], ecx
mov ecx, ebx
mov dword [ebp - 0x24], edx
shl edi, cl
mov edx, esi
shr edx, cl
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x2c], edx
mov ecx, dword [ecx + ebx*4]
cmp ecx, esi
je 0x486b84
test ecx, ecx
jne 0x486a79
xor edx, edx
jmp 0x486b20
cmp ecx, edx
ja 0x486a86
dec edi
or edx, 0xffffffff
jmp 0x486b1d
mov eax, dword [ebp - 0x1c]
mul ecx
mov esi, eax
mov eax, dword [ebp - 0x20]
mul ecx
mov ecx, dword [ebp - 0x14]
add esi, edx
mov dword [ebp - 8], eax
mov edx, esi
mov dword [ebp - 4], esi
call fcn.004cf000
movzx esi, ax
cmp si, 8
jge 0x486af0
mov ecx, dword [ebp - 0x14]
movsx edi, si
mov eax, edi
cdq
call fcn.004cef70
sub dword [ebp - 8], eax
mov ecx, dword [edi*4 + 0x5c3af8]
sbb dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
mul ecx
mov edi, eax
mov eax, dword [ebp - 0x28]
mul ecx
add edi, edx
cmp dword [ebp - 4], edi
jb 0x486ae9
ja 0x486ae2
cmp dword [ebp - 8], eax
jbe 0x486ae9
mov eax, 1
jmp 0x486aeb
xor eax, eax
mov edi, dword [ebp - 0xc]
add esi, eax
movsx eax, si
sub edi, eax
movzx ecx, si
cmp si, word [ebp + 0xc]
mov eax, ebx
movzx edx, si
cmovle eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
movzx eax, ax
cmovle ecx, eax
movzx eax, cx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp + 8]
mov word [ecx + ebx*2], dx
inc ebx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x10]
cmp ebx, eax
jbe 0x486a63
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ebx, word [eax + ecx*2]
lea edx, [eax + ecx*2]
movsx ecx, bx
mov eax, edi
sar ecx, 1
neg eax
cmp eax, ecx
jl 0x486b72
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp + 8]
call fcn.00486ba0
add esp, 0x14
cmp eax, 0xffffff88
jbe 0x486b7b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x18]
lea ecx, [ebx + edi]
mov word [edx], cx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4db850
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004cea10
mov eax, dword [0x6441a4]
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.004e27c9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4db892
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4db9ee
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004cea80
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 + 0x649400]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004efaad
mov ecx, dword [esi*4 + 0x649400]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4db9e7
cmp eax, dword [edi + ecx + 0x24]
jne 0x4db9e7
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4db9e7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004efaad
add esp, 0x14
test edx, edx
jl 0x4db9e7
jg 0x4db95d
test eax, eax
jb 0x4db9e7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4db9e7
jl 0x4db977
cmp dword [ebp - 0x1008], eax
ja 0x4db9e7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4db995
test ebx, ebx
je 0x4db9ce
cmp ecx, edi
jae 0x4db9ce
mov al, byte [ecx]
cmp al, 0xd
jne 0x4db9af
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4db9bb
cmp byte [ecx + 1], 0xa
jne 0x4db9bb
inc ecx
jmp 0x4db9bb
movzx eax, al
movsx eax, byte [eax + 0x644318]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4db995
cmp edx, ebx
jne 0x4db995
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4db9ec
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004cdf5d
leave
ret
Function at 0x4e2ed6
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 + 0x649400]
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 0x4e2f16
cmp byte [ebx], 0xa
jne 0x4e2f16
or byte [eax + edi + 0x28], 4
jmp 0x4e2f1b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4e3019
mov al, byte [edx]
cmp al, 0x1a
je 0x4e2ffb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4e2f4a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4e2f6f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4e2f79
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 0x4e2f2c
jmp 0x4e3019
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 0x4e2ff6
cmp dword [ebp - 0xc], 0
je 0x4e2ff6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x649400]
test byte [eax + edi + 0x28], 0x48
je 0x4e2fd0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4e2fbb
mov byte [esi], dl
jmp 0x4e2fcc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x649400]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4e3019
cmp byte [ebp - 1], 0xa
jne 0x4e2fdf
cmp esi, ebx
jne 0x4e2fdf
mov byte [esi], 0xa
jmp 0x4e3018
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004efacb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4e3019
mov byte [esi], 0xd
jmp 0x4e3018
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x649400]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e3015
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e3019
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4e3022
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 + 0x649400]
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 0x4e3065
cmp word [esi], dx
jne 0x4e3065
or byte [edi + eax + 0x28], 4
jmp 0x4e306a
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 0x4e31a3
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 0x4e3183
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4e30ac
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4e30e2
cmp eax, edx
jae 0x4e30ee
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 0x4e3084
jmp 0x4e31a3
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 0x4e317f
cmp dword [ebp - 0x14], 0
je 0x4e317f
mov eax, dword [ebx*4 + 0x649400]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4e3157
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4e319d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x649400]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x649400]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x649400]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4e31a0
pop ebx
cmp word [ebp - 4], bx
jne 0x4e3168
cmp esi, dword [ebp + 0xc]
jne 0x4e3168
mov word [esi], bx
jmp 0x4e31a0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004efacb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4e31a3
push 0xd
jmp 0x4e319c
mov ecx, dword [ebx*4 + 0x649400]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e319a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e31a3
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 0x4e5d2f
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.004e5bdb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4e5ea7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4e5ea7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4e5e56
jg 0x4e5d88
test eax, eax
je 0x4e5e4c
push 1
push 0x1000
call fcn.004ee94b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4e5dae
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4e5e43
push 0x8000
push ebx
call fcn.004ea93a
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 0x4e5dda
jg 0x4e5dd5
cmp ecx, 0x1000
jb 0x4e5dda
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004e4d87
add esp, 0x10
cmp eax, 0xffffffff
je 0x4e5e1f
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 0x4e5dd5
jl 0x4e5e06
test ecx, ecx
jne 0x4e5dc7
push dword [ebp - 0xc]
push ebx
call fcn.004ea93a
push esi
call fcn.004ecc2c
add esp, 0xc
xor edi, edi
jmp 0x4e5eb8
cmp byte [edi + 0x24], 0
je 0x4e5e36
cmp dword [edi + 0x20], 5
jne 0x4e5e36
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4e5e41
mov edi, dword [edi + 0x18]
jmp 0x4e5e43
xor edi, edi
push esi
call fcn.004ecc2c
pop ecx
jmp 0x4e5eb8
test ecx, ecx
jg 0x4e5e18
jl 0x4e5e56
test eax, eax
jae 0x4e5e18
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004efacb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e5e79
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4e5e18
jmp 0x4e5eb0
push ebx
call fcn.004e26d1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4e5e18
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 0x4e5eb8
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4e5eb5
mov edi, dword [edi + 0x18]
jmp 0x4e5eb8
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004efacb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4eee1c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c93fc
push 0x5c93f4
push 0x5c5138
push 0x1e
call fcn.004eec49
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4eee50
push dword [ebp + 8]
mov ecx, esi
call dword [0x5c16c4]
call esi
jmp 0x4eee56
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4eee9a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c940c
push 0x5c9404
push str.FlsGetValue
push 0x20
call fcn.004eec49
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4eeed1
push dword [ebp + 8]
mov ecx, esi
call dword [0x5c16c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4efde1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004efc52

Function at 0x4f2c96
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6441a4]
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 0x4f2ce1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004f2e35
test al, al
jne 0x4f2cdb
sub edx, 2
cmp edx, edi
jne 0x4f2cc1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4f2d03
lea eax, [edi + 2]
cmp edx, eax
je 0x4f2d03
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004f2be2
add esp, 0x10
jmp 0x4f2dfd
push esi
lea ecx, [ebp - 0x255]
call fcn.004f2e35
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 0x4f2d46
push dword [ebp - 0x25c]
jmp 0x4f2cf3
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 0x4f2d83
cmp word [ebp - 0x226], 0
je 0x4f2da4
cmp word [ebp - 0x226], ax
jne 0x4f2d83
cmp word [ebp - 0x224], 0
je 0x4f2da4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004f2be2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4f2df0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4f2d5d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4f2dd8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4f2dfd
push 0x4f2a12
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004f8ed0
add esp, 0x10
jmp 0x4f2dcd
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.004cdf5d
leave
ret